spaceemotion's avatar

Java game for school

9 18 3K (1 Today)
By spaceemotion   |   
Published:
© 2012 - 2020 spaceemotion
Since I am learning a bit java in school (not the "bukkit java" - i already done this, this one is from the ground up), I wanted to show you a bit of my progress :)
This game was made in about 4-5 hours of work using eclipse and the processing API (www.processing.org) (connected together through the Proclipsing framework). I really like how it turns out.
The only thing I am a bit disappointed about is the level generation.

The gameplay system is easy: use your arrow keys to move the ball to the next wall.

Hope you like it!
Link for the final version will be posted when I am ready with a first release.

All graphics are made from scratch - please dont steal them!
Image size
803x641px 131.58 KB
Comments18
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In
DNZGames's avatar
DNZGamesHobbyist Digital Artist
create an algorithm that detects whether or not a solution is possible?
i'm sure that something like that is possible, but i have no experience to suggest what
spaceemotion's avatar
spaceemotionProfessional Interface Designer
oh and one algorythm that works well is the A* ("a star") pathfinding algo. ask wiki about that - pretty interesting ;)
spaceemotion's avatar
spaceemotionProfessional Interface Designer
I already got one :)
my friend ("mathematican freak" xD) helped me out, update soon (tomorrow)!
DNZGames's avatar
DNZGamesHobbyist Digital Artist
awesome:D
spaceemotion's avatar
spaceemotionProfessional Interface Designer
The level generation is still not working, but I am working on an editor now :) (Screenshot: [link])
Everyone can create their own levels now ;)
DNZGames's avatar
DNZGamesHobbyist Digital Artist
wow. this is looking awesome :D
keep up the fab work :D
spaceemotion's avatar
spaceemotionProfessional Interface Designer
i now also added the ability to remove blocks lol
The next things to do are save/load and level packs :)
DNZGames's avatar
DNZGamesHobbyist Digital Artist
Damn how I envy your scripting ability :P
flamedog1's avatar
wait how are the blocks gen'ed is it by line ? or what ?
spaceemotion's avatar
spaceemotionProfessional Interface Designer
ma[y][x], dynamicall generated map using a noise random and a sin wave to clear it up. every color in the generated image that has a greyscale-value over 50% is turned into a block :D
flamedog1's avatar
Hmm >.< how could u make it better
spaceemotion's avatar
spaceemotionProfessional Interface Designer
already happened :)
I have an idea in my mind and will test it out tomorrow.
flamedog1's avatar
ok :3 kind of reminds me on a game i was making but it was kind of differnt :3 there was 4 worlds and each world got randomly gen'ed per pc. So i just used "1.map" , "2.map" , etc and then i had a config file "config.ini" and had them in a folder "world 1" so the game would load the folder and read the config and from there it read the maps and a ".map" looked like this :3

--- map 1 snip ---

1111111111111111111111111111111
1S00000000000000000000000001111
1111111000000000000000000001111
11111F0000000000000000000001111
1111111111111111111111111111111

--- end snip ---
the 1's are walls
the 0's where empty
the S was the start point level
the F was the end point for the level

i never used it because i couldn't encrypt the files and still use this format >.< I had to encrypt them because people would just go in the "%appdata%/flameCo/mapGame/maps/world1/1.map"
and just edit the file with notepad :3
spaceemotion's avatar
spaceemotionProfessional Interface Designer
Because of my work on CatacombSnatch I know now how to save "encrypted" files. If its java you just can use serialized objects that you store via an objectoutputstream to the hdd. that way you also dont need the ini and map files - just one per level.
I will make a leveleditor for this - for the users and for me lol. it will also store the information like you shown above; 0 for empty, 1 for wall and some special places. :)
If you need some help with encryption (dont know which you should use) base64 is a good idea I think - not everyone seems to known how to edit encrypted base64 files lol (well not with notepad). I had a script for PHP which let me define my own charset, so it was even more secure ;)
flamedog1's avatar
Well thx but I gave up on it :p and I could encrypt the files but when I decrypt them it would be on one line>.< X3 not muti
Gallanty's avatar
GallantyHobbyist Digital Artist
So it's like walking on ice in pokémon games? <3
Very nice, I really like the design. However, there is a trap in the bottom right part, you won't be able to get out of the vertical 5-space-row. ;P

And sorry, I don't know anything about programming.
spaceemotion's avatar
spaceemotionProfessional Interface Designer
yeah thats the level generation.
its not randomly placed blocks, but its like a 99.99% chance NOT to be able to win with the code I am using now lol
Gallanty's avatar
GallantyHobbyist Digital Artist
Great job to program such a level generator anyway. From the viewpoint of a layman like me.
anonymous's avatar
Join the community to add your comment. Already a deviant? Log In