10K Apart

Sinuous
Hakim El Hattab Avatar

Sinuous

by Hakim El Hattab

A game built using canvas and JavaScript - no external libraries. The game requires only mouse movement or swiping (iPad/iPhone/Android) as input. Total size: 6.9KB. The goal is to avoid colliding with red dots while looking for green ones. The longer you can stay alive, the higher you will score!

Comments (71 ) Leave a comment

Didats Triadi

Didats Triadi

Great use of canvas! Nice game

Michael

Michael

6764 points, love it

Markuz

Markuz

Nice game ! :D Very nice graphics !

Denis Kabistan

Denis Kabistan

Nicely done Hakim.

Mourner

Mourner

2181 on the first try. Really nice game!

Areen Shah

Areen Shah

Amazing Dear love it......

Hakim El Hattab

Hakim El Hattab

Glad you guys like it! A little tip for high score junkies like myself: moving around a lot rewards extra points (since it has higher risk). @Michael That's impressive! My best was in the lower 6k. Gonna add a leaderboard for this on my site to allow for some real competition :)

Morteza

Morteza

Cool web game!! a great UI design.

SHAMS

SHAMS

Nice! I thinked that, it is a Flash application.

Scriptin

Scriptin

I feel dizzy :)

Heather

Heather

That was fun! Tough but fun :)

Nick P

Nick P

Awesome! Performed well & genuinely entertaining

Michal B.

Michal B.

Nice! I like games like that one. My best: ~1830

Veera

Veera

addictive.

Pedromateoleal

Pedromateoleal

esto es muy potente señores.. cuidado!!!

Joseph

Joseph

Nice use of canvas - it's fun but it made me rather dizzy.

Max

Max

It's awesome!

antimatter15

antimatter15

I love the sparkles when you die.

Jill

Jill

Very fun, a little hypnotizing, but addictive. Nice and clean, great work!

simboyz

simboyz

simple and amazing!

Alessandro

Alessandro

Go!

Jasper

Jasper

Mind flurbing.

Jasper

Jasper

Mind flurbing.

Hakim El Hattab

Hakim El Hattab

Now available with a high score list at: hakim.se/experiments/html5/sinuous/01/

Ryan Champ

Ryan Champ

Great game... I am more so impressed with the simplicity of the idea... So fun and addicting yet very simple in its essence... You sir, are my hero.

Nikki

Nikki

I keep coming back to this site just to play your game, it's incredibly addictive!

Michael

Michael

8665!

Max

Max

I hate this game. I can't break 2k and I can't stop playing it. 5/5

Max

Max

Wait, you can cheat? Do tell.

Brad

Brad

If you change your viewport meta tag to: content="width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" ..then the top navigation bar will go away on the iPhone. I don't think there is a way to make the bottom one go away as of iOS4. The game runs great on the iPhone, but I would suggest offsetting the mouse to the left by a hundred pixels or so. My finger covers the entire dot and makes it hard to see. Aside from that, great job!

Juan José Azpiroz

Juan José Azpiroz

It's difficult to believe that a so nice and addictive game has been programmed in 6,4 kb. Congratulations !

Hakim El Hattab

Hakim El Hattab

I'm glad you guys are finding it addictive! Like I wrote above, you can compete with people on the high score list here: http://hakim.se/experiments/html5/sinuous/01/. @Max: Without going into any cheats, I do think most people are not taking rule #4 into account, i.e. moving around a lot with the mouse rewarding extra points :) @Brad: Thanks for the tip! The problem is that using device-width/height leads to very bad framerates due to the canvas resolution being much higher. The only way I could keep it at a bearable speed was to reduce the size. There is already an offset (-20,-20) in place for the dot but I agree that it should probably have been greater.

Hakim El Hattab

Hakim El Hattab

@TED'S&BIRD I finally get to meet one of the culprits :P Strange that it would get easier after 24k, it's nearly impossible to reach a score that high so I haven't tested. The difficulty is constantly increasing and the number of dots is simply determined by STATIC_NUMBER * difficulty.

Naga

Naga

Really nice. Worth efforts

TaihwanHah

TaihwanHah

This is really simple and fun! Great!

Faraz-ur-rehman sharif

Faraz-ur-rehman sharif

Cooooooooooooooooooooooooooooooooooooool

Daniel Pavitt

Daniel Pavitt

This is insane! Very addictive.

Chankey

Chankey

Hakim you rocks man !! I am a computer science student and got really inspired by your work. Thanks for inspiring :) Keep doing this great work !!

owniumo

owniumo

trippy! got 3900, want no more ))

Sean Cronin

Sean Cronin

Love this game. So simple and yet so much fun!

windylcx

windylcx

so cool!

ferry

ferry

cool!!my best love !

Carl Collins

Carl Collins

Amazing. A fun game, plenty of challenge. Great use of 6.9k!

Sunny Ren

Sunny Ren

html5 I now have no experience, but believe in its potential

crusher

crusher

nice. i love html5.

Metaltemujin

Metaltemujin

Nice :)

daphne

daphne

better than astroids! does anyone still remember that game?

Keith

Keith

Far too addictive!! Well done.

Sebastian Salzgeber

Sebastian Salzgeber

Nice! But somehow laggy in the same time =/ I guess Canvas is great, but not so great when it comes to particle-effects...

Maxime

Maxime

Great App and very addictive! The dot movement is very fluid, I love that!

Arnie

Arnie

I would love to play it but being colour blind I can't see the difference between the red and the green dots!!!!

Jamie Maing

Jamie Maing

Great game! Addictive to keep going. Maybe some more other colors to spice it up even more?? ;-)

Roman

Roman

Nice game!

oivoodoo

oivoodoo

It's great!!! Thanks!

Carlos Taborda

Carlos Taborda

AMAZING! Can I embed on my blog?

Ng Wai Mun

Ng Wai Mun

Score: 1124 Time: 18.95s Am I good?

dhaval

dhaval

Cool

viter.alex

viter.alex

Great

Xzibit

Xzibit

Score: 15626, time 280,78 YEAH!)))

Avinash

Avinash

Congrates dude !! You're the winner =)

Eike Send

Eike Send

congratulations!

Marc Provost

Marc Provost

Awesome game!

Dr.Death

Dr.Death

Funny game!

Hakim El Hattab

Hakim El Hattab

Thanks for all the kind words. I'm glad you enjoyed Sinuous and honored to see it win!

Flyingdome

What could you build with only 10 kilobytes of code?

That’s the concept behind this here 10K Apart contest, the love child of MIX Online and An Event Apart.