save game, player damage, player death, enemy damage, enemy death
This commit is contained in:
1 parent
68b998652c
commit
a5fa34bd4a
19 files changed
+422
-26
No files matched your search
@@ -0,0 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="SavedGame" load_steps=2 format=3 uid="uid://cib08qg83a6o6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c3kd5uh5y8ml1" path="res://scripts/rscs/savedgame.gd" id="1_v2d26"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_v2d26")
|
||||
gameData = {
|
||||
"GameLevel": 0,
|
||||
"PlayerHealth": 100,
|
||||
"TimeAvailable": 7,
|
||||
"enemies": {
|
||||
"slime0": {
|
||||
"damage": 33,
|
||||
"global_position": Vector2(489.403, 343),
|
||||
"health": 66
|
||||
},
|
||||
"slime1": {
|
||||
"damage": 25,
|
||||
"global_position": Vector2(626.901, 280),
|
||||
"health": 61
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,5 +8,5 @@ health = 100
|
||||
max_health = 100
|
||||
starting_health = 100
|
||||
meleeDamage = 10
|
||||
rangeDamage = 0
|
||||
rangeDamage = 30
|
||||
metadata/_custom_type_script = "uid://r408skwtvisy"
|
||||
@@ -0,0 +1,3 @@
|
||||
class_name SavedGame extends Resource
|
||||
|
||||
@export var gameData:Dictionary
|
||||
@@ -0,0 +1 @@
|
||||
uid://c3kd5uh5y8ml1
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ppipo")
|
||||
health = 100
|
||||
max_health = 100
|
||||
starting_health = 100
|
||||
health = 50
|
||||
max_health = 50
|
||||
starting_health = 50
|
||||
meleeDamage = 25
|
||||
rangeDamage = 0
|
||||
metadata/_custom_type_script = "uid://r408skwtvisy"
|
||||
Reference in new issue
Block a user