Plumb the basics of input control and limit player movement to range
This commit is contained in:
3
UI/CardView.gd
Normal file
3
UI/CardView.gd
Normal file
@ -0,0 +1,3 @@
|
||||
extends Control
|
||||
|
||||
var selected : bool = false
|
@ -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
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user