Commits

Leonardo Santagada  committed 40a5c1c

the camera follows the plane

  • Participants
  • Parent commits e9d5e03

Comments (0)

Files changed (1)

File src/PlayState.as

 		{
 			bombs = new FlxGroup()
 			var t:FlxText
-			t = new FlxText(FlxG.width-220,FlxG.height-30,200,"Attack: 0 Lift:0")
+			t = new FlxText(FlxG.width-220,FlxG.height-30,200,"0")
 			t.alignment = "right"
+			t.scrollFactor.x = t.scrollFactor.y = 0
 			add(t)
 			plane = new Plane(250,150, bombs, t)
+			FlxG.follow(plane)
 			add(plane)
 			add(bombs)
 		}