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