Repository navigation
New Demos
- 3D Third Person - Run a ball around a field of blocks with a camera that swings around behind it and pulls in at walls
- Camera Shake - A bump on Space and a blast on a click, shakes that add up and fade on their own
- Box2D Platformer - Jump up through one way ledges, drop back down through them and ride conveyor belts with crates, all in Box2D
- 3D Plugin - The island's ball now rolls the way the camera looks, with the camera swinging around behind it
- Platforming Game - The camera now looks ahead the way you run, stays over the level, and explosions shake the screen
New Changes
- Cameras: the new camera plugin follows things for you.
new FollowCamera(player)follows in 2D with smooth movement, a dead zone, level bounds, zoom, and a look ahead that shows more of the way the player is going and slides across when they turn.new ThirdPersonCamera3D(player)puts the 3D camera on a pole behind the player that swings around as they move, turns with the mouse or a gamepad stick, and pulls in when a wall gets in the way. Smoothing is in seconds, so it feels the same at any frame rate cameraShake(amount): screen shake for hits and explosions, in 2D and 3D, with or without a camera; shakes add up and fade by themselves, and hold through a pause or a hit stop at time scale 0- A child object's
posandanglecan be set: it stays where you put it and moves with its parent from there, where before the parent put it straight back setWorldPos3D,setWorldRotation3DandgetWorldRotation3Dput a 3D child at a place or rotation in the world- Box2D:
beginContacttells where two objects touched and how hard they hit;oneWayplatforms, conveyor belts withsetSurfaceSpeed, andpreSolvefor letting a contact pass, as for dropping through a ledge engineAddPlugintakes anupdatePostfunction, called after every object has moved each update
Breaking Changes
CameraControl3DandFirstPersonCamera3Dnow set the 3D camera after every object has moved, not in their ownupdate(); code that calls theirupdate()by hand and reads the camera callsupdateCamera()after it
Check out the latest on GitHub to see everything we've been working on!
