added models and changed spawnpoint
This commit is contained in:
parent
2cf0846597
commit
877ebafc74
1007 changed files with 120779 additions and 37 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
ui/ui.gd
2
ui/ui.gd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue