Skip to content

Commit

Permalink
updated map
Browse files Browse the repository at this point in the history
  • Loading branch information
aruhant committed Feb 8, 2024
1 parent 78137a3 commit da277ae
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 32 deletions.
32 changes: 16 additions & 16 deletions app/assets/images/maps/lanka_dahan_map.tmj
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"type":"rakshasa",
"visible":true,
"width":112,
"x":4802.06060606061,
"y":2213.45454545455
"x":4285.98100407056,
"y":2177.63364993216
},
{
"height":112,
Expand Down Expand Up @@ -202,17 +202,6 @@
"width":112,
"x":10951.1656050955,
"y":2173.29936305733
},
{
"height":112,
"id":68,
"name":"rakshasa",
"rotation":0,
"type":"rakshasa",
"visible":true,
"width":112,
"x":756.101910828025,
"y":648.617834394904
}],
"opacity":1,
"type":"objectgroup",
Expand Down Expand Up @@ -277,8 +266,8 @@
"type":"fire",
"visible":true,
"width":128,
"x":4992.66666666667,
"y":1535.33333333333
"x":4820.66666666667,
"y":2171.33333333333
},
{
"height":128,
Expand Down Expand Up @@ -521,6 +510,17 @@
"width":128,
"x":6905.69696969697,
"y":257.212121212121
},
{
"height":128,
"id":69,
"name":"fire",
"rotation":0,
"type":"fire",
"visible":true,
"width":128,
"x":5020,
"y":1508
}],
"opacity":1,
"type":"objectgroup",
Expand All @@ -529,7 +529,7 @@
"y":0
}],
"nextlayerid":6,
"nextobjectid":69,
"nextobjectid":70,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.10.2",
Expand Down
23 changes: 7 additions & 16 deletions app/lib/game/game_engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class _GameEngineState extends State<GameEngine> {
return LayoutBuilder(builder: (context, constraints) {
return BonfireWidget(
key: _gameKey,
showCollisionArea: kDebugMode,
// showCollisionArea: kDebugMode,
map: WorldMapByTiled(
TiledReader.asset('maps/${widget.level}_map.tmj'),
forceTileSize: Vector2(128 * 1.5, 128 * 1.5),
Expand All @@ -349,23 +349,14 @@ class _GameEngineState extends State<GameEngine> {
LogicalKeyboardKey.space,
]),
directional: JoystickDirectional(
color: const Color.fromARGB(255, 13, 116, 68),
color: Colors.grey,
),
actions: [
JoystickAction(
actionId: 'joystickJump',
margin: const EdgeInsets.all(70),
color: const Color.fromARGB(255, 72, 121, 99)),
// JoystickAction(
// actionId: 'joystickFire',
// sprite: Sprite.load('joystick_attack_range.png'),
// spriteBackgroundDirection: Sprite.load(
// 'joystick_background.png',
// ),
// enableDirection: true,
// size: 50,
// margin: const EdgeInsets.only(bottom: 50, right: 160),
// )
actionId: 'joystickJump',
margin: const EdgeInsets.all(70),
color: Colors.grey,
),
]),
components: [PlatformGameController(reset: reset)],
backgroundColor: const Color.fromARGB(255, 41, 140, 185),
Expand Down Expand Up @@ -394,7 +385,7 @@ class _GameEngineState extends State<GameEngine> {
speed: 2,
),
// This is used to build the player and their position
player: PlayerOne(position: Vector2(128 * 5, 128 * 12)),
player: PlayerOne(position: Vector2(128 * 5, 128 * 18)),
);
});
}
Expand Down

0 comments on commit da277ae

Please sign in to comment.