The goal of the game is to coax the blue bubbles into the green rings. The blue bubbles are attracted to the blue “marble” with the gold halo. You move the blue marble by clicking in the playing field, creating waves that push the marble.
This is a work in progress -- There is now a basic level progression system and an end-game state but much more refinement of the game play need to be done and only the first level is at all designed.
You get points for the amount of blue bubble stuff you coax into the green-ringed goals. You loose points for blue bubble stuff that gets devoured by the black-ringed eaters. The current level is over when all of the blue bubbles are gone.
Collisions are completely ealastic. Moving objects are subject to fluid drag. The blue marble exerts a gravitational pull on the blue bubbles.
Dark blue "bumpers" will wear out with repeated blue-bubble collisions. When a bumper pops it releases more blue bubbles. Black "eaters" get bigger as they devour the blue bubbles. Their skin stretches thinner and eventually pops, to crop up elswhere.
You only get points for getting blue bubbles into green goals -- which also act like eaters except they only eat bubbles smaller than they are.
This is a not simple physics game written in Javascript and SVG. I wrote this code to learn a bit about how SVG works. It's the first non-trivial Javascript program I've written and the code is horrible. Please don't use this as example code -- it desperately needs refactoring into an object-oriented form
Platforms and performance -- Chrome provides the best performance of the browsers I've tested, but Firefox and Safari also work. A laptop or desktop machine will give very high frame rates but you can play the game on Mobile Safari on an iPad 2. IE lacks native SVG support and so isn't suppored.
A direct link to the Javascript/SVG game. Follow this link if you find the game formatted awkwardly for your browser window but don't expect it to run sensibly in a phone form factor.
I think that's it. If you have comments drop them by my Google Plus page or send email to rich at devaul dot net.
|