Join us on Discord!
You can help CodeWalrus stay online by donating here.

Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]

Started by semiprocoder, December 27, 2015, 04:39:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

semiprocoder

So, I have finally come up with a decent(ish, and I plan to maybe do something else if I come up with something else) idea to make a walrii game for. It is not very related to walriis but it is going to have (hopefully)many different walriis you can buy.

Essentially don't touch the spikes is an android and ios game similar to flappy bird where you move back and forth, trying to not touch the spikes. One thing I decided to omit was the top and bottom spikes, as rendering so many triangles lags my nspire and it provides less spikes on this already small screen.

I plan to have walriis as the sprites, but I currently have a red square, just for testing. I know this is a not very good explanation, but I hope it makes sense in the gif attached.

Any suggestions would be welcome.
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

Ooh I like the idea, plus with the bouncing dot, which I assume will become a walrus, it looks a bit like the flying Walrii animation from the CW video :)

I hope you can pull it off :)


What I suggest in future versions is to make the sides black, but add brick walls next to spikes to make it look more realistic, and make the spikes full instead of empty.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

Looks great semiprocoder! I suggest that you increase spikes more often and start with less, it looks really cool though ;)
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

semiprocoder

#3
Well, I've optimized the drawing screen to only the game part, leaving the background to be redrawn only when the game resets. Thus I can draw more in game and can draw a cool background without lagging my calc.

Also, should I have the hitboxes for the triangles be squares or the actual triangle, and should I have the hitbox of the sprite be its center or the whole length/width of it?

I uploaded a vid of the calc gameplay to youtube:
https://www.youtube.com/watch?v=XrYfUO_5O5g
Also attached is a gif of the same thing on the emulator(I made the fps low so that I could upload it).

EDIT: What function sould I use to get how many spikes to generate and to get the speed multiplier each round?
The function in the video is(am I allowed to release this? Its not really code, but it is part of my code):
Spoiler
(-500)*(math.pow(1.05, -(round+83)))+10
[close]
I changed the function to:
Spoiler
[close]

Where the speed multiplier is the square root of each respective function.
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Unicorn

Wow, looks quite fun and addictive! Wish I had a Nspire to play it...
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

Wow, this looks really great with the brick walls. I meant 8 bits style brick walls that are basically 16x240 on each side with a plain black background on the sides, but this looks cooler that way actually.

However, you should get rid of the pink and maybe use cyan, light gray or maroon (the latter would require changing the text and spikes color, though).


EDIT: Also for realistic-ness, you should make Walrii wings so that they're up when you move down and flaps down when you jump. Kinda like in the flying Walrii animation.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

semiprocoder

#6
Wow, I have no idea how I messed up those walriis. Anyways I fixed it now.
Also, I plan to have the background color dynamically generated, but for now I just made it light grey.

Also I added a store and a way to obtain coins(I gave myself a lot of them just to be able to buy stuff instantly).
Here is a screenshot:


EDIT: How do you add tags to titles?
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

It looks better this way. I also like the store idea. Will some of those walruses have different speed, falling speed and jump height? Otherwise you should add a check icon next to them to show which ones you got so far, so the player doesn't buy them twice.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

semiprocoder

#8
Well, I may add different speeds for the different walriis, but before you buy it it displays their cost(and hides the walrii) and after you buy a walrii it displays the actual walrii, so that you can't buy anything twice, although I haven't implemented saving yet. Right  now I am working on making the hitboxes triangles as opposed to rectangles surrounding the hitboxes.

EDIT: I made the hitboxes triangles instead of squares(the triangle at the left is a drawing of how the hitbox looks like(it comes pretty close to the actual triangle, but doesn't direclty match the triangles displayed with errors of like 1 or 2 pixels, nothing major)(it looks closer on the nspire and I fixed the part where it is one pixel down and to the right of 0,0, as I my array is a bitmap of true/false false. I drew at the array number, which starts at 1,1, not pixel number, which is array number -1):
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

Oh I see now. I guess that's good as well, then. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Ivoah

  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

semiprocoder

First off, thanks so much for the support!

So I haven't done too much updating to this game, but I've finally added something original, so I feel like mentioning it. Since my last update, I have added more walriis, amounting to ten so far. I have also made the background change colors every five rounds.

My main update, however, was to add powerups/abilities. So far I have made two types of powerups. The first type removes a random spike, taking little time to regenerate. The second removes all spikes, taking much longer to regenerate. Walriichu has the first type, while iron man has the second type(at least for now), as showcased in the video.

Well, anyways, here is a gif of the game, showcasing the changing color backgrounds and abilities(I have negative money because I decided to disable the check for having more money than the cost of the purchase if I set a boolean flag to true):
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.


kegwaan

Looks like another fun game I'd play a lot... if I had an Nspire
  • Calculators owned: TI-84+ SE, TI-84+ CSE
"If it's stupid and it works, it's not stupid."

Dream of Omnimaga

I like it so far. I assume that the progress bar at the top is for when power ups are gonna be active, right?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal