Plumb the basics of input control and limit player movement to range

This commit is contained in:
CactiChameleon9
2022-07-16 23:56:31 +01:00
parent e9adc58583
commit 862fb41a32
5 changed files with 48 additions and 5 deletions

3
UI/CardView.gd Normal file
View File

@ -0,0 +1,3 @@
extends Control
var selected : bool = false

View File

@ -1,13 +1,15 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://UI/Card.tscn" type="PackedScene" id=1]
[ext_resource path="res://Assets/CardDB/Sprint.tres" type="Resource" id=2]
[ext_resource path="res://Assets/CardDB/Poisonous apple.tres" type="Resource" id=3]
[ext_resource path="res://Assets/CardDB/Broadsword.tres" type="Resource" id=4]
[ext_resource path="res://UI/CardView.gd" type="Script" id=5]
[node name="CardView" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 5 )
[node name="Margin" type="MarginContainer" parent="."]
anchor_right = 1.0

View File

@ -2,6 +2,8 @@ extends Control
const dice = preload("res://UI/Dice.tscn")
var selected : bool = true
var current_dice = []
func roll_dice(specific_value : int = 0):