Author Topic: [Computer] Falling Blocks  (Read 7203 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
[Computer] Falling Blocks
« on: August 03, 2011, 01:14:33 pm »
After making Falling Blocks for the Nspire, I decided to make Falling Blocks for Computer, made in Python, uses wxPython:



I actually enjoy playing it myself, but it makes me furious, because when I lose this I really get nervous  :mad:

It's actually a very similar version of Falling Blocks for the Nspire, my contest entry but for computers. It works on all operative systems, but requires Python and wxPython.

I will be uploading it when the contest ends :) What do you think?

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: [Computer] Falling Blocks
« Reply #1 on: August 04, 2011, 01:14:26 am »
Cool, can't wait to try it :)
Also, I get already nervous by just looking at the video x)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Computer] Falling Blocks
« Reply #2 on: August 04, 2011, 06:16:23 am »
Cool, can't wait to try it :)
Also, I get already nervous by just looking at the video x)

Indeed, it's very "ouch, that was close". The game uses the graphics device of wxPython, and it's code is very similar to the Nspire Lua's code, because I made it event based. The highscores are saved on a text file, as binary numbers.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Computer] Falling Blocks
« Reply #3 on: August 08, 2011, 11:56:48 am »
Actually, here's an updated screenshot with colours:



Blocks almost hitting you are red and the ones more above are green, I'm also about to die in this screenshot :P

Offline pianoman

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 426
  • Rating: +24/-0
  • ♪♫ ♪♫ ♪♫ ♪♫ ♪♫ ♪♫ ♪♫
    • View Profile
Re: [Computer] Falling Blocks
« Reply #4 on: August 08, 2011, 12:01:41 pm »
Can't wait for it, and yeah, I felt myself holding my breath while the video was going on.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [Computer] Falling Blocks
« Reply #5 on: August 08, 2011, 02:34:24 pm »
Looking great :D
I actually enjoy playing it myself, but it makes me furious, because when I lose this I really get nervous  :mad:
Which means you got the replay value right :D

Also, I kinda lost something when I read that.
Blocks almost hitting you are red and the ones more above are green, I'm also about to die in this screenshot :P
Good timing lol
« Last Edit: August 08, 2011, 02:34:59 pm by Deep Thought »




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [Computer] Falling Blocks
« Reply #6 on: August 08, 2011, 03:38:49 pm »
Interesting, I wonder if you could make the blocks go down smoothly?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Computer] Falling Blocks
« Reply #7 on: August 08, 2011, 04:08:53 pm »
Interesting, I wonder if you could make the blocks go down smoothly?

I just made it smoother, thanks for the idea!

Which means you got the replay value right :D

Thanks!

Now here's a video showing some progress:


Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: [Computer] Falling Blocks
« Reply #8 on: August 09, 2011, 08:14:43 am »
Maybe it would be possible to make the blocks transition smoothly from green to red instead of suddenly changing? The basics are a bit basic right now, but the gameplay looks nice. :)