godot-demo-projects/2d/physics_platformer
Aaron Franke a24ac796b6
Add README files to 2D demos
2020-03-09 03:54:32 -04:00
..
audio
background Merge pull request #414 from aaronfranke/2d-3.2 2020-02-18 23:37:37 -05:00
coin for the 2d platformer demos changing the asset resolution from 2x upscaled to "true" pixel art, also adjusting values likes positions 2020-02-17 17:05:10 +01:00
enemy Tweak the platformer demos, particularly physics platformer 2020-02-19 00:37:59 -05:00
platform for the 2d platformer demos changing the asset resolution from 2x upscaled to "true" pixel art, also adjusting values likes positions 2020-02-17 17:05:10 +01:00
player Tweak the platformer demos, particularly physics platformer 2020-02-19 00:37:59 -05:00
screenshots Add README files to 2D demos 2020-03-09 03:54:32 -04:00
README.md Add README files to 2D demos 2020-03-09 03:54:32 -04:00
Stage.tscn Merge pull request #414 from aaronfranke/2d-3.2 2020-02-18 23:37:37 -05:00
Tileset.tres for the 2d platformer demos changing the asset resolution from 2x upscaled to "true" pixel art, also adjusting values likes positions 2020-02-17 17:05:10 +01:00
TilesetEdit.tscn for the 2d platformer demos changing the asset resolution from 2x upscaled to "true" pixel art, also adjusting values likes positions 2020-02-17 17:05:10 +01:00
icon.png
icon.png.import
project.godot Tweak the platformer demos, particularly physics platformer 2020-02-19 00:37:59 -05:00
tiles_demo.png for the 2d platformer demos changing the asset resolution from 2x upscaled to "true" pixel art, also adjusting values likes positions 2020-02-17 17:05:10 +01:00
tiles_demo.png.import for the 2d platformer demos changing the asset resolution from 2x upscaled to "true" pixel art, also adjusting values likes positions 2020-02-17 17:05:10 +01:00

README.md

Physics Platformer

This demo uses RigidBody2D for the player and enemies. These character controllers are more powerful than KinematicBody2D, but can be more difficult to handle, as they require manual modification of the RigidBody velocity.

Language: GDScript

Renderer: GLES 3 (particles are not available in GLES 2)

How does it work?

The player and enemies use dynamic character controllers for movement, made with RigidBody2D, which means that they can perfectly interact with physics (there is a see-saw, and you can even ride enemies). Because of this, all movement must be done in sync with the physics engine, inside of _integrate_forces().

Screenshots

Screenshot of the beginning

Screenshot of the seesaw and the player riding an enemy