* Add credits for the music used in the 2D platformer demos
* Update 2d/platformer/README.md
Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
* Update 2d/physics_platformer/README.md
Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Use the keep_height aspect ratio option as in the original demo. This prevents
seeing the clear color when making the window tall
Change the ParallaxBackground scene so mirrored sections don't disappear on wide windows
Remove unused spawn input action
Add support for the gamepad's left stick for movement
Use the project settings to store the gravity value project-wide
Remove type hints
This Godot project is a complete rewrite of the official Platformer 2D demo. This is part of a proposal to improve and harmonize the official demo projects. We want to:
- Teach good programming practices with Godot.
- Bring demos to a higher quality standard.
- Unify the code in the demos.
See the [open issue](https://github.com/godotengine/godot-demo-projects/issues/390) for more information.
This new demo showcases features from the original, and works with Godot 3.2.
Co-authored-by: Johnny Goss <me@johnnygoss.dev>
* 2d/platformer works flawlessly on Godot 3.1 beta 8
* fix warnings for inferred node type
* every script has a class_name
* formatted code for better clarity
* each files has its own subfolder
* As suggested by @akien-mga
* states are back to const instead of enum
* class_name comes after extends
* better code style
* PascalCase for nodes
- Added the Z key to shoot so that it follows the same input as Platformer3D
- Fixed the particles in the bullet scene so that it follows the same looks as Platformer3D
- Changed the scaling for the window from none to 2D
* As soon as the user wants to change direction while in the air, change
the character's facing side.
* This allows for example shooting left then right while in the air and
gives a better feeling.