协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
godot-gdscript【开发与工程】GDScript programming skill for Godot Engine, including signals, coroutines, and performance optimization.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
GDScript programming for Godot Engine development.
This skill provides capabilities for implementing game logic using GDScript, Godot's Python-like scripting language.
class_name Player extends CharacterBody2D
signal health_changed(new_health: int)
signal died
@export var max_health: int = 100
var health: int = max_health
func take_damage(amount: int) -> void:
health = max(0, health - amount)
health_changed.emit(health)
if health <= 0:
died.emit()
func spawn_enemies() -> void:
for i in range(10):
spawn_enemy()
await get_tree().create_timer(1.0).timeout