From d53bb7ed2139f3495a739ca765a2510e3f801510 Mon Sep 17 00:00:00 2001 From: NotDinoBits Date: Tue, 27 Oct 2026 17:44:47 -0500 Subject: [PATCH] Added new files as stated in previous commit - Because I forgot to add them the first time (v_v) --- spooky-game/scenes/card_template.tscn | 7 ++ spooky-game/scenes/combat_mode.tscn | 5 ++ spooky-game/scenes/entity.gd | 65 ++++++++++++++++++ spooky-game/scenes/entity.gd.uid | 1 + spooky-game/scenes/entity_template.tscn | 19 +++++ .../textures/spooky/card_template.aseprite | Bin 0 -> 522 bytes spooky-game/textures/spooky/card_template.png | Bin 0 -> 446 bytes .../textures/spooky/card_template.png.import | 40 +++++++++++ 8 files changed, 137 insertions(+) create mode 100644 spooky-game/scenes/card_template.tscn create mode 100644 spooky-game/scenes/combat_mode.tscn create mode 100644 spooky-game/scenes/entity.gd create mode 100644 spooky-game/scenes/entity.gd.uid create mode 100644 spooky-game/scenes/entity_template.tscn create mode 100644 spooky-game/textures/spooky/card_template.aseprite create mode 100644 spooky-game/textures/spooky/card_template.png create mode 100644 spooky-game/textures/spooky/card_template.png.import 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 0000000000000000000000000000000000000000..008fea7b113694183d3f026268bc707605b68ec2 GIT binary patch literal 522 zcmd;LVqkc%l#xM$!Gb}7fsuiMAq9vL04N3$WDo#CT7WK~>Aya*fNf;~S|A3*>ej~%*u)k3o3K!T4Q8%Gd%fv^{)Qu zUS0VH@*tZOn1Lh={0B1F8GI5eQ;QS~Zv#233J|IPz@UQwP~cU}d3$Rk?;!`C)`y%o z6orJCmn=9fFjFC^g{Nrpl0;T94pmiCUG5n%jV(=Uy@ls@-@ml_@5#5tS<#jI&wbh< z|FkUANhNxdW^L~0g}Yv!-!Ws$Zr@n-^B+T0E5HBh3(T2zaZ~K?xMhh2p7%nHu5F5R zJH36|TiaH_{Vsmw-Q`VEplQD^&TmBys%Dr&wOKH@@KW!TNjVAzqq%vdVxiUH~Y#Z z6B+`H!o00w_sj|8`adh>N4>gm@txzve~wp3^j_LMo$b(h(?`eUuP7ehuAmn+qas?u zvt(}DL#B_xtFyxOp4agz{xT5D4_{eT^s$2&c{%2m&5VG$qCD9R%ppEqHMYG+<7A3 zZRDO$_@t7$Y~KQ(Is4o%?%&3)6IJo5?`^3-#B>Rd-o`7$6K@p){2ETZxDi)Ce+|p54^mc|mO+!-tPwc~_`Qu)KY9I