engine port finished

This commit is contained in:
Page Asgardius 2024-11-07 13:39:59 -07:00
parent fd3498f784
commit c1e6542c76
72 changed files with 1300 additions and 1130 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Before After
Before After

Binary file not shown.

View file

@ -1,7 +1,7 @@
extends CharacterBody2D
extends KinematicBody2D
var theta: float = 0.0
@export_range(0,2*PI) var alpha: float = 1.5
export(float,6.2831853) var alpha: float = 1.5
var bullet = load("res://sprites/common/bullet/tnt.tscn")
@ -27,7 +27,7 @@ var movex = 0
var movey = 0
var attack = 59
var crit = 5
var velocity = Vector2(0,0)
func _ready():
@ -43,7 +43,7 @@ func get_vector(angle):
# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
@onready var anim := $AnimationPlayer
onready var anim := $AnimationPlayer
func _physics_process(delta):
if Global.live == 1:
@ -101,7 +101,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"

View file

@ -1,182 +1,182 @@
[gd_scene load_steps=14 format=3 uid="uid://dya2jipk8eq2s"]
[gd_scene load_steps=13 format=2]
[ext_resource type="Script" path="res://sprites/ceres/pamela/pamela.gd" id="1_6fvfy"]
[ext_resource type="Texture2D" uid="uid://dt8ufdvgghipy" path="res://sprites/ceres/pamela/sprite.png" id="2_v1g13"]
[ext_resource path="res://sprites/ceres/pamela/sprite.png" type="Texture" id=1]
[ext_resource path="res://sprites/ceres/pamela/pamela.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mcaff"]
size = Vector2(86, 256)
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 45, 128 )
[sub_resource type="Animation" id="Animation_i5rhc"]
[sub_resource type="Animation" id=2]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [0]
"values": [ 8 ]
}
[sub_resource type="Animation" id="Animation_8my4d"]
[sub_resource type="Animation" id=3]
resource_name = "eidle"
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [6]
"values": [ 8 ]
}
[sub_resource type="Animation" id="Animation_op07l"]
[sub_resource type="Animation" id=4]
resource_name = "ewalk"
length = 0.3
loop_mode = 1
loop = true
step = 0.033
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"times": PoolRealArray( 0, 0.099, 0.198 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [7, 6, 8]
"values": [ 9, 8, 10 ]
}
[sub_resource type="Animation" id="Animation_cajcr"]
[sub_resource type="Animation" id=5]
resource_name = "nidle"
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0.2),
"transitions": PackedFloat32Array(1),
"times": PoolRealArray( 0.1 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [3]
"values": [ 4 ]
}
[sub_resource type="Animation" id="Animation_7lhgw"]
[sub_resource type="Animation" id=6]
resource_name = "nwalk"
length = 0.3
loop_mode = 1
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"times": PoolRealArray( 0, 0.1, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [4, 3, 5]
"values": [ 5, 4, 6 ]
}
[sub_resource type="Animation" id="Animation_w3ius"]
[sub_resource type="Animation" id=7]
resource_name = "sidle"
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"times": PoolRealArray( 0.5 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [0]
"values": [ 0 ]
}
[sub_resource type="Animation" id="Animation_u56r5"]
[sub_resource type="Animation" id=8]
resource_name = "swalk"
length = 0.3
loop_mode = 1
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"times": PoolRealArray( 0, 0.1, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [1, 0, 2]
"values": [ 1, 0, 2 ]
}
[sub_resource type="Animation" id="Animation_isodq"]
[sub_resource type="Animation" id=9]
resource_name = "widle"
length = 0.3
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0.2),
"transitions": PackedFloat32Array(1),
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [9]
"values": [ 12 ]
}
[sub_resource type="Animation" id="Animation_letwb"]
[sub_resource type="Animation" id=10]
resource_name = "wwalk"
length = 0.3
loop_mode = 1
loop = true
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"times": PoolRealArray( 0, 0.1, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [10, 9, 11]
"values": [ 13, 12, 14 ]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mh65y"]
_data = {
"RESET": SubResource("Animation_i5rhc"),
"eidle": SubResource("Animation_8my4d"),
"ewalk": SubResource("Animation_op07l"),
"nidle": SubResource("Animation_cajcr"),
"nwalk": SubResource("Animation_7lhgw"),
"sidle": SubResource("Animation_w3ius"),
"swalk": SubResource("Animation_u56r5"),
"widle": SubResource("Animation_isodq"),
"wwalk": SubResource("Animation_letwb")
}
[node name="Pamela" type="KinematicBody2D"]
script = ExtResource( 2 )
[node name="Pamela" type="CharacterBody2D"]
script = ExtResource("1_6fvfy")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_v1g13")
hframes = 3
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
hframes = 4
vframes = 4
frame = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_mcaff")
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_mh65y")
}
anims/RESET = SubResource( 2 )
anims/eidle = SubResource( 3 )
anims/ewalk = SubResource( 4 )
anims/nidle = SubResource( 5 )
anims/nwalk = SubResource( 6 )
anims/sidle = SubResource( 7 )
anims/swalk = SubResource( 8 )
anims/widle = SubResource( 9 )
anims/wwalk = SubResource( 10 )
[node name="Speed" type="Timer" parent="."]
wait_time = 0.1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Before After
Before After

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Before After
Before After

Binary file not shown.

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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():

View file

@ -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]

View file

@ -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")

View file

@ -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 )

View file

@ -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"

View file

@ -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]