Author Topic: Java - Falling Blocks  (Read 5191 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
Java - Falling Blocks
« on: September 05, 2011, 05:20:04 pm »
I decided to port the Falling Blocks game I made for the TI Nspire Game Contest to computers, and I made it in Java, with a screen of 852*600. The graphics are as simple as the ones of the original game. It's almost an exact port, I wanted to keep it fast and simple, like the original.

Here's a couple of screenshots of it running. Oh and it's open-source, the source is included.


Blocks falling in the title screen


"Deathly" blocks are read, and the other are green

On the attached zip, "FallingBlocks.class" is the main class, so to run it, just do java FallingBlocks, or open FallingBlocks.class using the Java Runtime program, if you prefer to do it with the mouse.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Java - Falling Blocks
« Reply #1 on: September 06, 2011, 12:31:47 pm »
Nice, good work!

Btw, if you improve your wx version (make it more pretty and stuff), you could try to push in the Ubuntu/Debian repo :)

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Java - Falling Blocks
« Reply #2 on: September 06, 2011, 03:15:24 pm »
I can't open it ???
I did [Windows+R]>cmd>java FallingBlocks
but FallingBlocks.class is not found..

Edit: I tried with the java Runtime, but the window opens, and closes immediately
« Last Edit: September 06, 2011, 03:15:51 pm by Wellen »
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Java - Falling Blocks
« Reply #3 on: September 06, 2011, 03:17:14 pm »
I can't open it ???
I did [Windows+R]>cmd>java FallingBlocks
but FallingBlocks.class is not found..

Edit: I tried with the java Runtime, but the window opens, and closes immediately

You have to go to the directory of the download.

1. Unzip the attachment somewhere
2. Open the cmd
3. cd to that directory.
4. java FallingBlocks

If it doesn't work, please tell me the error it gives. Thanks!

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Java - Falling Blocks
« Reply #4 on: September 06, 2011, 03:39:03 pm »
No, it doesn't work..
Maybe a problem with my Java ? (v6)

Also, I don't program in java, so there might be a mistake I didn't see ^^
« Last Edit: September 06, 2011, 03:39:56 pm by Wellen »
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Java - Falling Blocks
« Reply #5 on: September 06, 2011, 05:01:32 pm »
You capitalized it incorrectly ;) Use "FallingBlocks" instead of "Fallingblocks" and try again. :)
"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 Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Java - Falling Blocks
« Reply #6 on: September 06, 2011, 05:07:55 pm »
You capitalized it incorrectly ;) Use "FallingBlocks" instead of "Fallingblocks" and try again. :)

Calcdude is right, use "FallingBlocks" ;) And this game is Java 6 by the way.

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Java - Falling Blocks
« Reply #7 on: September 06, 2011, 05:19:59 pm »
Oh yeah, you're right.
It works now ^^
Nice game, btw
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Java - Falling Blocks
« Reply #8 on: September 07, 2011, 04:37:04 am »
Oh yeah, you're right.
It works now ^^
Nice game, btw

Thanks a lot!