Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Munchor on August 01, 2011, 01:53:24 pm

Title: [Nspire Entry] Falling Blocks
Post by: Munchor on August 01, 2011, 01:53:24 pm
Quote from: ReadMe
You're a box, you can move right and left and you need to avoid the enemies falling from the sky.
Falling Blocks is an addictive arcade game that will make you want to beat your highscore all the time.
This game was coded in Lua for the TI-Nspire, requiring OS 3.0.1 to be ran.

I present you my entry for the Omnimaga Programming Contest 2011, Part #2, TI-Nspire Game:

(http://img.removedfromgame.com/imgs/FallingBlocksScreenshot.gif)

Quote from: ReadMe
The gameplay is very simple and probably needs no instructions, but here they are anwyay:

Press [4] to move left
Press [6] to move right
Use the [ENTER] key to move around the different screens

Move right and left to avoid being hit by the falling blocks.
Some of the blocks will disappear, do not worry, that's what is supposed to happen.

Please give me your opinion about my entry, I still have to time to add features you have ideas :)

At first, I was not sure if I would participate, but I thought more about it and I will now ;) The game has been in the works for a while, but I polished it and the above screenshot is likely to be similar to the final one.
Title: Re: [Nspire Entry] Falling Blocks
Post by: pianoman on August 01, 2011, 02:01:03 pm
Wow, looks great! May I suggest also adding arrow key support?
Title: Re: [Nspire Entry] Falling Blocks
Post by: Adriweb on August 01, 2011, 02:02:52 pm
Very nice !

What about a little "human" sprite for the block you control ? :P

(and Ice spikes for the ones falling ?)
I can help you out on that if you dont know how to do it (but I doubt you need help :P)
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 01, 2011, 02:25:44 pm
Thanks guys!

Wow, looks great! May I suggest also adding arrow key support?

I'm not adding arrow key support because these are hard to press, while 4/6 are easier. Thanks much for the idea, though :)

Very nice !

What about a little "human" sprite for the block you control ? :P

(and Ice spikes for the ones falling ?)
I can help you out on that if you dont know how to do it (but I doubt you need help :P)

Thanks for the idea, however, I'm also not adding this one because the game is really supposed to be arcadish, "Falling blocks", it's all about blocks.
Title: Re: [Nspire Entry] Falling Blocks
Post by: pianoman on August 01, 2011, 02:28:05 pm
Wow, looks great! May I suggest also adding arrow key support?
I'm not adding arrow key support because these are hard to press, while 4/6 are easier. Thanks much for the idea, though :)
That's a really good point... I never thought of that.
*Pianoman runs to go add that to Pacman
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 01, 2011, 04:27:02 pm
That's a really good point... I never thought of that.
*Pianoman runs to go add that to Pacman

Thanks, I've always thought the number keys are much easier to use like in nDoom, hence I chose these for Falling Blocks too.
Title: Re: [Nspire Entry] Falling Blocks
Post by: fb39ca4 on August 01, 2011, 04:27:46 pm
Looks nice, but why are there two score counters in the corner?
Title: Re: [Nspire Entry] Falling Blocks
Post by: pianoman on August 01, 2011, 04:29:57 pm
My guess is that one is for high score.
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 01, 2011, 04:30:47 pm
Looks nice, but why are there two score counters in the corner?

The top one is the current score and the bottom one is the highscore one.
Title: Re: [Nspire Entry] Falling Blocks
Post by: Adriweb on August 02, 2011, 12:50:29 am
the highscore one being saved in a anti-cheating secured external variable ? :P
Title: Re: [Nspire Entry] Falling Blocks
Post by: Jim Bauwens on August 02, 2011, 01:38:33 am
You can also let on.save return the highscore as a list. This will then be the parameter of on.restore next time the script gets opened :)
Bullet-proof :p
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 02, 2011, 07:01:37 am
the highscore one being saved in a anti-cheating secured external variable ? :P

Sort of, I'm using var. It's so that it is saved when you close the file too, but you know that ;)
Title: Re: [Nspire Entry] Falling Blocks
Post by: cypressx1 on August 02, 2011, 07:30:49 am
good
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 02, 2011, 06:05:49 pm
good


What do you mean? If it's a compliment to my game, then thanks =P
Title: Re: [Nspire Entry] Falling Blocks
Post by: Adriweb on August 02, 2011, 07:08:37 pm
You can also let on.save return the highscore as a list. This will then be the parameter of on.restore next time the script gets opened :)
Bullet-proof :p
Nice trick, gotta try that :P
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 03, 2011, 05:37:38 pm
You can also let on.save return the highscore as a list. This will then be the parameter of on.restore next time the script gets opened :)
Bullet-proof :p
Nice trick, gotta try that :P

But since my game is open-source, one can simply change the code to cheat XD
Title: Re: [Nspire Entry] Falling Blocks
Post by: Jim Bauwens on August 03, 2011, 05:40:26 pm
Well, at least your code will be good :)
If Linus would think "its open source, and if other people can ruin the code, why should I make it good?", Linux wouldn't be as good as it is now ;)
Title: Re: [Nspire Entry] Falling Blocks
Post by: fb39ca4 on August 03, 2011, 08:13:40 pm
Some people will cheat no matter what barriers are in place. Just worry about making sure someone could not accidentally cheat, and leave it at that.
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 04, 2011, 06:14:38 am
Some people will cheat no matter what barriers are in place. Just worry about making sure someone could not accidentally cheat, and leave it at that.

My current issues are not related with people cheating but with my game being of good quality, I like your way of thinking. As long as the user doesn't cheat by accident it's good, it's up to each one to do whatever they want.
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 08, 2011, 06:16:35 am
I made some progress, I changed bits of the code yesterday to make it easier to understand it for other people who want to learn from it (comments and such).

I also emailed the entry already with everything made, but that doesn't mean it's fully finished yet, I am available to add new features if you guys have any ideas :)
Title: Re: [Nspire Entry] Falling Blocks
Post by: fb39ca4 on August 08, 2011, 12:21:40 pm
Powerups?
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 08, 2011, 12:22:53 pm
Powerups?

Do you mean having more than one life?

Also, the game works on both OS 3.0.1 and 3.0.2 now.
Title: Re: [Nspire Entry] Falling Blocks
Post by: calcdude84se on August 09, 2011, 09:07:21 am
Power-ups are when the player gets additional abilities/powers. They are also items that induce such powers in the player.
In the case of your game, power-ups could fall down like blocks and the player would have to catch them.
There also need not just be power-ups; you could have items that reduce the player's abilities.
An example of a power-up would be an item that makes the blocks fall slower when the player catches it.
Title: Re: [Nspire Entry] Falling Blocks
Post by: apcalc on August 09, 2011, 10:23:57 am
This looks nice, great work ephan! :)
Title: Re: [Nspire Entry] Falling Blocks
Post by: Munchor on August 11, 2011, 04:51:35 am
This looks nice, great work ephan! :)

Thanks a lot apcalc!

Power-ups are when the player gets additional abilities/powers. They are also items that induce such powers in the player.
In the case of your game, power-ups could fall down like blocks and the player would have to catch them.
There also need not just be power-ups; you could have items that reduce the player's abilities.
An example of a power-up would be an item that makes the blocks fall slower when the player catches it.

I see, that's actually very easy to implement, I'll just have items falling instead of just blocks. I make another array with "blocks" (items) that fall at a lower rate than blocks.

When the contest is finished, I'll go ahead and add that, because right now I'm quite busy and can't do it, thanks for the suggestion though :D