Files
Daniel-s-Spook-Game/spooky-game/scenes/player.gd
T
NotDinoBits 69b42668ca Added more basic templates and scripts and started a combat scene
- Added combat_mode.tscn
- Added entity_template.tscn and entity.gd
- Added card_template.tscn
- Made minor edits to header comments in board.gd and player.gd
2026-10-27 17:30:50 -05:00

39 lines
1.1 KiB
GDScript

#------------------------------------------------------------
# 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