forked from team-sg/hero-mark-2
made killing all cops net you a shard
This commit is contained in:
parent
fd012360ba
commit
d59533b4b1
3 changed files with 325 additions and 49 deletions
9
maps/station.gd
Normal file
9
maps/station.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends "res://maps/map.gd"
|
||||
|
||||
func _physics_process(delta):
|
||||
._physics_process(delta)
|
||||
if get_tree().get_nodes_in_group("cop").size() == 0:
|
||||
Audio.play_shard_sound()
|
||||
Game.score += 500
|
||||
Game.shards += 1
|
||||
Game.shards_collected[0] = true
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=30 format=2]
|
||||
[gd_scene load_steps=29 format=2]
|
||||
|
||||
[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://tilesets/t_cave.tres" type="TileSet" id=2]
|
||||
|
@ -14,10 +14,9 @@
|
|||
[ext_resource path="res://objects/environment/turniwood/turning_platform.tscn" type="PackedScene" id=12]
|
||||
[ext_resource path="res://objects/collectibles/arrow.tscn" type="PackedScene" id=13]
|
||||
[ext_resource path="res://objects/environment/hatch/hatch.tscn" type="PackedScene" id=14]
|
||||
[ext_resource path="res://objects/enemy/cop.tscn" type="PackedScene" id=15]
|
||||
[ext_resource path="res://objects/npc/msx.tscn" type="PackedScene" id=15]
|
||||
[ext_resource path="res://objects/respawn_point.tscn" type="PackedScene" id=16]
|
||||
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=17]
|
||||
[ext_resource path="res://objects/environment/barrier/jail_bars.tscn" type="PackedScene" id=18]
|
||||
[ext_resource path="res://objects/environment/switches/button.tscn" type="PackedScene" id=19]
|
||||
[ext_resource path="res://objects/enemy/tin.tscn" type="PackedScene" id=20]
|
||||
[ext_resource path="res://graphics/enemy/sawblade.png" type="Texture" id=21]
|
||||
|
@ -94,7 +93,7 @@ position = Vector2( 216, 168 )
|
|||
position = Vector2( 104, 120 )
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( 200, 88 )
|
||||
position = Vector2( 168, 96 )
|
||||
|
||||
[node name="Ladder3" parent="." instance=ExtResource( 8 )]
|
||||
position = Vector2( 40, 136 )
|
||||
|
@ -192,19 +191,11 @@ position = Vector2( 27, 128 )
|
|||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="Hatch" parent="." instance=ExtResource( 14 )]
|
||||
position = Vector2( 184, 152 )
|
||||
|
||||
[node name="Cop" parent="." instance=ExtResource( 15 )]
|
||||
position = Vector2( 224, 152 )
|
||||
left_boundary = 8.0
|
||||
right_boundary = 2.0
|
||||
position = Vector2( 64, 168 )
|
||||
|
||||
[node name="Button" parent="." instance=ExtResource( 19 )]
|
||||
position = Vector2( 168, 120 )
|
||||
|
||||
[node name="JailBars" parent="." groups=["button1"] instance=ExtResource( 18 )]
|
||||
position = Vector2( 208, 126 )
|
||||
scale = Vector2( 1, 4.25 )
|
||||
target_group = "a"
|
||||
|
||||
[node name="LaserWall" parent="." instance=ExtResource( 24 )]
|
||||
position = Vector2( 120, 54 )
|
||||
|
@ -212,4 +203,8 @@ rotation = 0.785398
|
|||
left_up_boundary = 5.0
|
||||
right_down_boundary = 5.0
|
||||
|
||||
[node name="MsX" parent="." groups=["a"] instance=ExtResource( 15 )]
|
||||
position = Vector2( 240, 144 )
|
||||
scale = Vector2( -1, 1 )
|
||||
|
||||
[editable path="RollingFiend"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue