Page 1 of 1

Crash Man Forever

Posted: Sat Dec 14, 2013 12:45 am
by CogentInvalid
In the year 200X, Dr. Wily realized that, like all manufactured objects, robots can be mass-produced. Taking advantage of this new knowledge, he led Mega Man straight into his newest trap: a factory that produces wave after wave of the best Robot Master: Crash Man. Will Mega Man defeat the Crash Men and leave this place alive? Of course not; there's an infinite number of them. It's fun to see him try, though.

Image

Instructions:
Enter - start/pause
Arrow keys - move
Z - jump
X - shoot

This runs on LOVE 0.8.0, by the way. Kind of inconvenient that 0.9.0 was released less than an hour ago, really.

Re: Crash Man Forever

Posted: Sat Dec 14, 2013 1:14 am
by Nsmurf
Nice, but very hard. I haven't been able to kill a crashman yet :(

Also
200X
so >3 years ago?

Re: Crash Man Forever

Posted: Sat Dec 14, 2013 2:06 am
by XCaptain
Nsmurf wrote:Nice, but very hard. I haven't been able to kill a crashman yet :(

Also
200X
so >3 years ago?
200X
X is the roman numeral for 10 so it would be 20010
Also this is a nice game, but I've never played Mega Man and suck at this :crazy: .

Re: Crash Man Forever

Posted: Sat Dec 14, 2013 3:24 am
by Mermersk
Nice, but yes very hard! I can barely get a shoot at him.

Re: Crash Man Forever

Posted: Sun Dec 15, 2013 2:35 am
by NightKawata
What is this error and why Image

Re: Crash Man Forever

Posted: Sun Dec 15, 2013 3:00 am
by CogentInvalid
NightKawata wrote:What is this error and why
Seems to be something going wrong with the font loading. I've re-uploaded the file; it should be fixed now.

Re: Crash Man Forever

Posted: Sun Dec 15, 2013 10:42 am
by bartbes
There was probably an unescaped backslash in there.

Re: Crash Man Forever

Posted: Mon Dec 16, 2013 3:18 am
by Jasoco
bartbes wrote:There was probably an unescaped backslash in there.
Yep. It should have been before that apostrophe. Or the quotes. Either way, when dealing with strings, make sure to escape certain characters with a slash when needed.

Re: Crash Man Forever

Posted: Mon Dec 16, 2013 9:17 am
by pk
I get the pattern, it's just really tedious.
Jasoco wrote:
bartbes wrote:There was probably an unescaped backslash in there.
Yep. It should have been before that apostrophe. Or the quotes. Either way, when dealing with strings, make sure to escape certain characters with a slash when needed.
This is where long strings and concatenation come in really handy:

Code: Select all

glyphs = [[ !"#$%&'()*+,-./0123456789:;<=>?]] ..
         [[@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_]] ..
         [[`abcdefghijklmnopqrstuvwxyz{|}~]]

font = love.graphics.newImageFont("font.png", glyphs)

love.graphics.setFont(font)