# Bored? v HTML5/Javascript boredom

**URL:** <https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426>\
**Category:** NYSpeed Off Topic\
**Created:** [September 12, 2011, 12:30pm UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426 "2011-09-12T12:30:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [September 12, 2011, 12:30pm UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/1 "2011-09-12T12:30:40Z")

</div>

[http://dibblrmedia.com/projects/omgmove/](http://dibblrmedia.com/projects/omgmove/)

Got bored. Move the box using the arrow keys and avoid the balls. High score I have seen mailed to me is 3449.

---

<div class="post-metadata">

**Author:** ![boardjnky4](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@boardjnky4](https://forums.speedlife.net/u/boardjnky4)\
**Post date:** [September 12, 2011, 12:36pm UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/2 "2011-09-12T12:36:20Z")

</div>

4223 bitch

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [September 12, 2011, 12:38pm UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/3 "2011-09-12T12:38:42Z")

</div>

just got 4400

it is a really early beta so i will add a press a key to start and some high score posting too in the future.

---

<div class="post-metadata">

**Author:** ![ProgRocker](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/progrocker/32/5434_2.png) [@ProgRocker](https://forums.speedlife.net/u/ProgRocker)\
**Post date:** [September 12, 2011, 12:52pm UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/4 "2011-09-12T12:52:11Z")

</div>

played this the other day when I saw it on G+.

---

<div class="post-metadata">

**Author:** ![maverick27](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/maverick27/32/4946_2.png) [@maverick27](https://forums.speedlife.net/u/maverick27)\
**Post date:** [September 13, 2011, 6:34am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/5 "2011-09-13T06:34:07Z")

</div>

[![http://img836.imageshack.us/img836/9202/omgmove.jpg](http://img836.imageshack.us/img836/9202/omgmove.jpg)](http://imageshack.us/photo/my-images/836/omgmove.jpg/)

Uploaded with [ImageShack.us](http://imageshack.us)

second try. there seems to be a flaw somewhat if you put the box in a certain area (fyi) and I probably could have gone longer but my ADD kicked in after 6k

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [September 13, 2011, 6:45am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/6 "2011-09-13T06:45:16Z")

</div>

^^^ lol seriously?!

---

<div class="post-metadata">

**Author:** ![tpgsr](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/tpgsr/32/7374_2.png) [@tpgsr](https://forums.speedlife.net/u/tpgsr)\
**Post date:** [September 13, 2011, 6:56am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/7 "2011-09-13T06:56:34Z")

</div>

4831 by only moving horizontally on the bottom. I could have probably done better but that is good enough for me.

---

<div class="post-metadata">

**Author:** ![JayS](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/jays/32/15375_2.png) [@JayS](https://forums.speedlife.net/u/JayS)\
**Post date:** [September 13, 2011, 6:59am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/8 "2011-09-13T06:59:29Z")

</div>

lol… 3304 without ever moving the square.

3776, again with 0 moves. Wondering how high a score I can get without actually playing.

EDIT: 4893 without ever moving the box. I’m out. 🙂

 ![http://i224.photobucket.com/albums/dd75/jsears77/game.jpg](http://i224.photobucket.com/albums/dd75/jsears77/game.jpg)

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [September 13, 2011, 7:49am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/9 "2011-09-13T07:49:48Z")

</div>

I gotta work on my generation scheme. My friend played and 4 balls were bouncing back and forth until she had to move

---

<div class="post-metadata">

**Author:** ![LZ1](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LZ1](https://forums.speedlife.net/u/LZ1)\
**Post date:** [September 13, 2011, 7:52am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/10 "2011-09-13T07:52:01Z")

</div>

> [@boxxa](#):
>
> My friend played and 4 balls were bouncing back and forth until **she** had to move

oh really…

Are you publishing the code?

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [September 13, 2011, 7:56am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/11 "2011-09-13T07:56:52Z")

</div>

> [@LZ](#):
>
> oh really…
> 
> Are you publishing the code?

wut

---

<div class="post-metadata">

**Author:** ![LZ1](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LZ1](https://forums.speedlife.net/u/LZ1)\
**Post date:** [September 13, 2011, 8:01am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/12 "2011-09-13T08:01:05Z")

</div>

lol nm I was referring to some girl playing with bouncing balls.

Anyways code??

---

<div class="post-metadata">

**Author:** ![JayS](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/jays/32/15375_2.png) [@JayS](https://forums.speedlife.net/u/JayS)\
**Post date:** [September 13, 2011, 8:05am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/13 "2011-09-13T08:05:39Z")

</div>

> [@boxxa](#):
>
> I gotta work on my generation scheme. My friend played and 4 balls were bouncing back and forth until she had to move

Yeah, your random function is pretty bad. At one point I had 4 going perfectly between the two far corners, just back and forth in a straight line.

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [September 13, 2011, 8:16am UTC](https://forums.speedlife.net/t/bored-v-html5-javascript-boredom/216426/14 "2011-09-13T08:16:39Z")

</div>

> [@LZ](#):
>
> lol nm I was referring to some girl playing with bouncing balls.
> 
> Anyways code??

For this? Just view source. JavaScript has 0 security on the code and its pretty basic. Just an array of balls with their random movement speeds, an init function that runs every interval that detects button presses and moves the balls, and then some basic collision detection. Just working on getting used to the canvas in HTML5.

> [@JayS](#):
>
> Yeah, your random function is pretty bad. At one point I had 4 going perfectly between the two far corners, just back and forth in a straight line.

Ya that is what she had. I gotta do a little better randomizing the random functions. I knew a way in java to really make a more tru-er random but I gotta dig up the old code. Javascript Math sucks.
