added models and changed spawnpoint

This commit is contained in:
Luca 2024-09-27 13:01:28 +02:00
parent 2cf0846597
commit 877ebafc74
1007 changed files with 120779 additions and 37 deletions

View file

@ -4,10 +4,6 @@ var pressed: bool = false
var previous_position : Vector2 = Vector2.ZERO
var speed : float = 0.04
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _gui_input(event: InputEvent) -> void:
# Filter touch or drag events only.
if event is not InputEventScreenTouch and event is not InputEventScreenDrag:
@ -22,7 +18,7 @@ func _gui_input(event: InputEvent) -> void:
if pressed and event is InputEventScreenDrag:
var delta_position : Vector2 = event.position - previous_position
print(delta_position)
#print(delta_position)
simulate_joystick_motion(JOY_AXIS_RIGHT_X, -delta_position.x * speed, 0)
#simulate_joystick_motion(JOY_AXIS_RIGHT_Y, delta_position.y * speed, 0)

View file

@ -17,7 +17,7 @@ func _update_monster_list() -> void:
var entry = monster_list_entry.instantiate()
# populate the new entry
entry.populate(SaveManager.current_save.party[i])
entry.populate(monster)
# add it to the list
monster_list_entry_container.add_child(entry)

View file

@ -1,16 +1,6 @@
extends HBoxContainer
class_name MonsterListEntry
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func populate(monster) -> void:
%MonsterID.text = str(0)
%MonsterName.text = monster.display_name

View file

@ -41,8 +41,6 @@ func update() -> void:
# Updating the monster list
ingame_menu._update_monster_list()
print("UI updated")
func _on_ingame_controls_save_button_clicked() -> void:
save_ui.visible = true