Added new files as stated in previous commit

- Because I forgot to add them the first time (v_v)
This commit is contained in:
NotDinoBits committed 2026-10-27 17:44:47 -05:00
1 parent 69b42668ca
commit d53bb7ed21
8 files changed
+137

No files matched your search

+7
View File
@@ -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")
+5
View File
@@ -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]
+65
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
uid://v81aouhld2ch
+19
View File
@@ -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")