wood burning stoves*
The moose likes Meaningless Drivel and the fly likes Working on a new simple game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Working on a new simple game" Watch "Working on a new simple game" New topic
Author

Working on a new simple game

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I wrote this game rather quickly last night. It is like the helicopter game that seemed to be a hit. Use the up and down arrows to control your dot:

http://www.pascarello.com/cavegame/

I added a level editor to it so you can make your own boards. I am going to get it saving boards [levels] to the server tonight.

Can you guys play with it a bit today and see if you find any errors with game play or the level/board editor. The copy is probably bad since I wrote that at 1AM last night.

I am going to double the board pixel size at some point and add the ability to incease or decrease speed. If you have other ideas to improve it I am all ears!

Thanks,
Eric
Nitin Nigam
Ranch Hand

Joined: Jul 03, 2006
Posts: 129
Hi Eric,
Nice time pass game. I generated a board in which i completely blocked the path (So that no way one can finish the game)
So one of the column was populated by following code:
<blockquote>code:
<pre name="code" class="core"> [1,1,1,1,1,1,1,1,1,1] </pre>
</blockquote>
It should alarm an error while loading/saving the board for such impossible to win configurations.


Nothing is impossible; for those who doesnt have to do it themselves.
myjotting.blogspot.com
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11411
    
  16

the generator does strange things if you click and drag the mouse... you get weird blue lines all over the place. once i got it to spaz and not let me put any more dots on the board until i banged and cntrl clicked about a half dozen times.

i do have some script blockers on my work machine, but i htink i allowed your site...


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The blue dots is your browser selecting the text in the grid. You do not have to hold down the mouse button which is causing it to happen.

One thing I am going to try to work on is making the grid work a little better with editing, detecting block paths, removing columns, and maybe repeatable sections.

Eric
[ July 16, 2008: Message edited by: Eric Pascarello ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42280
    
  64
It would be nice to make the keys configurable, or to add a second set of keys. On my laptop keyboard the arrow keys are only half the size of standard keys, making it hard to play (and I don't even have big fingers :-)


Ping & DNS - my free Android networking tools app
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Ulf, I added new keys in my next version that I will put out later on. [w,s and o,l] I find myself putting my right hand on the l and the left on the w.

I have started some validation code for the boards. Working on determining if there is a valid path. This is a little tricky, but I am enjoying the challenge.

Trying to figure out two little bugs. 1) Running into walls at the right timing does not kill you and 2)allowed to move after being killed. Looks like I have boolean issues.

Eric
Nitin Nigam
Ranch Hand

Joined: Jul 03, 2006
Posts: 129
Hi Eric,
Can you provide a key(possibly right arrow key) to speed up the travel speed of the block?
Once i get used to of the current speed i would like the blocks to come to e at faster pace. (Or you may introduce skill levels) HIgher te skill level, higher the speed.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Originally posted by Nitin Nigam:
Hi Eric,
Can you provide a key(possibly right arrow key) to speed up the travel speed of the block?
Once i get used to of the current speed i would like the blocks to come to e at faster pace. (Or you may introduce skill levels) HIgher te skill level, higher the speed.


I have that in the next version that I will post later today.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Game is updated with a few new features:
  • Able to change the speed of the game with left and right arrows. The speed can be increased or decreased before the game and while in play
  • Alt key mappings wasd and ijkl
  • Added Percentage Done, Speed, and Scoring to it
  • Fixed some collision bugs


  • Changes to the Editor:
  • Got rid of the strange drag behavior with the blue boxes.
  • Added the ability to drag the mouse around with the button down
  • Added some basic validation, but nothing that is complex. Invalid boards can still be generated.



  • http://pascarello.brinkster.net/cavegame/
    Eric
    fred rosenberger
    lowercase baba
    Bartender

    Joined: Oct 02, 2003
    Posts: 11411
        
      16

    Originally posted by Eric Pascarello:
    The blue dots is your browser selecting the text in the grid. You do not have to hold down the mouse button which is causing it to happen.

    Oh, SURE!!! Blame the USER!!! spoken like a true developer.





    Eric Pascarello
    author
    Rancher

    Joined: Nov 08, 2001
    Posts: 15376
        
        6
    Originally posted by fred rosenberger:

    Oh, SURE!!! Blame the USER!!! spoken like a true developer.



    Well I fixed your bug in the new release so there.... Well that is if you do not use a weird browser like Opera.

    Eric
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Working on a new simple game