Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d53bb7ed21 | ||
|
|
69b42668ca |
No files matched your search
@@ -16,8 +16,8 @@ config/icon="res://icon.svg"
|
|||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/viewport_width=480
|
window/size/viewport_width=720
|
||||||
window/size/viewport_height=720
|
window/size/viewport_height=480
|
||||||
window/stretch/mode="canvas_items"
|
window/stretch/mode="canvas_items"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
# Script: Board Manager
|
# Script: Board Manager
|
||||||
# Author: NotDinoBits
|
# Author: NotDinoBits
|
||||||
# Contributers:
|
# Contributers:
|
||||||
|
#
|
||||||
# Godot Version: 4.7
|
# Godot Version: 4.7
|
||||||
# Language: GDScript
|
# Language: GDScript
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -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")
|
||||||
@@ -79,3 +79,5 @@ sources/0 = SubResource("TileSetAtlasSource_gkkyx")
|
|||||||
[node name="Board" parent="." unique_id=645190065 instance=ExtResource("1_kb1q4")]
|
[node name="Board" parent="." unique_id=645190065 instance=ExtResource("1_kb1q4")]
|
||||||
tile_set = SubResource("TileSet_bw3vb")
|
tile_set = SubResource("TileSet_bw3vb")
|
||||||
collision_enabled = false
|
collision_enabled = false
|
||||||
|
|
||||||
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=1980470814]
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
# Script: Player Manager
|
# Script: Player Manager
|
||||||
# Author: NotDinoBits
|
# Author: NotDinoBits
|
||||||
# Contributers:
|
# Contributers:
|
||||||
|
#
|
||||||
# Godot Version: 4.7
|
# Godot Version: 4.7
|
||||||
# Language: GDScript
|
# Language: GDScript
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,21 +1,6 @@
|
|||||||
[gd_scene format=3 uid="uid://cyos2d7rts43r"]
|
[gd_scene format=3 uid="uid://cyos2d7rts43r"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://0nk20j6jxjmc" path="res://scenes/player.gd" id="1_3vyb7"]
|
[ext_resource type="Script" uid="uid://0nk20j6jxjmc" path="res://scenes/player.gd" id="1_3vyb7"]
|
||||||
[ext_resource type="Texture2D" uid="uid://svvapjji0cug" path="res://textures/godot_default/dodge_the_creeps_2d_assets/art/playerGrey_walk1.png" id="2_g2els"]
|
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id="SpriteFrames_7jfs7"]
|
|
||||||
animations = [{
|
|
||||||
"frames": [{
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("2_g2els")
|
|
||||||
}],
|
|
||||||
"loop": 1,
|
|
||||||
"name": &"default",
|
|
||||||
"speed": 5.0
|
|
||||||
}]
|
|
||||||
|
|
||||||
[node name="Player" type="Node2D" unique_id=996879118]
|
[node name="Player" type="Node2D" unique_id=996879118]
|
||||||
script = ExtResource("1_3vyb7")
|
script = ExtResource("1_3vyb7")
|
||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=810892839]
|
|
||||||
sprite_frames = SubResource("SpriteFrames_7jfs7")
|
|
||||||
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