3 ms·
hi, OP here. coded this game once upon a time for a viennajs (js meetup vienna) talk. added a little bit more game logic yesterday. homegrown physics engine (
by franze 11y ago
hi, OP here.
coded this game once upon a time for a viennajs (js meetup vienna) talk. added a little bit more game logic yesterday.
homegrown physics engine (buggy as you will find out) inspired to some degree on what i learned via http://annotated-code.maryrosecook.com/circles-bouncing-off-lines/ http://annotated-code.maryrosecook.com/circles-bouncing-off-... (saw this on HN, decided that it should be a game)
issues:
* sometimes dot gets stuck on a line (strangely this happens more on mobile phones then on desktop)
* sometimes dot vanishes (i suspect a NaN error)
* on windows phone lines can not be drawn sticky (not a clue on how to debug this on a mac)
why did i do it:
* for the love of code
* i like simple games (this is another one of my games http://www.fullstackoptimization.com/bubbles/ http://www.fullstackoptimization.com/bubbles/ )
pull requests / forks welcome https://github.com/franzenzenhofer/lsd https://github.com/franzenzenhofer/lsd
- adamboro 11y agoHi, great idea with the Line Square Dot, though I find it enjoyable only on a touch screen. Your game "Bubbles" reminds me of Osmos (http://www.osmos-game.com/ http://www.osmos-game.com/), has it inspired you?
- saalaa 11y agoOsmos is a really good game. Every little detail fits perfectly in the universe they have created, be it arts, music, gameplay...
- franze 11y agoOsmosis + Asteroids kinda but basically it was explorative coding: start with a circle, OK, let's move the circle around, what's next? More circles, OK what happens if the intersect ... And so on.
- ryanmcbride 11y agoIt also reminds me a lot of agar.io
- franze 11y agotimeline wise bubbles was first (osmosis is the great-grandfather), but as always: ideas are in the air, forked, replicated, mutated, pivoted, and then taken multiplayer (agar.io is genius, love it)
- johnlbevan2 11y agoGreat work. Have you considered adding a score (i.e. using time to complete level and amount of ink used (e.g. length of lines, or simply number of lines), or was it a conscious decision to keep the game simple & allow players more creative freedom?
- franze 11y agoadded averages at one point, didn't add much to the game, removed it (maybe i was wrong) - forks and push requests welcome
- dccoolgai 11y agoThis game is a real trip. Thanks, man.
- mrspeaker 11y agoCould you tell us a bit about the physics? I'm fine with AABB collisions - but any-old-angle collisions sound hard!
- franze 11y agodon't know much about physics other than what i read in the source of http://annotated-code.maryrosecook.com/circles-bouncing-off-lines/ http://annotated-code.maryrosecook.com/circles-bouncing-off-... and web2d source which i used to code https://github.com/franzenzenhofer/box2d-jquery https://github.com/franzenzenhofer/box2d-jquery - it's all just arrays of vectors.
- playeren 11y agoSOMEONE posted your game on http://reddit.com/r/webgames http://reddit.com/r/webgames, and it's currently the top game!
- profinger 11y agoBubbles is bad ass as well!