CodeWalrus

Featured Member Projects => Walrii Games (TI/HP/PC/2600) => Topic started by: semiprocoder on December 27, 2015, 04:39:05 am

Title: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on December 27, 2015, 04:39:05 am
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.
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on December 27, 2015, 04:40:44 am
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.
Title: Re: Don't touch the spikes remake with Walriis
Post by: alexgt on December 27, 2015, 04:29:34 pm
Looks great semiprocoder! I suggest that you increase spikes more often and start with less, it looks really cool though ;)
Title: Re: Don't touch the spikes remake with Walriis
Post by: semiprocoder on December 27, 2015, 09:17:58 pm
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: ShowHide
(-500)*(math.pow(1.05, -(round+83)))+10

I changed the function to:


Where the speed multiplier is the square root of each respective function.
Title: Re: Don't touch the spikes remake with Walriis
Post by: Unicorn on December 28, 2015, 02:34:19 am
Wow, looks quite fun and addictive! Wish I had a Nspire to play it...
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on December 28, 2015, 06:31:15 am
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.
Title: Re: Don't touch the spikes remake with Walriis
Post by: semiprocoder on December 28, 2015, 04:16:27 pm
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:
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fs8.postimg.org%2Fhnduen4g3%2Fdtsdemo.gif&hash=ce1a518202bf20b317fb072301f6d83c)

EDIT: How do you add tags to titles?
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on December 28, 2015, 07:30:26 pm
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.
Title: Re: Don't touch the spikes remake with Walriis
Post by: semiprocoder on December 28, 2015, 07:55:40 pm
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):
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fs11.postimg.org%2Fkufn2z6td%2Fdtsdemo.gif&hash=da7ea5e521f2ee4af57cc5040f08e765)
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on December 28, 2015, 08:07:45 pm
Oh I see now. I guess that's good as well, then. :)
Title: Re: Don't touch the spikes remake with Walriis
Post by: Ivoah on December 29, 2015, 12:49:26 am
Looks nice! Keep up the good work.
Title: Re: Don't touch the spikes remake with Walriis
Post by: semiprocoder on December 31, 2015, 04:16:19 pm
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):
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fs2.postimg.org%2Fxq4wptd6f%2Fdtsdemo.gif&hash=bcf2eaf1fee262c8c388c256f1b8182e)
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: JWinslow23 on December 31, 2015, 05:58:39 pm
Looks nice, I would totally play this game if I had an Nspire! Awesome work!
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: kegwaan on December 31, 2015, 08:37:58 pm
Looks like another fun game I'd play a lot... if I had an Nspire
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 03, 2016, 02:34:44 am
I like it so far. I assume that the progress bar at the top is for when power ups are gonna be active, right?
Title: Re: Don't touch the spikes remake with Walriis
Post by: alexgt on January 03, 2016, 03:53:52 am
O.O looks great ^.^ :w00t: iron walrii :P

But you should make a uni-beam that comes out of the eyes destroying the spikes O.O
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 10, 2016, 08:55:03 am
So how is this going?
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 10, 2016, 07:41:36 pm
I haven't really done too much development, unfortunately. I will try to add some more to this game before the deadline though.
However I don't know how well I will be able to test whether this works going forward, as I(think) I might have lost my calculator two days ago.
Nvm I managed to find it after like an hour of searching.
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 11, 2016, 07:46:59 am
I was scared for a bit. It would suck if the entry was canceled due to stolen or lost calculator. >.<

I recently had to search for my phone for half an hour and thought I disposed of it by accident somewhere. >.<

Also I was asking if this was progressing since it seemed close to being done (or at least the gameplay part), and the contest deadline is arriving fast.
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 12, 2016, 11:50:07 pm
Well, I've finally done something on this again. I added a third powerup, which is invincibility(theres a blue bar that shows how much time is left for it), which the french walrii has.
Also, I've added a timer mode, in which you try to get as many points in two minutes. You lose 3 points if you hit a spike, but you still die if you hit the ceiling or floor, no matter how much time is left on the timer.

