Author Topic: Flappy Bird by Josiah W  (Read 28812 times)

0 Members and 1 Guest are viewing this topic.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #15 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.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #16 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.
« Last Edit: February 21, 2014, 10:11:01 pm by JWinslow23 »
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #17 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
« Last Edit: February 22, 2014, 06:31:04 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Flappy Bird by Josiah W
« Reply #18 on: February 22, 2014, 07:17:11 am »
Why are the upper pipes looking so fuzzy O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #19 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.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #20 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

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.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #21 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.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #22 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.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #23 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.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #24 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!
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Flappy Bird by Josiah W
« Reply #25 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)?
« Last Edit: February 24, 2014, 02:53:20 am by DJ Omnimaga »

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #26 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)
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Flappy Bird by Josiah W
« Reply #27 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).
« Last Edit: February 24, 2014, 03:29:01 pm by DJ Omnimaga »

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Flappy Bird by Josiah W
« Reply #28 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.
« Last Edit: February 26, 2014, 08:51:42 pm by JWinslow23 »
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Flappy Bird by Josiah W
« Reply #29 on: February 26, 2014, 09:03:10 pm »
Looks better now :D