Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: JWinslow23 on February 20, 2014, 06:54:24 pm

Title: Flappy Bird by Josiah W
Post by: JWinslow23 on February 20, 2014, 06:54:24 pm
Everyone, here it is...MY OWN FLAPPY BIRD!
(http://img.ourl.ca/FlappyBird19.gif)
This started out as a demo I made in a day, and it has since expanded into something a little bit extra. ;)
Rules
If you live in a modern era, you don't need to be explained to about what this game is. :P
Controls
UP: Fly
2nd: (at GAME OVER): Restart
CLEAR: Exit
Del (at GAME OVER): Delete highscore (no confirmation!)

v1.10 download attached (one of my latest posts should have the lastest version). Source is AFLPBIRD, No-Shell compiled game is FLPYBIRD.

Together, we can all get more of OUR Flappy Bird calculator downloads than the ORIGINAL... :evillaugh:
Spoiler For Changelog:
v1.0: First public release
v1.1: Made minutes afterwards; heavy optimization thanks to Runer112 :)
v1.2: More eyecandy, optimizations thanks to Hayleia, and HIGHSCORES due to Matrefeytontias :D
Thanks, all of you! ;D
v1.3: Parallax!!!!!! ;D
v1.4: Added clouds, added "highscore delete" feature, and made some minor optimizations
Please don't blame me if your highscore gets deleted. :/
v1.5: Changed graphics due to suggestions by DJ Omnimaga and LDStudios (surprised it still beats ClrDraw's version in terms of bytes, but optimizations are still welcome ;) )
v1.6: Changed pipe graphics as suggested by LDStudios and Hayleia, and added GAME OVER debounce from Streetwalrus :)
v1.7: Made some minor optimizations, updated bird graphic at request of nobody, and added MEDALS! ;D
Thanks to Matrefeytontias for explaining strGet() to me! :D
v1.8: Made a LOTLOTLOT of optimizations, including optimization of the point increment routine, AND made my code unreadable to any human :P
v1.9: Optimization FRENZY!!!!!!!! Size: 2,524 bytes, which is mainly due to me eliminating the need for the flying/falling flag F.
Thanks to Runer for pointing it out to me!!! :D
v1.10: Optimization FRENZY 2!!!!!!!!!!! Size: 2,372 bytes!!!!!!!!! ;D ClrDraw, you have just met your maker.
(thank you, Runer XD )
v2.0: Thanks to willrandship for explaining Bitmap() to me (and Kerm Martian's SourceCoder for converting), I have bitmapped my way to new eyecandy. :D
v2.1: Optimized, and added a tasty Easter egg...see if you can find it. ;)
v2.2: Optimized, and added another Easter egg...find it, too... >:D
Oh, and some more optimization/feature suggestions are welcomed!

P.S. ClrDraw, you have met your match. This program is it.
(http://i3.kym-cdn.com/entries/icons/original/000/001/987/fyeah.jpg)
Title: Re: Flappy Bird by Josiah W
Post by: LDStudios on February 20, 2014, 07:01:38 pm
Looks nice Winsy, as always. Pretty soon, ticalc will have a whole folder for flappy bird category games :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 20, 2014, 07:05:06 pm
Lol, kinda like the whole folder for "Lights Out" games in BASIC. :P I hate sharing Shutdown's spotlight.

Anyways, thanks, LD! Ironic you're the first to respond...you and I could team up with our Flappy Bird clones to take down [wikipedia=]Dong_Nguyen[/wikipedia]... :evillaugh:
Title: Re: Flappy Bird by Josiah W
Post by: TIfanx1999 on February 20, 2014, 07:53:21 pm
Yet another Flappy bird clone I see. It does look pretty nice though. :) I like the bird sprite too, It kind of reminds me of pac-man. :D
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 20, 2014, 08:07:05 pm
Everybody says that. Why does everybody say that he's PacMan? :mad:

I'll probably change the sprite.


Oh, and this is only the 4th for TI-OS. :P
Title: Re: Flappy Bird by Josiah W
Post by: nspireguy on February 20, 2014, 09:20:47 pm
to much flappy. i like it!!!
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 20, 2014, 09:22:02 pm
Thanks! But there's more to come. *.*

EDIT: Update!

Look in the original post.
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on February 20, 2014, 11:16:19 pm
Looks nice, but I think that at this rate, it's only a matter of time before the following links work :P http://www.ticalc.org/pub/83plus/basic/games/arcade/flappybird/ & http://www.ticalc.org/pub/83plus/asm/games/arcade/flappybird/
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 21, 2014, 12:09:12 am
Lol. :P

Update tomorrow! It will fix a bug I had in scoring. And, what everyone was (hopefully) hoping for...
HIGH SCORES! ;D

Anyways, it will also have a different layout (i.e. the score will appear on the right :P ).
Title: Re: Flappy Bird by Josiah W
Post by: TIfanx1999 on February 21, 2014, 12:15:59 am
I actually like the sprite, so i wouldn't mind if you left it the same.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 21, 2014, 12:18:11 am
Well, good. I can't sprite a bird 8x8 to save my life, anyway. :P
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on February 21, 2014, 01:07:11 am
Some optimizations I might have seen in your code ("might" because maybe they don't work, try at your own risks :P).

You did that: 0->Y->E->P
But for some reason, you didn't do that, just below: 1->F->Q
Moreover, +1 is more optimized than 1 (if hl=0 obviously) so you can do 0->Y->E->P+1->F->Q.

rand^35+1->R
35->S
rand^35+1->T
69->U
rand^35+1->V

You can routinize the rand^35+1->V, and maybe you can do 35->S*2-1->U to avoid loading 69, but I am not sure it saves that much space. Must save one byte at most -.-

~1->X
For(12)
Pt-On(X,43,Pic2)^^r
X+8->X
End

can be written as
~9->X
For(12)
Pt-On(X+8->X,43,Pic2)^^r
End

(where ~ is the little minus sign)

Repeat getKey(15)
<whatever>
End

is less optimized as
While 1
<whatever>
EndIf getKey(15)

if you don't mind <whatever> to be executed at least once.

If E<<0
0->E
1->F
End

can be written as
If E<<0
->F-1->E
End


!If F
E-38->E
If E<<0
->F-1->E
End
Else
E+25->E
End

is better as
!If F
If E<<0
->F-1->E
End
~38->E
Else
25
End
+E->E


A=B?? is less optimized than A-B?.

If B=9
0->F
500->E
End

is better as
!If B-9
0->F
500->E
End

and is even better as
!If B-9
->F
500->E
End


rand^35+1->R was said previously, but you still can routinize rand^35+1 ;)

Rect(83,0,10,R
Rect(83,R+24,10,39

IIRC, you have a 84+ or a 84+SE, so you can waste two bytes and close those parentheses to avoid triggering unnecessary Axe bugs :P
Matref usef to have only a regular 83+, so he used to did everything to save space, but that's not your case (and by the way, if this is the reason why he lost points in source code in the Omnimaga contest, this is stupid because his code was ten times more optimized than TipOver's. TipOver for example included that part
T++
If T=256
0->T
End

which can be optimized as
T++
If =256
0->T
End

then
T++
!If -256
0->T
End

then
T++
!If -256
->T
End

and if you think 4 seconds about 256, you even realize that this fits in 3 bytes with {°T}++).

Pic0+X is less optimized than X+Pic0. Always put constants at the end of an expression (if you can, obviously).

Text(0,0,P>Dec is better as Text(0,,P>Dec) (same for Text(0,0,"Score: ",P>Dec). And instead of calculating P at the previous line, you can include it in the Text command. I feel like P+(Q=15??(S=15??U=15))->P is optimizable but I have school in one hour :P

That's all for now :P
Once again, I advise you to backup your code and try those optimizations one after the other and try them separately in case I coined "opts" that don't work :P
And of course, those are only "basic" opts, I didn't try to figure out what the whole code did to find an algorithm that does the same in a faster/smaller way.
Title: Re: Flappy Bird by Josiah W
Post by: TheMachine02 on February 21, 2014, 05:35:58 am
Also, every

Code: [Select]
If E<<0
...
can be optimized like that :
Code: [Select]
If E.32768
.it is the plot   .   token

(this is mainly a speed optimization, don't know if it will save some bytes).

Anyway, seems pretty good  version of Flappy :P
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on February 21, 2014, 11:20:24 am
I don't know if that optimizes speed either, but if you use this, don't use the optimizations I added because this
If E<<0
->F-1->E
End

will not do the same with a E.32768.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 21, 2014, 01:36:56 pm
Some of them worked...yet not the one with !If F (mostly due to command flow). :P

I did, however, make a routine which saved a lot of space!
Title: Re: Flappy Bird by Josiah W
Post by: Runer112 on February 21, 2014, 06:17:09 pm
Also, every

Code: [Select]
If E<<0
...
can be optimized like that :
Code: [Select]
If E.32768
.it is the plot   .   token

(this is mainly a speed optimization, don't know if it will save some bytes).

Anyway, seems pretty good  version of Flappy :P

The fastest and smallest way to check if a number is negative is this:

Code: [Select]
If E//32768
.Negative
End

Random side note: The idea of //32768 is a bit unsettling to me, because technically you shouldn't be able to perform a signed 16-bit divide by 32768 because 32768 isn't a valid signed two's complement 16-bit number.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 21, 2014, 06:31:23 pm
Runer, thanks for that, but it didnt help. :P The optimization I'm using there is dependent on there being If E<<0 there, and even changed it's the same filesize compiled.

New update in a few minutes (hopefully)!

EDIT: Just added parallax. v1.3 in the first post.
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on February 22, 2014, 03:58:04 am
Some of them worked...yet not the one with !If F (mostly due to command flow). :P
Of course it didn't work, now that I see it, it makes E-38→E after testing E<<0, which is not what you had at the beginning. Sorry about this one :(

Also, here's mine, modified to get similar features (parallax, 3 levels of grey). It only has two minor graphical glitches on the background at at the bottom of pipes. You can't get yours any faster/smaller ? :P
(http://img.ourl.ca/FB3lvl.gif)
Title: Re: Flappy Bird by Josiah W
Post by: Sorunome on February 22, 2014, 07:17:11 am
Why are the upper pipes looking so fuzzy O.O
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on February 22, 2014, 07:41:34 am
That's because they are mostly on the grey part of the background so there is some interference if you see what I mean, while the lower pipes are mostly on the white part. That's also because I set Wabbitemu's options to 3 shades to save space.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 22, 2014, 12:36:05 pm
Also, here's mine, modified to get similar features (parallax, 3 levels of grey). It only has two minor graphical glitches on the background at at the bottom of pipes. You can't get yours any faster/smaller ? :P
(http://img.ourl.ca/FB3lvl.gif)
No fair...you use Asm...I use pure Axe...besides, I could...with some help... :P

I'm actually working on making it smaller, but I'm no Axe optimizer. :-\ I'll need help after the next update.

Besides, you couldn't fix the graphical glitches? :P Also, 2nd should be the unpause button instead of up.
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on February 22, 2014, 01:35:03 pm
No fair...you use Asm...I use pure Axe...besides, I could...with some help... :P
I was just kidding to motivate you :P
Your game is really good as it is :)

Besides, you couldn't fix the graphical glitches? :P Also, 2nd should be the unpause button instead of up.
I didn't even try to fix them in fact :P
And yeah, I should add 2nd as an unpase button.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 22, 2014, 01:44:31 pm
No fair...you use Asm...I use pure Axe...besides, I could...with some help... :P
I was just kidding to motivate you :P
Your game is really good as it is :)
Thanks!
But next time, don't insult me to motivate me. :P
Besides, you couldn't fix the graphical glitches? :P Also, 2nd should be the unpause button instead of up.
I didn't even try to fix them in fact :P
And yeah, I should add 2nd as an unpase button.
Yeah, do that. I hate having to fly to unpause, especially when "unpausing" would cause my death. :P

Anyways, v1.4 has been released! Check the original post.
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on February 23, 2014, 03:51:33 am
No fair...you use Asm...I use pure Axe...besides, I could...with some help... :P
I was just kidding to motivate you :P
Your game is really good as it is :)
Thanks!
But next time, don't insult me to motivate me. :P
Haha ! I don't know, that works for me so I thought it might work for you too :P

Yeah, do that. I hate having to fly to unpause, especially when "unpausing" would cause my death. :P
Talking about weird acting keys, it seems like in your game, pressing jump makes the bird go up until we release the key (you keep it pressed, it keeps going up). But in the real game, it just jumps once, and keeping the key pressed for a long time is not meant to change anything.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 23, 2014, 11:30:33 pm
No fair...you use Asm...I use pure Axe...besides, I could...with some help... :P
I was just kidding to motivate you :P
Your game is really good as it is :)
Thanks!
But next time, don't insult me to motivate me. :P
Haha ! I don't know, that works for me so I thought it might work for you too :P

Yeah, do that. I hate having to fly to unpause, especially when "unpausing" would cause my death. :P
Talking about weird acting keys, it seems like in your game, pressing jump makes the bird go up until we release the key (you keep it pressed, it keeps going up). But in the real game, it just jumps once, and keeping the key pressed for a long time is not meant to change anything.

I know. My bird jumps at a fixed height. I just jump twice in a row sometimes in my screenies. :P

Anyways, I changed the game. Now, you can restart the game without quitting the program! (Just so you know, I'll need help with the command flow here. :-\ ) Also, I added an icon, description, and minor optimizations here and there.

Upload tomorrow!
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on February 24, 2014, 02:52:35 am
I like the parallax scrolling :D

Do you think you could make it so the blocks don't instantly appear on the right side of the screen, but rather gradually (scrolling into the screen)?
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 24, 2014, 11:17:57 am
I like the parallax scrolling :D

Do you think you could make it so the blocks don't instantly appear on the right side of the screen, but rather gradually (scrolling into the screen)?

You mean the pipes? Yes, but that would require some tricks on my part.

You know what? I'll work on that, and when I'm done, I'll release a new update. (Thanks, DJ, you just delayed a new update. :P)
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on February 24, 2014, 03:27:22 pm
On an off-topic note, you should remove the game gif from your avatar and signature, because it's 1.5 MB large and many users use 3G or slow Internet to access the website. Try to get one that is like 100 KB or less (set capture to 1x scaling instead of 2 and frame rate to 9 FPS, then die on the second pipe and stop GIF capture).
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 24, 2014, 04:35:53 pm
On an off-topic note, you should remove the game gif from your avatar and signature, because it's 1.5 MB large and many users use 3G or slow Internet to access the website. Try to get one that is like 100 KB or less (set capture to 1x scaling instead of 2 and frame rate to 9 FPS, then die on the second pipe and stop GIF capture).

I got one in 200 KB.

Oh, and v1.5 is now here! Check the original post.
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on February 26, 2014, 09:03:10 pm
Looks better now :D
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 26, 2014, 09:04:19 pm
Thanks!

Oh, and anyone with optimization and/or feature suggestions, let me know. :D
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on February 26, 2014, 11:21:50 pm
Suggestion: Make it so that the same key is used to fly/jump as to confirm, else it can get a bit annoying to have to switch back and forth between 2nd and Enter. :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 11:52:31 am
Suggestion: Make it so that the same key is used to fly/jump as to confirm, else it can get a bit annoying to have to switch back and forth between 2nd and Enter. :P

And yet, if I try, and I press ENTER just as I'm dying (as often is done by people who don't time jumps), I won't see my score. :P

I've actually been trying to work out something with a "falling" animation at the end in order for there to be a delay, but I just can't do it, try as I might. I plan to have Pic2+8 as the picture of the bird (I didn't store Pic3 for optimization), and for the bird not to overwrite to background/pipes (yet, try as I might, it always does so). If anyone can help me, let me know.

Oh, and update tomorrow with updated pipe generation and graphics!
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 27, 2014, 12:00:16 pm
You can also add denouncing.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 12:18:34 pm
You can also add denouncing.
de·nounce
/diˈnouns/
verb
publicly declare to be wrong or evil

OK. I publicly declare Flappy Bird to be wrong and evil! :P

JK, I know what you meant ("debouncing"), and I have that already.
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 27, 2014, 01:21:04 pm
/me slaps his tablet for auto correcting that <_<
Also Flappy Bird /is/ terribly wrong and evil. :P
And nice to know. :)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 01:24:09 pm
It's all in the getkey -> A:A-B?A -> B lines. ;)
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 27, 2014, 01:29:13 pm
Mmh. I don't see how this is debouncing. I was thinking of something like :
While 1
Pause 5
End!If getKey(0)

Basically waits for the user to release every key but ON. Also works for a few select ones by changing the ending condition (multiple getKey(x), ?? separated).
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 01:34:13 pm
First of all, that would conflict with the grayscale, and the general "movement" of the game. :P

Second of all, my definition that I use here (and also, the original guy used) for debouncing is "making sure an action does not happen multiple times while holding a key". And that does just that. :P
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 27, 2014, 01:38:09 pm
Does it ?
Also to fix greyscale issues replace Pause 5 with your greyscale update code. Problem solved. :P And by the way I don't recommend this in an input loop but rather between two different ones.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 01:42:15 pm
...what does that even mean? ???

I already have it all taken care of!
The game must update itself each frame with the next scroll/bird movement, and this does that.
The game must have a fixed jump height no matter how long the key is pressed for, and this does that.
The game must make sure nothing else (except for the quit key) does anything, and this goddang does that!
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 27, 2014, 02:37:56 pm
What I mean is that my code is nice to put between two menus or between the actual GAME and the "You lost" screen, etc. to avoid an "OK" key to be detected by the next one without letting the user any time to read/change options.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 05:12:20 pm
What I mean is that my code is nice to put between two menus or between the actual GAME and the "You lost" screen, etc. to avoid an "OK" key to be detected by the next one without letting the user any time to read/change options.

Oh.

Well, I feel stupid right now. :-\

I'll do that.
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 27, 2014, 06:10:05 pm
You don't need to. :P It's my fault for not being clear enough.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 06:18:01 pm
You don't need to. :P It's my fault for not being clear enough.

Yeah, I thought that you meant upon inputting the jumps. :P
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on February 27, 2014, 09:22:20 pm
Suggestion: Make it so that the same key is used to fly/jump as to confirm, else it can get a bit annoying to have to switch back and forth between 2nd and Enter. :P

And yet, if I try, and I press ENTER just as I'm dying (as often is done by people who don't time jumps), I won't see my score. :P

I've actually been trying to work out something with a "falling" animation at the end in order for there to be a delay, but I just can't do it, try as I might. I plan to have Pic2+8 as the picture of the bird (I didn't store Pic3 for optimization), and for the bird not to overwrite to background/pipes (yet, try as I might, it always does so). If anyone can help me, let me know.

Oh, and update tomorrow with updated pipe generation and graphics!
You could do what I did in Super Sonic Ball and add a 0.5 second delay when the Game Over screen appears. That way people won't spam ENTER through the score screen.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 27, 2014, 09:42:41 pm
Suggestion: Make it so that the same key is used to fly/jump as to confirm, else it can get a bit annoying to have to switch back and forth between 2nd and Enter. :P

And yet, if I try, and I press ENTER just as I'm dying (as often is done by people who don't time jumps), I won't see my score. :P

I've actually been trying to work out something with a "falling" animation at the end in order for there to be a delay, but I just can't do it, try as I might. I plan to have Pic2+8 as the picture of the bird (I didn't store Pic3 for optimization), and for the bird not to overwrite to background/pipes (yet, try as I might, it always does so). If anyone can help me, let me know.

Oh, and update tomorrow with updated pipe generation and graphics!
You could do what I did in Super Sonic Ball and add a 0.5 second delay when the Game Over screen appears. That way people won't spam ENTER through the score screen.

Or you could help me with the falling animation. :P
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on February 28, 2014, 04:35:23 am
Delays = bad. Seriously, when I'm playing a game I like it when it's fast./me slaps Need for Speed on the PS3 :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on February 28, 2014, 11:37:33 am
Delays = bad. Seriously, when I'm playing a game I like it when it's fast./me slaps Need for Speed on the PS3 :P

I know. In my latest update (1.6, check the original post), I have no delays, except when holding ENTER after losing.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 03, 2014, 04:20:35 pm
Bump.
Tonight, I am releasing a new version (probably the last I'll ever make to develop this project, except for a spin-off I plan to produce) which does a minor optimization, adds a half-second delay upon dying, and includes a commented version of the source code.


I probably won't do more with this game (except a release on ticalc.org), although I am planning at least one other thing to do with this engine. Also, any more optimization/feature tips you have, let me know!
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on March 07, 2014, 02:28:28 am
I like how you changed the pipes btw. They look better this way than with just rectangles. Also I don't know how I did it, but I managed to get 11 points O.O
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 07, 2014, 01:41:04 pm
I like how you changed the pipes btw. They look better this way than with just rectangles. Also I don't know how I did it, but I managed to get 11 points O.O
11? You get a bronze medal! :D

No, seriously, I'm adding medal distribution to the game. It only took 6 new lines of code, and a modification of almost everything else in the loss sequence, just to fit the names. :P Hope we're happy.

I also changed the bird graphic, and it actually kinda looks like the real Bird! (no facing up and down, though; I can't sprite that to save my life :P )

One last thing: my comments actually made me understand the game LESS. So, no commented version. :P

Upload as soon as the upload thing with the new SMF is working! :w00t:
Title: Re: Flappy Bird by Josiah W
Post by: aeTIos on March 08, 2014, 07:24:11 am
Throw it in your public dropbox folder and cross link?
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on March 08, 2014, 12:09:43 pm
^this. I think admins forgot to enable uploading or it doesn't work yet. Else, for full games there is always ticalc.org or Cemetech archives.
Title: Re: Flappy Bird by Josiah W
Post by: ClrDraw on March 08, 2014, 06:33:22 pm
Quote
I think admins forgot to enable uploading or it doesn't work yet. Else, for full games there is always ticalc.org or Cemetech archives.
I hate uploading to other places before omni...  :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 08, 2014, 09:09:07 pm
Throw it in your public dropbox folder and cross link?
I don't have a dropbox. :P
Quote
I think admins forgot to enable uploading or it doesn't work yet. Else, for full games there is always ticalc.org or Cemetech archives.
I hate uploading to other places before omni...  :P
I hate that my version is now bigger than yours :P ...I really desperately need optimization!
Runer112, nikitouzz, matrefeytontias, Builderboy, and Assembly~Bandit, pleasepleasepleasepleasepleasepleasepleasepleasepleasePLEASE optimize my code!  :-\

But, in all seriousness, he's right! This is actually my place that I go to upload games before I release them anywhere else. This is the place I go to gauge the public reaction the game would create, see how users would like playing the game, to get suggestions to make it better, and to ask for help implementing something new or optimize it! I really want to test how you'll react to the medal system before I release it anywhere else.
Title: Re: Flappy Bird by Josiah W
Post by: TIfanx1999 on March 08, 2014, 09:26:30 pm
The upload system should be working fine as far as I know. What issue are you having?
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 08, 2014, 09:30:58 pm
The upload system should be working fine as far as I know. What issue are you having?
For any file I tried to upload (including one that was literally one byte), it would tell me that an error has occurred posting the attachment.


I'll try with a Bard image.


EDIT: Holy cow it works! ;D

I updated the game. Check the original post.
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on March 08, 2014, 09:53:58 pm
I wonder if the new forum brought back the attachment restrictions built in by default in SMF? Maybe uploads are restricted to just a few types of files. On the site before the upgrade, any file extension was allowed.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 08, 2014, 09:55:20 pm
I wonder if the new forum brought back the attachment restrictions built in by default in SMF? Maybe uploads are restricted to just a few types of files. On the site before the upgrade, any file extension was allowed.

And it still is. I just updated.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 13, 2014, 09:08:11 pm
Bump.


New update with optimizations. I finally matched ClrDraw's! ;D


Nothing cosmetic in terms of changes, so no screenie. :-\
Title: Re: Flappy Bird by Josiah W
Post by: ClrDraw on March 14, 2014, 11:54:46 am
Hayleia helped me optimize mine and I haven't updated it yet  :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 14, 2014, 12:02:14 pm
Hayleia helped me optimize mine and I haven't updated it yet  :P

Grrrr... :mad:

It's no use, mine has too much eyecandy... :'(

Will somebody please help?
Title: Re: Flappy Bird by Josiah W
Post by: ClrDraw on March 14, 2014, 12:05:59 pm
Lol. Don't worry about it, yours is a great size considering grayscale and all that.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 14, 2014, 12:08:16 pm
Lol. Don't worry about it, yours is a great size considering grayscale and all that.

Wow. Thanks! That's meaningful, considering yours is one of the first AND most famous. ;D Still have a feeling it could be smaller than it is, though. :P

Anyways, if there's  anything else anyone wants, say the word. ;)
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on March 14, 2014, 12:24:20 pm
Wow. Thanks! That's meaningful, considering yours is one of the first AND most famous. ;D
Well it's the most famous because it's the first one ;)
We are like just copies of his game, ours being better or not, he is the real one deserving to be featured on ticalc :)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 14, 2014, 12:38:15 pm
...touche, Hayleia, touche... :/

Anyways, even though mine has more features, ClrDraw's version should be featured on ticalc. Even though he didn't. :P
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on March 14, 2014, 12:43:32 pm
Well his game got featured there (http://www.ticalc.org/archives/news/articles/14/148/148558.html) ;)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 14, 2014, 05:05:11 pm
Well his game got featured there (http://www.ticalc.org/archives/news/articles/14/148/148558.html) ;)
:P
Title: Re: Flappy Bird by Josiah W
Post by: ClrDraw on March 14, 2014, 08:36:31 pm
Thank you both  :)  and wow, I'm always the last to find out when I'm featured XD
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 15, 2014, 12:18:15 am
Yes...the greats always regard themselves as lower in society than most think they are...


Also, bump.


MAJORMAJORMAJOR optimizations, mostly due to me deleting the need for the F (flying/falling) flag. It is now 2,524 bytes!!! :D Upload tomorrow.


ClrDraw, your move. :trollface:
Title: Re: Flappy Bird by Josiah W
Post by: ClrDraw on March 15, 2014, 12:20:10 am
Oh dang XD I'll see what I can do!
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 15, 2014, 12:23:21 am
Oh dang XD I'll see what I can do!
LOL. XD
No, seriously, this means WAR!!! :evillaugh:
Well, a War on Bytes. :/
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on March 15, 2014, 12:08:52 pm
War of the Bytes movie, starring Tom Cruise and Miley Cyrus.


Actually that would cause a major riot O.O


(Also this Flappy clone is my favorite so far for the 84+. Hayleia's next mainly due to the motion blur and ClrDraw's third)
Title: Re: Flappy Bird by Josiah W
Post by: ClrDraw on March 16, 2014, 01:13:26 am
Mission impossible V: optimize code while running from a giant wrecking ball :P
Title: Re: Flappy Bird by Josiah W
Post by: bb010g on March 16, 2014, 01:37:05 am
Music by Rebecca Black.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 16, 2014, 12:43:51 pm
(Also this Flappy clone is my favorite so far for the 84+. Hayleia's next mainly due to the motion blur and ClrDraw's third)

Wow. That...I don't know what to say about that. Thank you, DJ Omnimaga, founder of Omnimaga, and prolific calculator programmer, for saying that about my game! :)

I'll definitely include that quote in the file description on ticalc. XD

Now for a list of credits (in alphabetical order by username):
Spoiler For Credits:
ClrDraw for making a Flappy Bird game, inspiring mine.
DJ Omnimaga for pointing out a small graphical mistake I made, complimenting my game, and suggesting a half-second pause between the game and the GAME OVER screen.
Hayleia for optimizations, and some "creative motivation". :P
LDStudios for suggesting graphical changes, and providing moral support.
matrefeytontias for a bunch of optimizations, explaining strGet() and string storing in general to me, and a highscore routine. :)
Runer112 for many optimizations along the way. This game wouldn't have been more than a demo without you! ;D
Streetwalrus for suggesting a small debounce between the actual game and the GAME OVER screen. (Of course, I didn't use it...) :/
TheMachine02 for suggesting some speed optimizations.
willrandship for explaining Bitmap() to me. :D

Xeda112358 for suggesting a small optimization for medals.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 20, 2014, 07:16:45 pm
Bump.


Version 1.10 released; check the original post.


I have one last idea...should I include a title screen, or should I work on a floor, or anything else? Tell me a post below.


Also, thanks for 999 page views! :thumbsup:
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on March 21, 2014, 01:18:59 am
Nice to hear. :D Also a title screen would be nice as long as it doesn't take too much space, since this is a small game. A floor would be a must to be true to the original.
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 23, 2014, 04:52:48 pm
Bump.

Update, version 2.0! :D

Download attached.

(http://img.ourl.ca/FlappyBirdversion2.gif)
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on March 23, 2014, 05:43:17 pm
Well it looks nice and finished now. :D
Also thank you for crediting me. Props to Kindermoumoute though from who I learned this ddebounce code that I use everywhere. ;)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 23, 2014, 05:52:46 pm
Well it looks nice and finished now. :D
Also thank you for crediting me. Props to Kindermoumoute though from who I learned this ddebounce code that I use everywhere. ;)
Well, I'll just credit you.
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on March 24, 2014, 12:19:31 am
I like the new title screen :D
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 12:43:36 pm
DJ, thanks! It took a lot of time and bytes to make it happen, so I hope you're happy. :P

On a side note, I have a challenge for you all.

Flappy Bird has lain an Easter Egg, and it's up to you to guess what it is before it hatches on April 1st.

I am giving you a NoShell compiled version of the game with the Easter Egg in it (plus a few other minor graphical changes). It uses a different highscore format, but I'm sure that it will be compatible with previous versions.

If you want hints, please ask me, and I will give you a hint.

Whoever is the first to figure out the effects of the Easter Egg, AND how to correctly reproduce it by April 1st will recieve advance notification of any new projects or updates from me (you have it a week before anybody else), plus the bragging rights of your technical know-how (Runer, my money is actually on you :P ).

Good luck! :thumbsup:

Hayleia is the winner! :P
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on March 24, 2014, 01:45:52 pm
Problem report: we can't press the 2nd key twice quickly (yeah, looking for that easter egg :P I hope it's not just the "diamond medal")

edit found the easter egg
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 01:50:35 pm
Problem report: we can't press the 2nd key twice quickly (yeah, looking for that easter egg :P I hope it's not just the "diamond medal")
No, the Diamond medal isn't the Easter egg.

Oh, and controls have changed. In order to get past the title screen, press 2nd. Then, press up to start. To restart, press 2nd. Forgot to mention that.

Oh, and a hint: If you did it right, quit when it's all over. ;)

Also, Hayleia, method? :P
Title: Re: Flappy Bird by Josiah W
Post by: Hayleia on March 24, 2014, 02:12:29 pm
Get 1, hit a pipe, quit, come back and you see "you just lost the game".

I actually cheated to see the "you just lost the game" part and JWinslow23 helped a lot to find out how to trigger it :)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 02:15:07 pm
Yes! :D
Now that you know, though (and matref had a good idea for another trigger), I have to change it. :P

It'll be the same stuff, only different numbers. (key word: numberS!)

Source attached.
Title: Re: Flappy Bird by Josiah W
Post by: TheCoder1998 on March 24, 2014, 02:40:17 pm
will the number be 42? :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 02:41:18 pm
will the number be 42? :P
First of all, numberS is plural. :P
Second of all, that actually was my original idea for a trigger. :D
Third of all, no. :P
Title: Re: Flappy Bird by Josiah W
Post by: TheCoder1998 on March 24, 2014, 02:41:48 pm
will it be sqrt(-1) :trollface:
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 02:43:20 pm
will it be sqrt(-1) :trollface:
:P
No. It's 3 numbers.
Title: Re: Flappy Bird by Josiah W
Post by: TheCoder1998 on March 24, 2014, 02:43:58 pm
1: sqrt(-1)
2: 1/0
3: 42

:trollface:
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 02:45:30 pm
1: sqrt(-1)
2: 1/0
3: 42

:trollface:
NO! :P
Title: Re: Flappy Bird by Josiah W
Post by: TheCoder1998 on March 24, 2014, 02:47:14 pm
:trollface:

hahaha
but yeah, i don't know if i already said this, but your version of flappy bird is my favourite one :D
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on March 24, 2014, 02:47:42 pm
:trollface:

hahaha
but yeah, i don't know if i already said this, but your version of flappy bird is my favourite one :D
Well, thank you very much. :D

EDIT: Version 2.1!
Mmm...eggs and pie... :D
Spoiler For Spoiler:
Yes, that WAS a hint. :P
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on April 01, 2014, 10:38:39 am
Bump.


Update today. I made optimizations (though there should be more I can do to make it smaller/faster), and I added a new egg similar to that "Made By Namco" Pacman Easter Egg.


Download in a few!
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on April 07, 2014, 06:43:06 pm
Sorry for THIS bump, but a lot of work went into this next update, and I'd like to have it get attention. The Konami code now has use... >:D

Anyways...v2.2! Yay! :D

Oh, and now the file is compiled in Ion. You're welcome. ;)
Title: Re: Flappy Bird by Josiah W
Post by: Streetwalrus on April 08, 2014, 12:45:19 am
You don't have to be sorry. For project updates it's totally OK to do that. ;)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on April 08, 2014, 12:02:42 pm
Well, here it is, because you're all super friendly. ;)
Title: Re: Flappy Bird by Josiah W
Post by: DJ Omnimaga on April 08, 2014, 07:23:58 pm
I'll try the new version, but you should make a new screenshot showing its new features, since the one in your sig is outdated (although make sure the new one is small too)
Title: Re: Flappy Bird by Josiah W
Post by: JWinslow23 on April 09, 2014, 10:36:00 am
I'll try the new version, but you should make a new screenshot showing its new features, since the one in your sig is outdated (although make sure the new one is small too)
First of all, I only added an Easter Egg; my 2.0 screenshot is pretty much how it looks now. :P
Second of all, I'll change my sig and avatar screenie later. It's just that v1.10 is a petite implementation (I mean, 2KB vs 4KB? 2KB wins. :P ), and I still want IT in my sig, at least.