https://github.com/griiimon/damage-system-demo
Godot Damage System Demo
https://github.com/griiimon/damage-system-demo
Last synced: 4 months ago
JSON representation
Godot Damage System Demo
- Host: GitHub
- URL: https://github.com/griiimon/damage-system-demo
- Owner: Griiimon
- License: mit
- Created: 2023-10-05T00:13:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-05T00:41:48.000Z (over 1 year ago)
- Last Synced: 2023-10-05T09:46:47.973Z (over 1 year ago)
- Language: GDScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Damage-System-Demo
Includes playable Demo
# Provides 3 components as Scenes.
Drag these Components into your Player, Enemy, Weapons, etc Scenes as needed. Make local if you need to change the shape sizes.`Hurtbox` - Takes Damage from DamageAreas and sends it to the HealthComponent. Is automatically put on HURTBOX_LAYER defined in Global.
`DamageArea` - Interacts with Hurtboxes. Needs a Damage Resource. Put it on Weapons, Environmental Hazards etc. Uses HURTBOX_LAYER automatically as mask.
`HealthComponent` - Provides Hitpoints for your Entities. Does automatic basic damage calculations ( hitpoints-= damage) but can also be configured to let the parent do custom damage logic. Emits damage Signal for use in parent. Can be configured to ignore certain Damage Types via White/Blacklist.
# Provides 1 Resource.
`Damage` - Has some predefined Damage Types and a damage value.