Omnimaga
Calculator Community => Other Calculators => Topic started by: ClrDraw on February 17, 2014, 07:01:02 am
-
Iron Pants - ClrDraw
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=892
From the makers of Flappy Bird comes the infinitely more frustrating sequel, Iron Pants. Use the enter key to dodge the crates for as long as you can.
(http://img.ourl.ca/ironpants.gif)
-
this is so awesome! good job!
-
yup, nice game :)
-
Looks nice, actually it seems better than Flappy Bird. Just try to not release 8000 clones of flappy bird though O.O
-
Nice job!
Also, if we're doing Flappy Bird clones, I wouldn't mind a Maverick Bird (http://terrycavanaghgames.com/maverickbird/) clone.
-
Looks nice, actually it seems better than Flappy Bird. Just try to not release 8000 clones of flappy bird though O.O
Don't worry this should be my last game from Dong Nguyen.
Nice job!
Also, if we're doing Flappy Bird clones, I wouldn't mind a Maverick Bird clone.
I just played that game, it's pretty addicting (and far more difficult than flappy bird)! Did you make it?
-
You could maybe make Iron Pants so that you can choose which game mode you want. Basically, multiple Flappy Bird clones into one. :P
-
Nice job!
Also, if we're doing Flappy Bird clones, I wouldn't mind a Maverick Bird clone.
I just played that game, it's pretty addicting (and far more difficult than flappy bird)! Did you make it?
It's not mine, but Terry Cavanagh (http://distractionware.com/)'s. He's awesome.
-
Nice job!
Also, if we're doing Flappy Bird clones, I wouldn't mind a Maverick Bird (http://terrycavanaghgames.com/maverickbird/) clone.
That is looking cool!
-
Some random optimizations I saw when looking at your code.
At the beginning, you have (among other affectations)
0→B
0→G
which can be optimized as 0→B→G
Below, you have
Repeat (getKey) and (getKey(9))
If getKey(15)
Goto END
End
End
which can be written without external parentheses around "getKey", and I also think that
While 1
End!If getKey-9 and (-6→r1)
!If r1
Goto END
End
works the same but is better.
If A>4000
0→A
0→B
End
can be written
If A>4000
and 0→A→B
End
because A>4000 equals one if we enter the If, and 1<256 so A>4000 and 0 equals 0.
If getKey(9)
B--
Else
B++
End
can be written getKey(9)?B--,B++ to be more readable, but that doesn't save any space once compiled. But I am sure something like getKey(9)*2-1*~1+B→B can be done. I didn't try though. Note that "~" is the "little minus" sign.
If C=~16 saves space if written !If C+16.
Same for If D=~16.
I am pretty sure that If (C>65527) or (C<19) is the same as If C+9<28.
(A/5)<(F+31) is the same as A/5-F-32<0 but this one doesn't have to save a calculation to recall it later.
In this,
r3/10→r3
End!If r3
You don't have to put "r3" after "End!If".
Return
Return
???
I didn't try this one (same for the others in fact :P) but I think that [/tt]{Y1}-G<0[/tt] is more optimized than G>({Y1}).
Here,
If G>({|Y1})
SCORE(41,49,G)
Else
SCORE(41,49,{|Y1})
End
DispGraph
If G>({|Y1})
DelVar "|vIrnPants"
GetCalc("|vIrnPants",14)->r1
G->{r1}
Archive "|vIrnPants"
GetCalc("|vIrnPants",|Y1)
Else
Pause 1000
End
DispGraph
You put two times the same If. Either get everything in one, or at least save the result of the calculation in a var and make on If with the calculation, the other one with the var.
I also don't get why there are two DispGraph, both outside all If.
That's all I saw :P
And once again, I didn't try them, so don't put them all at once, try them one after each other, separately, and be sure that one has not broken anything before trying another ;)
I also noticed that, at the very beginning:
...
A y value
B accel
C counter 1
D counter 2
E pipe 1
F pipe 2
G score
...
You know, you can use variables with custom names in Axe. You just have to do pointer_to_two_bytes_ram_area→°Name_of_var, like for example
L5→°Acceleration
L5+2→°Speed
and then you can do Acceleration+Speed→Speed and whatever you want (just be sure in that case to clean L5 at the end of your program, with a ClrHome).
You can also do °E→°Pipe to rename the E var into Pipe (and then, if you do Pipe after a 1→E, you'll get 1).
-
this game is so %&#@!$@ hard! :mad:
but great job at programming it :thumbsup:
-
Woah Hayleia, thank you so much! O.O I'm definitely gonna do that this weekend, and put you in the credits. Wow, that's so much Axe I never knew *.*
-
Np, but as I said, don't put them all at the same time but try them one after the other, and keep a backup of your old source, because there are chances some of my "optimizations" don't work. And that's not because I said "I'm not sure" to some of them that I am sure for the other ones :P