Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Ivanov committed Dec 18, 2024
1 parent c38e472 commit 9f86cfc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/jumper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
background: {
image: {
src: 'images/background.png',
path: 'images/background.png',
repeat: true
}
}
Expand Down
8 changes: 4 additions & 4 deletions examples/pixelplatformer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
},
mainBackground: {
image: {
src: 'images/background/background_0000.png',
path: 'images/background/background_0000.png',
repeat: true
}
},
Expand All @@ -196,7 +196,7 @@
},
ground: {
image: {
src: 'images/tiles/ground.png',
path: 'images/tiles/ground.png',
repeat: true
},
type: 'ground'
Expand Down Expand Up @@ -249,7 +249,7 @@
flagpole: {
obstacle: false,
image: {
src: 'images/tiles/flagpole.png',
path: 'images/tiles/flagpole.png',
repeat: true
}
},
Expand Down Expand Up @@ -771,7 +771,7 @@
}
}
// 1672
const ground = elpy.create('ground-inversion', 0, 1672, UNIT * 17, UNIT * 2, { image: { src: 'images/tiles/ground-inversion.png', repeat: true } });
const ground = elpy.create('ground-inversion', 0, 1672, UNIT * 17, UNIT * 2, { image: { path: 'images/tiles/ground-inversion.png', repeat: true } });

elpy.add(ground);
obstacles.push(ground);
Expand Down
12 changes: 6 additions & 6 deletions examples/race/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,39 @@
main: {
left: {
image: {
src: 'images/road_left.png',
path: 'images/road_left.png',
repeat: true
}
},
center: {
image: {
src: 'images/road_center.png',
path: 'images/road_center.png',
repeat: true
}
},
right: {
image: {
src: 'images/road_right.png',
path: 'images/road_right.png',
repeat: true
}
}
},
finish: {
left: {
image: {
src: 'images/road_finish_left.png',
path: 'images/road_finish_left.png',
repeat: true
}
},
center: {
image: {
src: 'images/road_finish_center.png',
path: 'images/road_finish_center.png',
repeat: true
}
},
right: {
image: {
src: 'images/road_finish_right.png',
path: 'images/road_finish_right.png',
repeat: true
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/tappyplane/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
},
ground: {
image: {
src: 'images/ground.png',
path: 'images/ground.png',
repeat: true
}
},
background: {
image: {
src: 'images/background.png',
path: 'images/background.png',
repeat: true
}
},
Expand Down
2 changes: 1 addition & 1 deletion examples/tetris/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</style>
<canvas id="field"></canvas>

<script src="../../dist/elpy.min.js""></script>
<script src="../../dist/elpy.min.js"></script>
<script>
const unit = 20;
const width = unit * 10;
Expand Down

0 comments on commit 9f86cfc

Please sign in to comment.