8 ms·
LSD – Line Square Dot Game
- bonobo3000 11y agopolygons! edit: got to level 10 with this approach before giving up. basically, bound the ball into an area towards the goal as soon as it gets there by enclosing it in a polygon. as long as you keep getting it closer, you eventually get it into a polygon with the target - it works out. It will even pretty much guarantee the ball eventually goes through small gaps it needs to to pass through one polygon to another Seems like a good explanation for how gases work.
- unexistance 11y agosame here, still playing (in the background tab)... reminds me of Jezzball :D
- dbaruchel 11y agoYeah I'm using the same strategy, i'd add that you just need to be careful when drawing small polygons because a glitch can cause the ball to cross the line anyways and then it's hard to get it back to where you want it... except if you use the glitches to your advantage ! :)
- nishparadox 11y agoI have used same strategy and is sure to work on any level because eventually it'd just converge the ball towards the box.
- jason_s 11y ago...except for the bug where the ball gets trapped in a line and pops out of an enclosed polygon.
- Natsu 11y agoOr when the box is completely surrounded by lines and your only hope to win is a bug :) I also try to make the box the area in my polygon with the lowest potential energy. It seems to (mostly) obey conservation of energy, so....
- deleted 11y ago[deleted]
- A010 11y agoLevel 3 and it's impossible: https://i.imgur.com/OOu7rsn.png https://i.imgur.com/OOu7rsn.png
- twiceaday 11y agoIt's technically possible to sneak it in on the right.
- rplnt 11y agoFor me, in level 2, the dot started near the edge and then almost instantly disappeared.
- kittiepryde 11y agoIts very doable, you got to glitch it (strangely, I got pretty good at glitching it through, and then I realized, my morning was gone, and I had to go work)
- A010 11y agoI tried to glitch it but not in this scene, if you make the dot bounce very slowly and close to stop it'll get through the line.
- johnlbevan2 11y agoI'm loving the glitches; made a bit of a rail gun by putting the ball on top of two really close parallel lines!
- Kiro 11y agoAre you using Windows 95?
- gpvos 11y agoCould be Windows XP with themes turned off. Or Windows Server. Actually, maybe if you turn off all fancy stuff on Windows 10 you can still get this?
- thomasfoster96 11y agoWorks great on my iPhone, which is a surprise. Well done!
- dgerges 11y agoVery fun :-) thank you
- errozero 11y agoCool little game, even better that it's made without a framework. Maybe you should add a facebook opengraph image so it looks a bit more attractive when shared.
- franze 11y agodone (using a really cheap og:image image)
- franze 11y agohi, 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
- drd93 11y agoThe biggest abuse in this game is that the ball can be pushed through the walls with enough lines drawn onto it
- deleted 11y ago[deleted]
- verytrivial 11y agoFun! What about a limit of N lines, e.g. oldest removed first (maybe color-coded by age?)?
- hellofunk 11y agoForgive me but can anyone summarize how to actually play this game?
- turshija 11y agoDraw lines in order to bounce a dot to square. Simple "physics" game, quite fun actually.
- dugmartin 11y agoTo get to the next level draw lines to bounce the ball into the square.
- gpvos 11y agoI had to read the source to figure out that I had to use the mouse (or touch if available) instead of the keyboard. From there, I figured it out quickly enough though. The problem is that drawing lines is tricky with a trackpad, and not a natural thing to try out.
- rch 11y agoIf you draw the line while intersecting the dot, the latter gets trapped on the former.
- colinramsay 11y agoThe OP posted 45 minutes before you with a very polite and open message which describe the problem you have stated and also provided a rationale for the project AND a link to github. Why is it good form to just wade into a comment thread and give unconstructive criticism in this circumstance? Why not just quietly open a github issue?
- konschubert 11y agoThere seem to be a few more glitches. If the box the ball is trapped in gets too small it sometimes passes a box boundary. (I am using chrome.)
- johnlbevan2 11y agoThat's good; it means if you make a mistake you can box your way out of it.
- el3ctron 11y agothis game is my perdition!! hahhaha
- matthucke 11y agoA border around the playfield would help - I keep trying to draw lines that extend slightly outside the browser window, and inadvertently do things like grabbing a bookmark from the bookmarks bar above.
- coffeeaddicted 11y agoYeah, that would help a lot. Also might be possible to see where the ball comes back in a little earlier then. Another little helper would be to draw the level-start-lines not completely up to the border. Because often you can then still route around them all to reach otherwise unsolvable levels.
- kachnuv_ocasek 11y agoCan't wait till someone makes an AI for this.
- JimiofEden 11y agoFelt like I was mostly playing jezzball. Simply trap it in a box and keep narrowing it down until they touch. Fun!
- 91bananas 11y agoMy immediate reaction too, that was such an awesome game.
- f00644 11y agoThis is the best game i've ever played in my life! super addictive!
- lawlessone 11y agoI broke it, the ball stuck on the line
- willthefirst 11y agoreally great. so simple but immediately entertaining.
- atrilumen 11y agoA lovely little game with no instructions. Seems to be working out a bit better for you than it did for me (http://luciangames.com/oware http://luciangames.com/oware).
- LoSboccacc 11y agobig difference in presentation: on his game page I get to play immediately, on the page you linked I just get some static screen and links to buy
- atrilumen 11y agoThat's fair. It's a Unity game. I need to update that page to reflect that it's been removed from iOS (not willing to keep paying Apple), and it's free everywhere else. I decided it was more valuable as a portfolio piece than as product with abysmal sales (couldn't afford to market it; not sure if it would have helped anyway), so I made it free. You can play it with the Unity web plugin (I know) here: http://luciangames.itch.io/oware http://luciangames.itch.io/oware. I only posted it here because it's a game with no text whatsoever, and I found that to be a really interesting design constraint. But maybe I'm the only one.
- profinger 11y agoI love it! Interestingly enough though, the ball goes through line intersections.
- vblord 11y agovery fun game. thanks for sharing. I like when it gets caught on the line and bounces back and forth
- deleted 11y ago[deleted]
- grimmdude 11y agoCool idea, very interesting game to play.
- werber 11y agoThis game is addictive, would be pretty cool if you went head to head with a random person and you both were trying to get the ball into your own box. great work!
- andrepd 11y agoIt's funny how a game featuring literally a line, a square and a dot can make one core in my machine go nearly 100%. Yay webapps! EDIT: And it does not run at 60 fps.
- TazeTSchnitzel 11y agoAny program that runs in an infinite loop will use 100% CPU.
- robbrown451 11y agoSurprisingly addictive for such a simple game. Too bad the acronym didn't spell out "cocaine" or something. Nice work. If you wanted to spiff it up, you might change the dot to a basketball and the square to a hoop. And add some satisfying sounds. Bouncing on the rim and having the net move in a plausible way would be some work for you. :)
- edem 11y agoDo I need to be on LSD to enjoy this? :)
- calebm 11y agoSurprisingly fun :)
- enahs-sf 11y agoit's a good thing everyone will be at burning man this weekend so i can get to higher levels before they do :)
- deleted 11y ago[deleted]