Skip to content

Commit

Permalink
small changes...
Browse files Browse the repository at this point in the history
  • Loading branch information
progsource committed Jan 31, 2021
1 parent 8fb89e7 commit 402d52b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion code/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ window/size/width=480
window/size/height=270
window/size/test_width=960
window/size/test_height=540
window/stretch/mode="2d"
window/stretch/mode="viewport"
window/stretch/aspect="keep"

[importer_defaults]
Expand Down Expand Up @@ -103,7 +103,10 @@ limits/message_queue/max_size_kb=2048
[rendering]

quality/driver/driver_name="GLES2"
quality/intended_usage/framebuffer_allocation=0
quality/intended_usage/framebuffer_allocation.mobile=1
quality/2d/use_pixel_snap=true
vram_compression/import_etc=true
vram_compression/import_etc2=false
environment/default_clear_color=Color( 0, 0.894118, 0.211765, 1 )
environment/default_environment="res://default_env.tres"
5 changes: 3 additions & 2 deletions code/scenes/Pet.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=10 format=2]

[ext_resource path="res://assets/gfx/cat0.png" type="Texture" id=1]
[ext_resource path="res://assets/gfx/dog0.png" type="Texture" id=1]
[ext_resource path="res://scripts/Actor.gd" type="Script" id=2]
[ext_resource path="res://scenes/ActionRadius.tscn" type="PackedScene" id=3]

Expand Down Expand Up @@ -88,7 +88,7 @@ tracks/0/keys = {
}

[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 8.05117, 7.82731 )
extents = Vector2( 7, 7.5 )

[node name="Pet" type="KinematicBody2D"]
collision_mask = 6
Expand All @@ -107,6 +107,7 @@ anims/right = SubResource( 4 )
anims/up = SubResource( 5 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 0.496062 )
shape = SubResource( 6 )

[node name="debug" type="Line2D" parent="."]
Expand Down
2 changes: 1 addition & 1 deletion code/scripts/ActorAnimationComponent.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends "res://scripts/ActorComponent.gd"

var last_direction : Vector2
var last_direction := Vector2.ZERO

func process(_delta) -> void :
if actor.velocity != Vector2.ZERO:
Expand Down

0 comments on commit 402d52b

Please sign in to comment.