mirror of https://github.com/profan/ld-39-jam.git
rocks
This commit is contained in:
parent
a1da691f99
commit
b3caf26e0d
|
@ -40,4 +40,5 @@ func _fixed_process(delta):
|
||||||
self.rotate(rot_vel)
|
self.rotate(rot_vel)
|
||||||
|
|
||||||
func _draw():
|
func _draw():
|
||||||
draw_rect(rect, Color(1, 1, 1))
|
pass
|
||||||
|
#draw_rect(rect, Color(1, 1, 1))
|
|
@ -1,6 +1,7 @@
|
||||||
[gd_scene load_steps=2 format=1]
|
[gd_scene load_steps=3 format=1]
|
||||||
|
|
||||||
[ext_resource path="res://Asteroid.gd" type="Script" id=1]
|
[ext_resource path="res://Asteroid.gd" type="Script" id=1]
|
||||||
|
[ext_resource path="res://raw/asteroid.png" type="Texture" id=2]
|
||||||
|
|
||||||
[node name="Asteroid" type="KinematicBody2D"]
|
[node name="Asteroid" type="KinematicBody2D"]
|
||||||
|
|
||||||
|
@ -10,4 +11,8 @@ collision/mask = 1
|
||||||
collision/margin = 0.08
|
collision/margin = 0.08
|
||||||
script/script = ExtResource( 1 )
|
script/script = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
|
|
||||||
|
texture = ExtResource( 2 )
|
||||||
|
|
||||||
|
|
||||||
|
|
19
Game.tscn
19
Game.tscn
|
@ -35,10 +35,25 @@ scroll/limit_begin = Vector2( 0, 0 )
|
||||||
scroll/limit_end = Vector2( 0, 0 )
|
scroll/limit_end = Vector2( 0, 0 )
|
||||||
scroll/ignore_camera_zoom = true
|
scroll/ignore_camera_zoom = true
|
||||||
|
|
||||||
|
[node name="ParallaxLayer 2" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||||
|
|
||||||
|
transform/rot = 90.0
|
||||||
|
motion/scale = Vector2( 0.5, 0.5 )
|
||||||
|
motion/offset = Vector2( 0, 0 )
|
||||||
|
motion/mirroring = Vector2( 0, 0 )
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer 2"]
|
||||||
|
|
||||||
|
texture = ExtResource( 5 )
|
||||||
|
region = true
|
||||||
|
region_rect = Rect2( 0, 0, 8192, 8192 )
|
||||||
|
|
||||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||||
|
|
||||||
motion/scale = Vector2( 0.25, 0.25 )
|
visibility/opacity = 0.5
|
||||||
motion/offset = Vector2( 0, 0 )
|
visibility/self_opacity = 0.5
|
||||||
|
motion/scale = Vector2( 0.45, 0.45 )
|
||||||
|
motion/offset = Vector2( 128, 128 )
|
||||||
motion/mirroring = Vector2( 0, 0 )
|
motion/mirroring = Vector2( 0, 0 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
|
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
|
||||||
|
|
2
Gun.gd
2
Gun.gd
|
@ -15,7 +15,7 @@ func fire(delta, vel, dir):
|
||||||
if gun_cooldown <= 0:
|
if gun_cooldown <= 0:
|
||||||
var new_bullet = Bullet.instance()
|
var new_bullet = Bullet.instance()
|
||||||
var gun_pos = get_global_pos()
|
var gun_pos = get_global_pos()
|
||||||
new_bullet.set_pos(gun_pos)
|
new_bullet.set_pos(gun_pos + vel)
|
||||||
get_tree().get_root().add_child(new_bullet)
|
get_tree().get_root().add_child(new_bullet)
|
||||||
new_bullet.fire(delta, vel, dir, 512)
|
new_bullet.fire(delta, vel, dir, 512)
|
||||||
gun_cooldown += gun_delay
|
gun_cooldown += gun_delay
|
||||||
|
|
|
@ -21,12 +21,12 @@ texture = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="LeftGun" type="Sprite" parent="Sprite"]
|
[node name="LeftGun" type="Sprite" parent="Sprite"]
|
||||||
|
|
||||||
transform/pos = Vector2( -13.0319, -4.86733 )
|
transform/pos = Vector2( -12.5228, -4.92389 )
|
||||||
script/script = ExtResource( 3 )
|
script/script = ExtResource( 3 )
|
||||||
|
|
||||||
[node name="RightGun" type="Sprite" parent="Sprite"]
|
[node name="RightGun" type="Sprite" parent="Sprite"]
|
||||||
|
|
||||||
transform/pos = Vector2( 12.0375, -4.97201 )
|
transform/pos = Vector2( 12.4714, -4.99753 )
|
||||||
script/script = ExtResource( 3 )
|
script/script = ExtResource( 3 )
|
||||||
|
|
||||||
[node name="Engine" type="Particles2D" parent="Sprite"]
|
[node name="Engine" type="Particles2D" parent="Sprite"]
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b29034b94d6c4daf9e8b33e12b0a7b0640ec0dc6e3938974a1cc03d00c460445
|
||||||
|
size 1303
|
Binary file not shown.
After Width: | Height: | Size: 783 B |
|
@ -0,0 +1 @@
|
||||||
|
filter=false
|
Loading…
Reference in New Issue