godotengine / tps-demo

Godot Third Person Shooter with high quality assets and lighting
Other
1.01k stars 180 forks source link

Cache shaders on the menu #94

Closed aaronfranke closed 3 years ago

aaronfranke commented 3 years ago

This PR adds a shader cache to the main menu so that the shaders are calculated in advance. This includes bullet existence, bullet impact, red robot existence, red robot shooting, and red robot death.

This also changes the bullet so that it moves forward instead of the given direction, makes the player script into a class called Player, and adds export vars for health and test_shoot to the red robot.