Don't Reach The Square

I’m putting the finishing touches on another 4k game: Don’t Reach the Square.

http://groboclown.net/games/drts-4k.html

The game play is fairly straight forward: there some mines which are attracted to the center square, and repelled by your mouse pointer; you need to prevent them from reaching that center square. You can also create a “force ring” that pushes the mines away.

It has a (mutable) sound track, so you may want to adjust your speakers as necessary.

I’ve tested it on JRE 1.6.0 on both Windows and Linux.

Woo, I made it to level 7, quite cool! I like the ripples, they’re awesome. Can you make the music stop when I close the window, though?

Hm. I thought I had handled that case. It should be terminating the sound properly now (there will be a slight delay between closing the window and the music stopping, but it shouldn’t be more than about 2 seconds). Let me know if it works for you.

It lasted a very long time, then went away when I opened a different applet (I don’t know if that was cause or coincidence).

Sound is still playing for me when I closed the applet.

Thanks for testing this out, everyone. I think I have it solved now.

If you’re still hearing the music after closing the window, please tell me the browser and JDK you’re running with, to help me debug it.

This is amazing! I love it! ;D Could play for very long time.

Very nice :slight_smile: too bad though that when I lost on level 9 I went all the way back to level 7 :stuck_out_tongue:

addictive, I reach the level 10 :slight_smile: and was not able to go further… was bored when I get back to level 4 ! :frowning:

can t find the source in the sourceforge site

any help??

It’s buried in the CSV tree:

http://groboutils.cvs.sourceforge.net/viewvc/groboutils/projects/grobo-games/4kgames/dontReachTheShape/src/C.java?view=markup

i am not much of a digger, it seems

thank you

Very cool! Also got to level 7. I like the -1 level penalty when dying. Great job!

Very clever game!

Cool that you even get music into 4K and still have a real game. GFX is also quite nice except for the square! You could have rounded corners and/or maybe some highlighting/shadow. Really nice that you don’t have to start from the beginning when dying, it makes quite a difference on how much I play a game.

example of square with rounded corners and highlighting
That is two lines and 3 pixels removed in each corner. I started off with just squares, but this really made a difference in my mind. Still not super pretty, but passable for very few bytes.

Thanks for the feedback, everyone.

I have been looking at possibly turning it into a rotating cube. The arithmetic isn’t hard, but the switch to rendering polygons would be some extra bytes. A rounded-edge square might also work well. I’ll post here my results.

retry and reach level 12 8)

The 3d rotating cube ended up taking 105 bytes more than it should (209 bytes total), even with the most optimizations I could manage. I attempted the rounded corners, and then I tried out a simpler pulsing, glowly square. I ended up opting for the pulsing square effect.

Great game and very addictive, I really enjoyed my time playing it. :wink: