mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
This is a 3D version of Dodge the Creeps, originally made by GDQuest and updated to 4.0 by myself. Some changes are included for more polish: - Invisible walls were added so that you can't exit the playable area anymore. - Pillars have a different color to be more visible. - Physical keys are now used, so that you can use WASD movement on any keyboard layout. - The right mouse button can now be used to jump. - Visual settings were tweaked to match other 3D demos. - Project icon was upscaled to 128×128 using Waifu2x, so that it looks better on hiDPI displays. - `.blend` files were resaved with compression enabled. Co-authored-by: Nathan Lovato <nathan@gdquest.com>
8 lines
95 B
GDScript
8 lines
95 B
GDScript
extends Label
|
|
|
|
var score = 0
|
|
|
|
func _on_Mob_squashed():
|
|
score += 1
|
|
text = "Score: %s" % score
|