Author Topic: [Nspire Entry] Falling Blocks  (Read 14417 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #15 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

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: [Nspire Entry] Falling Blocks
« Reply #16 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 ;)

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #17 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.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #18 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.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #19 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 :)

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #20 on: August 08, 2011, 12:21:40 pm »
Powerups?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #21 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.
« Last Edit: August 08, 2011, 02:34:20 pm by ephan »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #22 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.
« Last Edit: August 09, 2011, 09:07:47 am by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #23 on: August 09, 2011, 10:23:57 am »
This looks nice, great work ephan! :)


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Nspire Entry] Falling Blocks
« Reply #24 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