WorldChunkRefactoring
Martin Felis 2022-09-15 13:16:12 +02:00
parent ff73d6a543
commit e9b282f873
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
extends Spatial extends Spatial
onready var hexgrid = preload("res://addons/gdhexgrid/HexGrid.gd").new()
onready var HexTile3D = preload("res://scenes/HexTile3D.tscn")
onready var tiles = $Tiles
onready var fps_label = $CanvasLayer/HBoxContainer/FPSLabel onready var fps_label = $CanvasLayer/HBoxContainer/FPSLabel
onready var player_pos_label = $CanvasLayer/HBoxContainer/PlayerPos onready var player_pos_label = $CanvasLayer/HBoxContainer/PlayerPos
onready var tile_pos_label = $CanvasLayer/HBoxContainer/TilePos onready var tile_pos_label = $CanvasLayer/HBoxContainer/TilePos
@ -8,7 +11,7 @@ onready var player = $Player
onready var world = $World onready var world = $World
var player_velocity = Vector3.ZERO var player_velocity = Vector3.ZERO
var player_speed = 5 var player_speed = 1
var target_coordinate = Vector3.ZERO var target_coordinate = Vector3.ZERO
func _ready(): func _ready():