diff --git a/spooky-game/scenes/card_template.tscn b/spooky-game/scenes/card_template.tscn new file mode 100644 index 0000000..9c61e01 --- /dev/null +++ b/spooky-game/scenes/card_template.tscn @@ -0,0 +1,7 @@ +[gd_scene format=3 uid="uid://cfxt1fck3mng7"] + +[ext_resource type="Texture2D" uid="uid://rse7l4smx7j1" path="res://textures/spooky/card_template.png" id="1_y1fi3"] + +[node name="CardTemplate" type="Sprite2D" unique_id=1386484005] +scale = Vector2(2, 2) +texture = ExtResource("1_y1fi3") diff --git a/spooky-game/scenes/combat_mode.tscn b/spooky-game/scenes/combat_mode.tscn new file mode 100644 index 0000000..a8dac55 --- /dev/null +++ b/spooky-game/scenes/combat_mode.tscn @@ -0,0 +1,5 @@ +[gd_scene format=3 uid="uid://h0rnqu6fxtgv"] + +[node name="CombatMode" type="Node2D" unique_id=929006189] + +[node name="Camera2D" type="Camera2D" parent="." unique_id=1150031779] diff --git a/spooky-game/scenes/entity.gd b/spooky-game/scenes/entity.gd new file mode 100644 index 0000000..e8cb437 --- /dev/null +++ b/spooky-game/scenes/entity.gd @@ -0,0 +1,65 @@ +#------------------------------------------------------------ +# Script: Entity Template +# Author: NotDinoBits +# Contributers: +# +# Godot Version: 4.7 +# Language: GDScript +# +# Interfaces: Combat_Actions (maybe) +# +# Description: Provides an easily-modifiable template for +# basic entities. Entities have combat mode and +# exploration mode functions. +# +# GENERAL +# General variables and functions need at any time +# Integers: HP, Attack Power (AP), Defense +# Card-List: Inventory +# Functions: +# +# COMBAT MODE +# Combat-mode specific variables and functions +# Integers: Mana +# Functions: damage, action, card, addMaxMana +# +# EXPLORATION MODE +# Exploration-mode specific variables and functions +# Functions: left, right, up, down +#------------------------------------------------------------ + +extends AnimatedSprite2D + +# --- SETUP --- +const CARD_TEMPLATE = preload("uid://cfxt1fck3mng7") + +# --- VARIABLES --- + # --- General +@export var hp = 0 +@export var ap = 0 +@export var defense = 0 + +# The inventory show only contain card objects derived from card_template.tscn +@export var inventory = [] + + # --- Combat +var mana_max = 1 +var mana = 0 + + # --- Exploration + +# --- FUNCTIONS --- + # --- General + + # --- Combat + + # --- Exploration + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/spooky-game/scenes/entity.gd.uid b/spooky-game/scenes/entity.gd.uid new file mode 100644 index 0000000..4096688 --- /dev/null +++ b/spooky-game/scenes/entity.gd.uid @@ -0,0 +1 @@ +uid://v81aouhld2ch diff --git a/spooky-game/scenes/entity_template.tscn b/spooky-game/scenes/entity_template.tscn new file mode 100644 index 0000000..f37894c --- /dev/null +++ b/spooky-game/scenes/entity_template.tscn @@ -0,0 +1,19 @@ +[gd_scene format=3 uid="uid://cx2hoy8j7kw4a"] + +[ext_resource type="Texture2D" uid="uid://svvapjji0cug" path="res://textures/godot_default/dodge_the_creeps_2d_assets/art/playerGrey_walk1.png" id="1_agxdn"] +[ext_resource type="Script" uid="uid://v81aouhld2ch" path="res://scenes/entity.gd" id="2_liii0"] + +[sub_resource type="SpriteFrames" id="SpriteFrames_7jfs7"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("1_agxdn") +}], +"loop": 1, +"name": &"default", +"speed": 5.0 +}] + +[node name="EntityTemplate" type="AnimatedSprite2D" unique_id=1553557885] +sprite_frames = SubResource("SpriteFrames_7jfs7") +script = ExtResource("2_liii0") diff --git a/spooky-game/textures/spooky/card_template.aseprite b/spooky-game/textures/spooky/card_template.aseprite new file mode 100644 index 0000000..008fea7 Binary files /dev/null and b/spooky-game/textures/spooky/card_template.aseprite differ diff --git a/spooky-game/textures/spooky/card_template.png b/spooky-game/textures/spooky/card_template.png new file mode 100644 index 0000000..ce823e0 Binary files /dev/null and b/spooky-game/textures/spooky/card_template.png differ diff --git a/spooky-game/textures/spooky/card_template.png.import b/spooky-game/textures/spooky/card_template.png.import new file mode 100644 index 0000000..1cd8197 --- /dev/null +++ b/spooky-game/textures/spooky/card_template.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://rse7l4smx7j1" +path="res://.godot/imported/card_template.png-43698d203797a1ea0f472478f803dd0a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/spooky/card_template.png" +dest_files=["res://.godot/imported/card_template.png-43698d203797a1ea0f472478f803dd0a.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1