Added new files as stated in previous commit
- Because I forgot to add them the first time (v_v)
This commit is contained in:
1 parent
69b42668ca
commit
d53bb7ed21
8 files changed
+137
No files matched your search
@@ -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")
|
||||||
@@ -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]
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://v81aouhld2ch
|
||||||
@@ -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")
|
||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 446 B |
@@ -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
|
||||||
Reference in new issue
Block a user