April 20th-23rd 2012 :: 10 Year Anniversary! :: Theme: Tiny World

Back to Browse Entries

Laser Coin Planets

by mortehu - 48 Hour Compo Entry

Collect all coins to win. Avoid the black screen of death.

The "bugfix" version plays exactly the same, but fixes keyboard handling and WebGL buffer allocations.

Based on HTML5, WebGL and JavaScript. Almost certainly works in Chrome if your graphics card drivers can support WebGL.


A - Move left
D - Move right
W - Use teleport
Space - Jump, double-jump
Mouse - Aim and shoot laser
F - Shoot laser

Just to be clear: Avoid the exploding things that make your screen go dark.

Downloads and Links




True Valhalla says ...
Apr 23, 2012 @ 1:54pm

Pretty good! A little laggy in Firefox (latest v) but definitely playable...nice effects, good physics, and enough lasers to keep it exciting :)

Danvil says ...
Apr 23, 2012 @ 9:26pm

Nice little game. Like the planet hopping.

samoojamies says ...
Apr 23, 2012 @ 9:26pm

Very slick game. Great controls and fun to play.

Mach60KAS says ...
Apr 23, 2012 @ 9:28pm

Very fun, I must admit. Simple concept, well executed!

JustinMullin says ...
Apr 23, 2012 @ 9:30pm

Yeah, LASERS! I have a soft spot in my heart for any game that has a good, solid, old fashioned laser in it.

The rest of the game was good too. ;) I especially like the teleportation effect. Nice work!

Tumaini says ...
Apr 23, 2012 @ 9:31pm

Nice, played it to the end.
No lag in FF on Ubuntu (that I noticed).
Fits well with the theme.

ccscanf says ...
Apr 24, 2012 @ 3:52pm

Nice game.

rvmook says ...
Apr 24, 2012 @ 6:37pm

Nice game, quite addicting

mildmojo says ...
Apr 24, 2012 @ 10:47pm

It looks nice, but you need to prevent keypress events from bubbling up to the browser so you don't trigger typeahead find. In FF with typeahead find enabled, pressing letters opens the find box instead of controlling the game, so it's unplayable.

Fortunately, the fix is easy. jQuery example on pastebin:


mortehu says ...
Apr 25, 2012 @ 8:15am

@mildmojo: Thanks. I've created a version with the proposed fix.

I've also rearranged some WebGL code in the hope of improving the frame rate on some computers. Note that my computer from 2006 runs this game at 60 fps flat in Chromium.

havchr says ...
Apr 25, 2012 @ 10:25am

The game was quite fun. good execution on the core elements. With some polish/music, would be a sure winner.

daredevildave says ...
Apr 25, 2012 @ 1:29pm

I had a great time playing this, smooth, fun and well-balanced. With some polished graphics and audio this would be a great little game. Add some additional enemies, weapons and layouts and it would be a awesome game.

jim3wg says ...
Apr 25, 2012 @ 5:21pm

Nice little concept.
But art realy ..

gnx says ...
Apr 25, 2012 @ 9:29pm

Nice planet mechanics. Didn't like the darkening screen too much. Everytime it went darker it made me think it will fade into a game over screen or something.

mortehu says ...
Apr 25, 2012 @ 9:36pm

@gnx: The darkening means you are taking hits (losing health). It does indeed fade into a game over screen if you take too many hits.

Milo says ...
Apr 25, 2012 @ 10:11pm

Pretty cool game. I finished it and enjoyed it, but it was a bit easy.

vilya says ...
Apr 26, 2012 @ 12:12am

That's really good! Nice graphics, nice sound effects, simple but effective gameplay concept... I wish there were more levels so I could keep on playing!

mildmojo says ...
Apr 26, 2012 @ 10:11pm

Pretty nice. It doesn't look like the typeahead find fix is in the bugfix version, but I played through the original in Chrome. It plays well. The mouse aim is pretty tough on a trackpad. =)

I noticed that you were resetting the gravity source on each teleport; bullets would follow you from one planet to the next. Having worked on a planet-hopping game before, I completely understand the decision. Still, you might have bullets keep orbiting their original planet until they crash.

I got a little lost after a while; a minimap or an arrow pointing to more coins would be helpful in clearing the level.

mildmojo says ...
Apr 26, 2012 @ 10:12pm

Your code looks a lot cleaner than mine, too. =)

mortehu says ...
Apr 26, 2012 @ 10:33pm

@mildmojo: I accidentally deleted the fix when I struggled with some CloudFlare caching issue.

The bullets are actually gravitating towards the player, not a planet. Hard to notice, I know. :) Also, their velocities are clamped, so that they are more likely to converge and not end up in an infinite orbit. Consider them heat-seeking missiles, if you like.

mneubrand says ...
Apr 27, 2012 @ 2:55am

Fun little game. A proper HUD with health, etc. would be nice. Enjoyed playing it.

leafo says ...
Apr 27, 2012 @ 7:04am

It was nice. Played for a while and didn't see an end. Could use some music. The laser effect is neat.

devince says ...
Apr 27, 2012 @ 11:47am

Very good game, the reason: I wanted to finish it!

derrickdool says ...
Apr 28, 2012 @ 4:34pm

I feel like the name doesn't describe the game well (kidding)
Great entry, lots of fun to play.

Moth says ...
Apr 29, 2012 @ 11:18am

Really nice graphical effects! At first I thought the luminosity telegraphing your health was questionable but as I learned how easy it was to keep up (just grabbing coins) I appreciated it as a neat concept. The sound effects felt appropriate and quite spacey in how they were a bit dampened and drowned out.

I managed to beat it! I really like the tech on display here and think you did a great job.

McFunkypants says ...
Apr 30, 2012 @ 11:12pm

Incredible! Silky smooth 60 fps, great controls, nice speedy action. I really like the "jump pads" concept. Keep up the fantastic work! I loved it.

Krisjet says ...
Apr 30, 2012 @ 11:20pm

Very good entry! I liked that the enemies didn't kill me and force me to start over, maybe it would be just as fun as an explorational game without enemies?

davidwparker says ...
May 8, 2012 @ 2:02pm

Nice game. Physics were pretty cool, and it worked well. Hard to shoot the bad guys with a trackpad and no mouse. Also wished you offered arrow keys and not just wasd. Good sound effects too.

ChainedLupine says ...
May 13, 2012 @ 4:24am

Pretty good game! In fact, this is pretty much what I wanted to accomplish, save I ran out of time. :)

You must sign in to comment.

[cache: storing page]