RPG zoom and camera

This commit is contained in:
2021-01-03 19:03:01 -07:00
parent 4300b70600
commit 5cd5d08d0a
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
(defmethod new []
(super)
(addChild (new FlxGame 0 0 MenuState))
(addChild (new FlxGame 320 240 MenuState))
(return))

View File

@@ -11,6 +11,7 @@
(walls.setTileProperties 2 FlxObject.ANY)
(add walls)
(map.loadEntities placeEntities "entities")
(FlxG.camera.follow player TOPDOWN 1)
(super.create)
(return))