Initial MVP
This commit is contained in:
8
scripts/resources/EnemyData.gd
Normal file
8
scripts/resources/EnemyData.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
class_name EnemyData extends Resource
|
||||
|
||||
@export var id: String
|
||||
@export var name: String
|
||||
@export var hp: int
|
||||
@export var max_hp: int
|
||||
@export var damage: int
|
||||
@export var image_path: String
|
||||
1
scripts/resources/EnemyData.gd.uid
Normal file
1
scripts/resources/EnemyData.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bqfi5kki2b58t
|
||||
8
scripts/resources/GameState.gd
Normal file
8
scripts/resources/GameState.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
class_name GameState extends Resource
|
||||
|
||||
@export var current_room_id: String
|
||||
@export var player_hp: int = 100
|
||||
@export var player_max_hp: int = 100
|
||||
@export var inventory: Array[ItemData]
|
||||
@export var world_flags: Dictionary = {}
|
||||
@export var explored_rooms: Array[String] = []
|
||||
1
scripts/resources/GameState.gd.uid
Normal file
1
scripts/resources/GameState.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c1q4ns5aoocdq
|
||||
7
scripts/resources/ItemData.gd
Normal file
7
scripts/resources/ItemData.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
class_name ItemData extends Resource
|
||||
|
||||
@export var id: String
|
||||
@export var name: String
|
||||
@export_multiline var description: String
|
||||
@export var effect_type: String # e.g., "HEAL", "DAMAGE"
|
||||
@export var effect_value: int
|
||||
1
scripts/resources/ItemData.gd.uid
Normal file
1
scripts/resources/ItemData.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://jr376c28lhu3
|
||||
10
scripts/resources/RoomData.gd
Normal file
10
scripts/resources/RoomData.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
class_name RoomData extends Resource
|
||||
|
||||
@export var id: String
|
||||
@export var room_name: String
|
||||
@export_multiline var description: String
|
||||
@export_multiline var generated_description: String = ""
|
||||
@export var image_path: String
|
||||
@export var exits: Dictionary # { "north": "room_id", ... }
|
||||
@export var items: Array[ItemData]
|
||||
@export var enemies: Array[Resource] # Array[EnemyData]
|
||||
1
scripts/resources/RoomData.gd.uid
Normal file
1
scripts/resources/RoomData.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dp8agph2wjo3a
|
||||
Reference in New Issue
Block a user