Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

optimize images, sounds, background

  • Loading branch information...
commit 3ba90f0510f37b5439c6730f1dd50e59832b60cb 1 parent 9be89cf
@digitaltom authored
View
5 TODO
@@ -3,10 +3,6 @@ TODO:
- iphone fullscreen
- avoid double jumps
-- different background colors (image)
-- startscreen image
-- geeko exit
-
- release! blog entry
@@ -17,6 +13,7 @@ IDEAS:
- Teleporters
- Speed Boosters
- invisible steps
+- scrolling background image
View
4 js/game.js
@@ -359,7 +359,8 @@ function drawControls() {
ctx.font = '12px edunline'
if (actor) {
ctx.fillText("Player: x/y: " + Math.round(actor.pos.x) + "/" + Math.round(actor.pos.y) +
- ", speed x/y: " + Math.round(actor.speed.x) + "/" + Math.round(actor.speed.y), size.tile.target.w, size.tile.target.h + 20);
+ ", speed x/y: " + Math.round(actor.speed.x) + "/" + Math.round(actor.speed.y) +
+ ", animation sprite x/y: " + actor.sprite.x + '/' + actor.sprite.y, size.tile.target.w, size.tile.target.h + 20);
}
ctx.fillText("Scroll: " + Math.round(scroll_x) + "px - tile#: " + Math.round(scroll_x / size.tile.target.w), size.tile.target.w, size.tile.target.h + 40);
ctx.fillText("Objects: " + (collisionMap.length + items.length), size.tile.target.w, size.tile.target.h + 60);
@@ -441,6 +442,7 @@ function initializeTheme() {
player.sprite.x = 0
player.sprite.y = 32
preload_sounds()
+ document.getElementById('game').style.backgroundColor = current_level.background;
}
function gameLoop() {
View
1  js/level_methods.js
@@ -64,6 +64,7 @@ blocks[')'] = {sx: 12, sy: 0};
blocks['['] = {sx: 11, sy: 1};
blocks[']'] = {sx: 12, sy: 1};
blocks['j'] = {sx: 2, sy: 5};
+blocks['Z'] = {sx: 9, sy: 9};
View
15 js/levels.js
@@ -2,11 +2,12 @@ var levels = [
{
name:"Level 0",
theme:'snoop',
+ background: '#8d8bb3',
template:[
- " 123 ##",
+ " 123 j ##",
" 456 ",
- " ####### () ",
- " [] ",
+ " ####### () z ",
+ " [] z ",
" ##### ",
" #### ",
" ",
@@ -19,6 +20,7 @@ var levels = [
{
name:"SUSE",
theme:'suse',
+ background: '#207720',
template:[
" p ",
" 123 zzzzzz zzzzzzzz zzzzzz zzzzz ",
@@ -30,15 +32,16 @@ var levels = [
" zzz?z ?zzz zzzz z?zz zzzz ",
" ",
" p p p p p ",
- " ~~~~ zzzzzzzzzzzzzzzzzzzzzz zzzzzzz?z?z?z?zzzzzzzz ",
- " ^ ",
- " /ü` B ",
+ " ~~~~ zzzzzzzzzzzzzzzzzzzzzz zzzzzzz?z?z?z?zzzzzzzz Z ",
+ " ^ ZZZ ",
+ " /ü` ZBZ ",
"88888888888@@@@@@@@@@@@@@@@@@@@@@88888888888888888888888888888888888888888888888888"
]
},
{
name:"Mario Level 1",
theme:'super_mario',
+ background: '#5c94fc',
template:[
" 13 13 1223 13 ",
" 46 46 4556 13 13 46 1223 13 13 13 ",
View
BIN  themes/snoop/images/game_tiles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/snoop/images/resources/woodstock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/snoop/sounds/coin.mp3
Binary file not shown
View
BIN  themes/snoop/sounds/dead.mp3
Binary file not shown
View
BIN  themes/super_mario/images/player_sprites.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/suse/images/game_tiles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/suse/images/player_sprites.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/suse/images/resources/player_sprites.xcf
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.