- fixing hindernis speed
- Biom implementation - Better Graphics - again icon fix
This commit is contained in:
parent
431fb8220e
commit
21e927966d
25 changed files with 312 additions and 65 deletions
|
@ -4,10 +4,15 @@ extends CharacterBody2D
|
|||
|
||||
|
||||
func _ready() -> void:
|
||||
$"Sprite".frame = randi_range(0,4)
|
||||
if $"/root/Global".active_biom == "w":
|
||||
$"Sprite".frame = randi_range(5,9)
|
||||
if $"/root/Global".active_biom == "s":
|
||||
$"Sprite".frame = randi_range(10,12)
|
||||
else:
|
||||
$"Sprite".frame = randi_range(0,4)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
speed = $"..".speed
|
||||
speed = $"/root/Global".speed
|
||||
global_position.x -= speed*delta
|
||||
if global_position.x < -30:
|
||||
queue_free()
|
||||
|
|
|
@ -16,11 +16,14 @@ script = ExtResource("1_e0hqe")
|
|||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(0, -7)
|
||||
position = Vector2(0, -8)
|
||||
texture = ExtResource("2_thg8w")
|
||||
offset = Vector2(0, 0.5)
|
||||
hframes = 5
|
||||
frame = 3
|
||||
vframes = 3
|
||||
frame = 9
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 80, 48)
|
||||
|
||||
[node name="collision" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -7)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 2.8 KiB |
Loading…
Add table
Add a link
Reference in a new issue