engine port finished
This commit is contained in:
parent
fd3498f784
commit
c1e6542c76
72 changed files with 1300 additions and 1130 deletions
|
@ -26,3 +26,6 @@ shape = SubResource( 1 )
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||||
position = Vector2( 2.41399e-06, 0.25 )
|
||||
scale = Vector2( 4, 3.975 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
@ -21,3 +21,6 @@ shape = SubResource( 1 )
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||||
position = Vector2( -1, 63.5 )
|
||||
scale = Vector2( 1.4, 6.35 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
@ -21,3 +21,6 @@ shape = SubResource( 1 )
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||||
position = Vector2( 0.874994, 0.906251 )
|
||||
scale = Vector2( 6.5125, 1.00937 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
@ -19,3 +19,6 @@ shape = SubResource( 1 )
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||||
position = Vector2( 0.499999, -9.83477e-07 )
|
||||
scale = Vector2( 2.45, 3.1 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
@ -20,3 +20,6 @@ shape = SubResource( 1 )
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||||
position = Vector2( 1, 0.499995 )
|
||||
scale = Vector2( 3.2, 3.25 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
@ -20,3 +20,6 @@ shape = SubResource( 1 )
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||||
position = Vector2( -11, 0.499998 )
|
||||
scale = Vector2( 1.7, 3.25 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
@ -13,7 +13,7 @@ var movex = 0
|
|||
var movey = 0
|
||||
var attack = 59
|
||||
var crit = 5
|
||||
var velocity
|
||||
var velocity = Vector2(0,0)
|
||||
|
||||
|
||||
func _ready():
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/common/midori/sprite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://sprites/common/kimberly/sprite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://sprites/common/kimberly/kimberly.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
|
|
@ -5,7 +5,7 @@ const SPEED = 300.0
|
|||
const JUMP_VELOCITY = -400.0
|
||||
var angle = 2
|
||||
var weakness = 0
|
||||
var velocity
|
||||
var velocity = Vector2(0,0)
|
||||
|
||||
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
|
||||
|
|
|
@ -162,12 +162,12 @@ script = ExtResource( 2 )
|
|||
texture = ExtResource( 1 )
|
||||
hframes = 4
|
||||
vframes = 4
|
||||
frame = 8
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
process_priority = -1
|
||||
anims/RESET = SubResource( 2 )
|
||||
anims/eidle = SubResource( 3 )
|
||||
anims/ewalk = SubResource( 4 )
|
||||
|
|
|
@ -14,7 +14,7 @@ var movex = 0
|
|||
var movey = 0
|
||||
var attack = 87
|
||||
var crit = 7
|
||||
var velocity
|
||||
var velocity = Vector2(0,0)
|
||||
|
||||
func _ready():
|
||||
if Global.isboss:
|
||||
|
@ -88,7 +88,7 @@ func _physics_process(delta):
|
|||
anim.play("sidle")
|
||||
#move_and_slide()
|
||||
func shoot(angle):
|
||||
var new_bullet = bullet.instantiate()
|
||||
var new_bullet = bullet.instance()
|
||||
new_bullet.position = Vector2(position.x, position.y)
|
||||
new_bullet.direction = get_vector(angle)
|
||||
new_bullet.btype = "boss"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/common/midori/sprite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://sprites/common/natasha/sprite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://sprites/common/natasha/natasha.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue