CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: nullweist on September 09, 2016, 02:47:01 AM

Title: Flappy Bird on HP Prime
Post by: nullweist on September 09, 2016, 02:47:01 AM
Hello, as the title announces, this is Flappy Bird for the HP Prime. It is currently functional, but I might be releasing some aesthetic updates to it in the future. I have written it as an HP App so that I can take advantage of storing images as pngs.
[spoiler](https://lh3.googleusercontent.com/kmodybPzIDk1_LkJ4AAYcwh9DEpU1BFK_jXYIHcfUqCm-aiEc-zBmqkGory7-JlslfEVms5FikXjEjPa85tGVRPKQqUGhK-jDfqWM5Y3zFfg5_dzlEaRci3KRDvkh_QKql06Lmb_ZVWfFYYZW8Ke0bZT9skZ1wv0cOt8qswPRGVvoNRcyngCt0jVpFu-exDxJITC_uuVjPEbVhA1vkAkV4-vvu4pew1chK7_HLQU5gZmcSgjbZyl8809qi5XFSMAXZLBk0LxSWucp8v9eLO-H2p4QhwKZz5q597bvf63W8V2XG3Gwy47iNncnCBNC51cgFEWmAzbbzkEtbadC4ELUlQRXZelm7KHWeiU_OUV0tuq6J8CXDzB780QxRpN7LzDkV0B3UWFKe4HISlbSZ8v0ZDToo8ZdmsoyIDqena8D06aV_30kiScTiCO9HAVxVRe4Twv07_Bzwkj7q2HHlv7A5gLPpiPDQsno7tuqqBUYk1m6LHzW0iv1Z4LJoHH3UATPmfXEiNBEXaSQqpWQn74SneH1Q_GkgqhNexm2tBKrxY7cT2Buadh-Ez_PmPRQ-gf9fluZHIiH0HGgBCMr-iWIYl59etl5oYMMaCeaPFeYymbnF1g=w256-h191-no)[/spoiler]
Thanks in advance for any feedback.

Enjoy :)
Title: Re: Flappy Bird on HP Prime
Post by: gameblabla on September 09, 2016, 03:22:04 AM
It looks okay and it seems to be a little more accurate than the javascript clone i'm seeing in the wild, which is truly awful.
If you have to do any aesthetic changes: here are my suggestions :

Put your score between the pipes
(http://www.gcw-zero.com/images/articles/hocoslamfy-score-shown-2.png)
Hocoslamfy, a flappy bird clone, does it.
Why you should add it ? Because it allows you to focus on the game and it is very easy to program it.

You should also make the bird looks like he's flying upward.
It can be either software scaled or pre-calculated, but either should improve the look of the game.
If you want to pre-calculate it, there's a handy software called rotSprite which gives pretty good results :
https://info.sonicretro.org/RotSprite (https://info.sonicretro.org/RotSprite)

Finally, when the bird dies, make it look like as if he's falling down.
I'm irrated to see programmers doing it the easy way and not trying to make it as closely to Flappy Bird as possible.
Once again, RotSprite should be useful if you don't want to redraw everything.

Good luck
Title: Re: Flappy Bird on HP Prime
Post by: nullweist on September 09, 2016, 03:39:39 AM
Thanks for the advice, I'll see what I can do.
Title: Re: Flappy Bird on HP Prime
Post by: Dream of Omnimaga on September 09, 2016, 04:20:47 AM
Glad to see you again Nullweist. Unfortunately your image URL is broken. I just see some gray icon with an horizontal bar through it :(
Title: Re: Flappy Bird on HP Prime
Post by: p2 on September 09, 2016, 09:17:21 AM
directly seeing the score in flappy bird is a great idea  :thumbsup: makes it much more fun to compete with others  ^^
Title: Re: Flappy Bird on HP Prime
Post by: Dream of Omnimaga on September 12, 2016, 11:07:48 PM
On a side note @nullweist I finally played it and made a screenshot. I didn't try on a real calc yet, though, so it's emulator speed. (unless it runs at the same speed on both?). In any case, I like it so far, although you should try to make the physics more realistic, like in the original game and maybe add parallax scrolling for the background. :3=

(https://img.ourl.ca/flappybird-1.gif)
Title: Re: Flappy Bird on HP Prime
Post by: p2 on September 15, 2016, 12:24:54 PM
Why's there a "you died" screen right at the beginning? ^^

*created a version of the gif with a walrus instead of a bird... too large to upload :'(
Title: Re: Flappy Bird on HP Prime
Post by: Dream of Omnimaga on September 15, 2016, 04:21:33 PM
Imgur accepts large GIF uploads @p2
Title: How to Install
Post by: Enlightened Ingression on September 15, 2016, 08:22:36 PM
This may be a noob topic, but how do you install the app?
Title: Re: Flappy Bird on HP Prime
Post by: p2 on September 15, 2016, 08:33:10 PM
Hey @Enlightened Ingression, and welcome to CodeWalrus  :thumbsup:
Maybe you want to introduce yourself to the forum? :) You can do it in the Introduction area (http://codewalr.us/32)

About your question: Are you talking about  installing Apps on a HP Prime or what system is it you're using? :)
Title: Re: Flappy Bird on HP Prime
Post by: Enlightened Ingression on September 15, 2016, 09:09:44 PM
Quote from: p2 on September 15, 2016, 08:33:10 PM
Hey @Enlightened Ingression, and welcome to CodeWalrus  :thumbsup:
Maybe you want to introduce yourself to the forum? :) You can do it in the Introduction area (http://codewalr.us/32)

About your question: Are you talking about  installing Apps on a HP Prime or what system is it you're using? :)
Installing apps like this one on the HP Prime.
Title: Re: Flappy Bird on HP Prime
Post by: Dream of Omnimaga on September 15, 2016, 10:16:13 PM
You need to unzip the file, then in HP Connectivity Kit, when the calculator or HP Virtual Calculator is connected, go to Application Library in the left menu then drag and drop the hpappdir folder itself to the Application library option. Then you go to the applications menu on your calculator.
Title: Re: Flappy Bird on HP Prime
Post by: Dudeman313 on October 13, 2016, 10:39:51 AM
That's not really a noob topic. I gave up on the HP Prime Emulator because I was too dumb to install anything. :blah:
Title: Re: Flappy Bird on HP Prime
Post by: Dream of Omnimaga on October 13, 2016, 05:04:16 PM
Erm, shouldn't it just involve clicking Next a few time in most cases? (and making sure the install directory is fine, such as program files/program name) That's unless your computer has special filters that must be disabled before installing or if you need admin privileges, though. But in any case, if you can't run CEmu on your computer then unless HP Prime Virtual Calculator is actually a simulator rather than an emulator, then I can't see how it will run.