RPG zoom and camera
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
(defmethod new []
|
||||
(super)
|
||||
(addChild (new FlxGame 0 0 MenuState))
|
||||
(addChild (new FlxGame 320 240 MenuState))
|
||||
(return))
|
@@ -11,6 +11,7 @@
|
||||
(walls.setTileProperties 2 FlxObject.ANY)
|
||||
(add walls)
|
||||
(map.loadEntities placeEntities "entities")
|
||||
(FlxG.camera.follow player TOPDOWN 1)
|
||||
(super.create)
|
||||
(return))
|
||||
|
||||
|
Reference in New Issue
Block a user