sg 2083
This commit is contained in:
parent
dfc203fa41
commit
436c604849
5 changed files with 1533 additions and 0 deletions
BIN
graphics/enemy/boss/stg_2600/sg_2083.png
Normal file
BIN
graphics/enemy/boss/stg_2600/sg_2083.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
35
graphics/enemy/boss/stg_2600/sg_2083.png.import
Normal file
35
graphics/enemy/boss/stg_2600/sg_2083.png.import
Normal file
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/sg_2083.png-e75cfae4b8483550759568a2ca940538.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://graphics/enemy/boss/stg_2600/sg_2083.png"
|
||||
dest_files=[ "res://.import/sg_2083.png-e75cfae4b8483550759568a2ca940538.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
76
maps/boss/boss3_arena.tscn
Normal file
76
maps/boss/boss3_arena.tscn
Normal file
|
@ -0,0 +1,76 @@
|
|||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/boss/sg2083.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://graphics/backgrounds/factory.png" type="Texture" id=4]
|
||||
[ext_resource path="res://maps/boss/boss2_arena.gd" type="Script" id=5]
|
||||
[ext_resource path="res://objects/hud/hud.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://audio/music/klystron_vip.ogg" type="AudioStream" id=7]
|
||||
[ext_resource path="res://objects/lore/boss/dr_intelli.tscn" type="PackedScene" id=11]
|
||||
[ext_resource path="res://objects/delayed_instance.tscn" type="PackedScene" id=12]
|
||||
[ext_resource path="res://objects/environment/death tile/death_tile.tscn" type="PackedScene" id=13]
|
||||
[ext_resource path="res://objects/lore/boss/2600.tscn" type="PackedScene" id=17]
|
||||
|
||||
[node name="Map" type="Node2D" groups=["map"]]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 5 )
|
||||
music = ExtResource( 7 )
|
||||
lore_entries = [ ExtResource( 17 ), ExtResource( 11 ) ]
|
||||
|
||||
[node name="HUD" parent="." instance=ExtResource( 6 )]
|
||||
song_name = "♫Klystron VIP"
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 128, 96 )
|
||||
z_index = -2
|
||||
texture = ExtResource( 4 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="DelayedArrow" parent="." instance=ExtResource( 12 )]
|
||||
delay = 0.1
|
||||
autostart = true
|
||||
|
||||
[node name="DelayedArrow2" parent="." instance=ExtResource( 12 )]
|
||||
delay = 0.1
|
||||
|
||||
[node name="DelayedArrow3" parent="." instance=ExtResource( 12 )]
|
||||
delay = 0.1
|
||||
|
||||
[node name="DeathTile" parent="." instance=ExtResource( 13 )]
|
||||
position = Vector2( 0, 192 )
|
||||
scale = Vector2( 32, 1 )
|
||||
|
||||
[node name="ExitTimer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
|
||||
[node name="Enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
margin_left = 155.0
|
||||
margin_top = 75.0
|
||||
margin_right = 163.0
|
||||
margin_bottom = 228.0
|
||||
rect_rotation = 45.0
|
||||
|
||||
[node name="ColorRect3" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
margin_left = 152.0
|
||||
margin_top = 67.0
|
||||
margin_right = 160.0
|
||||
margin_bottom = 220.0
|
||||
rect_rotation = 70.0
|
||||
|
||||
[node name="ColorRect2" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
margin_left = 8.0
|
||||
margin_top = 59.0
|
||||
margin_right = 152.0
|
||||
margin_bottom = 67.0
|
||||
|
||||
[node name="2600" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( 146, 11 )
|
||||
|
||||
[connection signal="timeout" from="ExitTimer" to="." method="_on_ExitTimer_timeout"]
|
25
objects/enemy/boss/sg2083.gd
Normal file
25
objects/enemy/boss/sg2083.gd
Normal file
|
@ -0,0 +1,25 @@
|
|||
extends Node2D
|
||||
|
||||
const Bullet = preload("res://objects/enemy/2600_bullet.tscn")
|
||||
|
||||
export var shot_speed: float = 50
|
||||
export var fire_rate: float = 1
|
||||
|
||||
onready var bullet_positions = $"%BulletPositions"
|
||||
onready var shoot_timer = $ShootTimer
|
||||
onready var anims = $AnimationPlayer
|
||||
onready var head_sprite = $"%Head"
|
||||
|
||||
func _input(event):
|
||||
if Input.is_action_pressed("shoot"):
|
||||
shoot()
|
||||
|
||||
func shoot():
|
||||
Audio.play_sound(Audio.a_bullet_barrage,Audio.ac_boss)
|
||||
for pos in bullet_positions.get_children():
|
||||
var bullet = Bullet.instance()
|
||||
bullet.global_position = pos.global_position
|
||||
bullet.direction = Vector2.LEFT.rotated(pos.rotation)
|
||||
bullet.speed = shot_speed
|
||||
get_parent().add_child(bullet)
|
||||
shoot_timer.wait_time = fire_rate
|
1397
objects/enemy/boss/sg2083.tscn
Normal file
1397
objects/enemy/boss/sg2083.tscn
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue