Files
Daniel-s-Spook-Game/spooky-game/scenes/player.gd

38 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