Permalink
Browse files

continue suse level

  • Loading branch information...
1 parent 3b0448f commit 17d51a44666bae448aa6d981459081d7c61811b8 @digitaltom committed Dec 29, 2012
View
1 TODO
@@ -13,7 +13,6 @@ IDEAS:
- die animation
- Teleporters
- Speed Boosters
-- invisible steps
- scrolling background image
View
@@ -31,7 +31,7 @@
</div>
<div class="menu-item menu-text" id="help">
- <p>You can use use your arrow keys, or pad controls to play.</p>
+ <p>Please use your arrow keys or pad controls to play.</p>
</div>
</div>
View
@@ -23,7 +23,7 @@
<div id="game-menu" class="game-info">
<div class="menu-item menu-text" id="intro">
- <p>Welcome to Tom's HTML5 Jump&Run Framework.</p>
+ <p>Welcome to Tom's HTML5 jump and run Framework.</p>
<p>Please choose your level:</p>
</div>
@@ -39,7 +39,7 @@
</div>
<div class="menu-item menu-text" id="help">
- <p>You can use use your arrow keys, or pad controls to play.</p>
+ <p>Please use your arrow keys or pad controls to play.</p>
</div>
</div>
View
@@ -122,6 +122,9 @@ function drawLevel() {
if (object.type == 'enemy_mushroom') {
items.push(object.clone());
replaceLevelSprite(index_x, index_y - line_offset_y, " ");
+ } else if (object.type == 'coin') {
+ items.push(object.clone());
+ replaceLevelSprite(index_x, index_y - line_offset_y, " ");
}
}
}
@@ -199,7 +202,7 @@ function updateCharacters() {
if (collides.top) {
if (object.type == 'block_coin') {
replaceLevelSpriteXY(object.x, object.y, "ß");
- items.push({ sx:8, sy:9, x:object.x, y:(object.y - size.tile.target.h), deadly:false, type:'coin' });
+ items.push({ sx:8, sy:9, x:object.x, y:(object.y - size.tile.target.h), type:'coin' });
}
}
if (collides.bottom) {
@@ -342,7 +345,7 @@ function updateElements() {
sprite_bottom = getLevelSpriteXY(item.x + size.tile.target.w / 2, item.y + size.tile.target.h)
// turn around on collide or above edge
if ((blocks[sprite_collide] && blocks[sprite_collide].collide) ||
- (!blocks[sprite_bottom] || !blocks[sprite_bottom].collide) || item.x <= 0) {
+ (!blocks[sprite_bottom] || !blocks[sprite_bottom].collide || blocks[sprite_bottom].deadly) || item.x <= 0) {
item.speed_x *= -1
}
item.x += item.speed_x
View
@@ -27,6 +27,7 @@ blocks['a'] = {sx: 0, sy: 3, collide: true};
blocks['s'] = {sx: 1, sy: 3, collide: true};
blocks['z'] = {sx: 9, sy: 9, collide: true};
blocks['8'] = {sx: 0, sy: 6, collide: true};
+blocks['c'] = {sx: 8, sy: 9, collide: true, type:'coin' };
blocks['µ'] = {sx: 13, sy: 13, collide: true, type: 'hidden_block'};
blocks['ß'] = {sx: 1, sy: 11, collide: true};
blocks['?'] = {sx: 0, sy: 11, collide: true, type: 'block_coin'};
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 17d51a4

Please sign in to comment.