/home/colbyborrows/Documents/Projects/Godot/Daniel-s-Spook-Game/.git/COMMIT_ITSASTART
This commit is contained in:
1 parent
00ac7da5c3
commit
2cb187b534
42 files changed
+1088
-1
No files matched your search
@@ -0,0 +1,34 @@
|
||||
#------------------------------------------------------------
|
||||
# Script: Board Manager
|
||||
# Author: NotDinoBits
|
||||
# Contributers:
|
||||
# Godot Version: 4.7
|
||||
# Language: GDScript
|
||||
#
|
||||
# Description: Manages the boards the player navigates in
|
||||
# exploration mode. Boards are composed of tiles
|
||||
# given by a width and a height, with every element
|
||||
# of the board being contained within a tile
|
||||
#
|
||||
# The camera in exploration mode is confined to the
|
||||
# Dimensions of the board
|
||||
#------------------------------------------------------------
|
||||
|
||||
# NOTE: Getting exploration to work is a low priority. Main priority should be the combat system
|
||||
|
||||
extends TileMapLayer
|
||||
|
||||
# Node Variables
|
||||
|
||||
# Width and Height of the board
|
||||
@export var width = 0
|
||||
@export var height = 0
|
||||
|
||||
# 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://57f2lwqknbun
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://bynls777ha833"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://57f2lwqknbun" path="res://scenes/board.gd" id="1_bw3vb"]
|
||||
|
||||
[node name="Board" type="TileMapLayer" unique_id=645190065]
|
||||
script = ExtResource("1_bw3vb")
|
||||
@@ -0,0 +1,81 @@
|
||||
[gd_scene format=3 uid="uid://xud2q0rnbjr2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bynls777ha833" path="res://scenes/board.tscn" id="1_kb1q4"]
|
||||
[ext_resource type="Texture2D" uid="uid://btvgtetl7xo44" path="res://textures/spooky/tileset1.tres" id="2_5idnx"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_gkkyx"]
|
||||
texture = ExtResource("2_5idnx")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
1:0/0 = 0
|
||||
2:0/0 = 0
|
||||
3:0/0 = 0
|
||||
4:0/0 = 0
|
||||
5:0/0 = 0
|
||||
6:0/0 = 0
|
||||
7:0/0 = 0
|
||||
0:1/0 = 0
|
||||
1:1/0 = 0
|
||||
2:1/0 = 0
|
||||
3:1/0 = 0
|
||||
4:1/0 = 0
|
||||
5:1/0 = 0
|
||||
6:1/0 = 0
|
||||
7:1/0 = 0
|
||||
0:2/0 = 0
|
||||
1:2/0 = 0
|
||||
2:2/0 = 0
|
||||
3:2/0 = 0
|
||||
4:2/0 = 0
|
||||
5:2/0 = 0
|
||||
6:2/0 = 0
|
||||
7:2/0 = 0
|
||||
0:3/0 = 0
|
||||
1:3/0 = 0
|
||||
2:3/0 = 0
|
||||
3:3/0 = 0
|
||||
4:3/0 = 0
|
||||
5:3/0 = 0
|
||||
6:3/0 = 0
|
||||
7:3/0 = 0
|
||||
0:4/0 = 0
|
||||
1:4/0 = 0
|
||||
2:4/0 = 0
|
||||
3:4/0 = 0
|
||||
4:4/0 = 0
|
||||
5:4/0 = 0
|
||||
6:4/0 = 0
|
||||
7:4/0 = 0
|
||||
0:5/0 = 0
|
||||
1:5/0 = 0
|
||||
2:5/0 = 0
|
||||
3:5/0 = 0
|
||||
4:5/0 = 0
|
||||
5:5/0 = 0
|
||||
6:5/0 = 0
|
||||
7:5/0 = 0
|
||||
0:6/0 = 0
|
||||
1:6/0 = 0
|
||||
2:6/0 = 0
|
||||
3:6/0 = 0
|
||||
4:6/0 = 0
|
||||
5:6/0 = 0
|
||||
6:6/0 = 0
|
||||
7:6/0 = 0
|
||||
0:7/0 = 0
|
||||
1:7/0 = 0
|
||||
2:7/0 = 0
|
||||
3:7/0 = 0
|
||||
4:7/0 = 0
|
||||
5:7/0 = 0
|
||||
6:7/0 = 0
|
||||
7:7/0 = 0
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_bw3vb"]
|
||||
sources/0 = SubResource("TileSetAtlasSource_gkkyx")
|
||||
|
||||
[node name="ExplorationTest" type="Node2D" unique_id=1901038750]
|
||||
|
||||
[node name="Board" parent="." unique_id=645190065 instance=ExtResource("1_kb1q4")]
|
||||
tile_set = SubResource("TileSet_bw3vb")
|
||||
collision_enabled = false
|
||||
@@ -0,0 +1,37 @@
|
||||
#------------------------------------------------------------
|
||||
# Script: Player Manager
|
||||
# Author: NotDinoBits
|
||||
# Contributers:
|
||||
# Godot Version: 4.7
|
||||
# Language: GDScript
|
||||
#
|
||||
# Description: Manages player interaction by listening for
|
||||
# For inputs and providing an interaction interface
|
||||
#
|
||||
# Input reactions change based on what mode the
|
||||
# game is currently in (exploration, combat, menu)
|
||||
#------------------------------------------------------------
|
||||
|
||||
extends Node2D
|
||||
|
||||
# Node Variables
|
||||
var screen_size
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
screen_size = get_viewport_rect().size
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
#TODO: Create Input listeners for "Combat Mode"
|
||||
|
||||
#TODO: Exclude the following block of interactions to "Exploration Mode"
|
||||
if Input.is_action_just_pressed("hop_right"):
|
||||
pass
|
||||
if Input.is_action_just_pressed("hop_left"):
|
||||
pass
|
||||
if Input.is_action_just_pressed("hop_up"):
|
||||
pass
|
||||
if Input.is_action_just_pressed("hop_down"):
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
uid://0nk20j6jxjmc
|
||||
@@ -0,0 +1,21 @@
|
||||
[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="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]
|
||||
script = ExtResource("1_3vyb7")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=810892839]
|
||||
sprite_frames = SubResource("SpriteFrames_7jfs7")
|
||||
@@ -0,0 +1,3 @@
|
||||
[gd_scene format=3 uid="uid://u2it3jt8flnn"]
|
||||
|
||||
[node name="Tile" type="Node2D" unique_id=1944599943]
|
||||
Reference in new issue
Block a user