Skip to content

Commit

Permalink
fixing doors and ladders map
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtome committed Nov 20, 2023
1 parent bcdccf5 commit 629dd58
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 72 deletions.

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions examples/standard_platformer/assets/tiles/map_menu.tmx

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/standard_platformer/lib/basic_ladder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class BasicLadder extends Ladder<ExamplePlatformerLeapGame> {
if (sectionHeight > 16 * 4) {
sectionHeight = sectionHeight % (16 * 4);
}
if (sectionHeight == 0) {
sectionHeight = 16 * 4;
}
list.add(
SpriteComponent(
sprite: Sprite(
Expand Down
2 changes: 1 addition & 1 deletion examples/standard_platformer/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ExamplePlatformerLeapGame extends LeapGame
static const _levels = [
'map_menu.tmx',
'map_everything.tmx',
'map_2.tmx',
'map_ladders.tmx',
];

var _currentLevel = 'map_menu.tmx';
Expand Down
2 changes: 1 addition & 1 deletion examples/standard_platformer/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ flutter:
- assets/images/repeatable_background.png
- assets/images/player_spritesheet.png
- assets/tiles/map_everything.tmx
- assets/tiles/map_2.tmx
- assets/tiles/map_ladders.tmx
- assets/tiles/map_menu.tmx

0 comments on commit 629dd58

Please sign in to comment.