Here is the image:
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fs17.postimg.org%2Fh11vyj9ct%2Fdtsdemo.gif&hash=144a46599573c3bff844c24057efa12e)
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: c4ooo on January 13, 2016, 12:03:23 am
Image is broken  :( Anyhow, nice work! :)
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 13, 2016, 12:22:09 am
Quote from: c4ooo on January 13, 2016, 12:03:23 am
Image is broken  :( Anyhow, nice work! :)


Thanks!

I think it might be because the image is kind of large, 3.4 mb. Still should be easily loadable, but maybe? I see it just fine in any case. I have no idea why recently my images have been so large, but for some reason something has been up with compression or something, making images a couple of times larger(@DJOmnimaga you have any tips to reduce the filesize?)
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: c4ooo on January 13, 2016, 01:13:52 am
I think it is because the site your useing does not support hot linking. Just use imgur or something ;)
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 13, 2016, 01:16:18 am
Looks very great and hard ^.^

I assume it's almost ready, right?
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 15, 2016, 02:30:11 am
Well. It's not done yet, but I have to submit it as it is right now. I was planning to add a couple more walriis and to change the stats of their powerups a bit. However, my computer's hard drive broke, and I cant have the student software on more than one computer, so I can no longer develop this.

Also DJ just a note when you're scoring can you please take this into consideration to not count the glitch that you can buy walriis without having enough money for them? It can be removed with one line of code, and I was planning to do so when I finished, as I had it for testing purposes, but I can no remove that line :(.
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 15, 2016, 07:42:59 am
That sucks about your computer. :(. You should e-mail TI-Cares about your license issue and I'm sure they would be glad to help you if you provide them the serial number. It would suck if you had to quit calc dev because of that >.<. Isn't it possible to develop on-calc, though, via OCLua or something? In any case, I hope you can get a new license (normally TI are cooperative about such matters because many TI community users switched computers and managed to get a new license from them)

I'm glad that you could manage to get one version out, though. Do you think you can submit it from a different computer?
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 15, 2016, 08:41:25 pm
Yeah I'll try that. For now I now realized that there is a thing called a free trial, which I am now using on my older(but still working) computer. Thus the development of this program will be finished! =
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 15, 2016, 10:36:16 pm
That is good to hear. Hopefully you can find a permanent solution, though.
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 16, 2016, 04:26:09 pm
Well, I've pretty much finished the game. I added two more walriis, centered the store,  disabled being able to buy stuff without having enough money, made the invincibility last a bit longer, and made more walriis have the invincibility ability.
My other comp doesn't have any real recording software and I'm too lazy/forget the names(just looked by the image on the taskbar) to be able to record the new gameplay.

Anyways, I just need to add a readme and a copy of the readme on calc, as on of the menu items, and then I will be done with the game. Also I need to come up with a new name for this game that takes something from walriis.

EDIT: I've finished and submitted my code.
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 18, 2016, 08:40:18 am
I confirm that I received your entry. I'll give the tns a try later to see if it works. I can't wait to play :)
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 19, 2016, 09:08:36 pm
Update: I tried your entry and it's pretty cool. It takes a while to gain coins, though O.O
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 19, 2016, 11:16:01 pm
Well I've made the game harder because I saw that I could fly in between two spikes right next to each other. I've expanded the hitbox slightly to do that(it is now slightly larger than the triangles).
Furthermore, I made it so that you get 3x coins per game compared to before.
I've submitted my new version.
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 19, 2016, 11:51:10 pm
I hope it doesn't mean some levels will be unbeatable if the user is unlucky, though O.O

In any case, I got your updated entry :walrii:
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 20, 2016, 12:09:47 am
I hope so as well, cause I've just realized that its not even(the darker pixels are the parts that the spike isn't displayed on)(maybe my fill triangle function is a bit glitched, but idk):
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 20, 2016, 12:34:01 am
Strange, for me it displays fine like before
Title: Re: Don't touch the spikes remake with Walriis[walrii contest][ti nspire][lua]
Post by: semiprocoder on January 20, 2016, 12:42:39 am
Oh no, I just changed my game afterwards to see how bad the hitbox was. The spikes should still display as normal.
Title: Re: Don't touch the spikes remake with Walriis
Post by: DJ Omnimaga on January 28, 2016, 08:10:52 am
Oh I see now. Anyway good luck for the contest voting/judging! :)