Experiments

ToDo List/Game

ToDo List/Game

Place a description in the Items field and put a time (in minutes) for how long the task will take and click Add Item. When complete, click the Complete button and that will strengthen your character.


Platformer

Desktop Version      Mobile Version

Player must try to collect the diamond. They can click/touch the screen to create blocks to get to the diamond. Enemies can destroy any created blocks on touch.
Created Blocks can be removed by clicking/touching them again.


Unity

Unity Game Tutorial

Thursday, June 27, 2013

Control Layout

Small change today. I updated the button placement. The left and right buttons are on the left side of the screen while the jump button is along the right side of the screen. They stay on the sides of the browser no matter what the size of the browser window.

Monday, June 24, 2013

Lava Levels

Biggish update today. I decided to add a new level set. This new level set is the Lava Levels. It includes 10 new, random levels that introduces balls of lava that can kill the player and destroy blocks.

The balls of lava are created with an initial location below the viewing area. I then set a random timeout between 0.45 seconds and 4.5 seconds. This updates their vertical speed (negative) until they reach almost the top of the area. At this point, I set the speed for them to fall (positive).

Timeout:
setTimeout(function () {
    lavaB.velocity.y = -3;
}, Math.random() * 4500);

Update Speed:
if (lavaB.yPosition < top) {
    lavaB.velocity.y = 3;
}
else {
    if (lavaB.yPosition > bottom) {
        lavaB.velocity.y = 0;
    }
}
 

Thursday, June 20, 2013

Windows Azure

I decided to host my game on Windows Azure cloud platform to experiment on a cloud platform. It can be found linked above. This also helps loading in mobile browsers since it just loads the game by itself.

The process of setting up an account on Azure was really easy. Time will tell if I continue to like it.

Tuesday, June 11, 2013

Performance Update

New update that is mostly maintenance. This new update has reduced the globals down to only one. All the globals are now under the one global called res which is short for resources. Now I do not have a lot of variables clouding up the global namespace.

Other than that, I added a new game over screen for the fish level.