- 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
39 lines
1.1 KiB
GDScript
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
|