diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/Recordinglabel.gd b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/Recordinglabel.gd index 2541c84..f43c818 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/Recordinglabel.gd +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/Recordinglabel.gd @@ -11,5 +11,3 @@ func _ready(): func _process(delta): pass -func setText(Text: String): - self.text = Text diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/jumpnrun_template.gd b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/jumpnrun_template.gd index 939c787..2870e60 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/jumpnrun_template.gd +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/jumpnrun_template.gd @@ -9,7 +9,6 @@ var key_map = { func _ready(): $TileMap.material.set_light_mode(2) - $TileMap2.material.set_light_mode(2) camera.make_current() func restart_game(): diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/player.tscn b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/player.tscn index d87c3f6..996f4f9 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/player.tscn +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/player.tscn @@ -5,7 +5,7 @@ [ext_resource type="Script" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/CameraPlayer.gd" id="8_xrvh5"] [ext_resource type="Texture2D" uid="uid://coiaxftxa6ket" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/resources/images/Light.png" id="9_fo443"] -[sub_resource type="Image" id="Image_vmxbo"] +[sub_resource type="Image" id="Image_id7pj"] data = { "data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0), "format": "RGBA8", @@ -15,7 +15,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_0052l"] -image = SubResource("Image_vmxbo") +image = SubResource("Image_id7pj") [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_tugnh"] properties/0/path = NodePath(".:position") diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/world.tscn b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/world.tscn index add9c1e..68f309d 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/world.tscn +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/world.tscn @@ -1,10 +1,9 @@ -[gd_scene load_steps=14 format=3 uid="uid://ddf06dbvtdm0r"] +[gd_scene load_steps=12 format=3 uid="uid://ddf06dbvtdm0r"] [ext_resource type="Script" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/jumpnrun_template.gd" id="1_ba7po"] [ext_resource type="TileSet" uid="uid://cxkbxfjg6w030" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/tiles.tres" id="2_6dnau"] [ext_resource type="Script" path="res://addons/pronto/behaviors/SpawnerBehavior.gd" id="3_id48m"] [ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="7_ux1ht"] -[ext_resource type="Script" path="res://addons/pronto/behaviors/MoveBehavior.gd" id="11_u5l4b"] [ext_resource type="Script" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/CharacterBody2D.gd" id="13_gcjem"] [ext_resource type="PackedScene" uid="uid://defeo7pmswuu0" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/BG.tscn" id="14_rvoae"] [ext_resource type="AudioStream" uid="uid://2b24rqwx73na" path="res://prototypes/game-burghardt-goergens-ragerumble-minigames/Jumper/resources/audio/Frightmare - Jimena Contreras.mp3" id="15_ue41f"] @@ -15,12 +14,10 @@ particles_anim_h_frames = 1 particles_anim_v_frames = 1 particles_anim_loop = false -[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_fq1wo"] - [sub_resource type="RectangleShape2D" id="RectangleShape2D_d1mxw"] size = Vector2(831, 36) -[sub_resource type="Image" id="Image_vx857"] +[sub_resource type="Image" id="Image_6q1r8"] data = { "data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0), "format": "RGBA8", @@ -30,7 +27,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_4bga1"] -image = SubResource("Image_vx857") +image = SubResource("Image_6q1r8") [node name="World" type="Node2D"] @@ -42,18 +39,7 @@ script = ExtResource("1_ba7po") material = SubResource("CanvasItemMaterial_wm4tq") tile_set = ExtResource("2_6dnau") format = 2 -layer_0/tile_data = PackedInt32Array(589829, 327680, 5, 589830, 327680, 5, 589831, 327680, 5, 589832, 327680, 5, 589833, 327680, 5, 589837, 327680, 5, 589838, 327680, 5, 589839, 327680, 5, 589840, 327680, 5, 589841, 327680, 5, 589842, 327680, 5, 589834, 327680, 5, 589835, 327680, 5, 589836, 327680, 5, 589828, 327680, 5, 589843, 327680, 5, 589844, 327680, 5, 589845, 327680, 5, 589846, 327680, 5, 589847, 327680, 5, 589851, 327680, 5, 589850, 327680, 5, 589849, 327680, 5, 589848, 327680, 5, 589854, 327680, 5, 589863, 327680, 5, 589864, 327680, 5, 393256, 327680, 5, 65557, 0, 1, 65558, 65536, 1, 65563, 65536, 1, 65562, 0, 1, 65570, 0, 1, 65571, 65536, 1, 196637, 65536, 1, 196636, 0, 1, 589859, 327680, 5, 196644, 0, 1, 196645, 65536, 1, 393255, 393216, 0, 262176, 0, 0, 262177, 65536, 0, 262183, 0, 0, 262184, 65536, 0, 327702, 327680, 5, 131095, 0, 1, 131096, 65536, 1, 655400, 327680, 5, 655399, 327680, 5, 655395, 327680, 5, 655390, 327680, 5, 655387, 327680, 5, 655386, 327680, 5, 655385, 327680, 5, 655384, 327680, 5, 655383, 327680, 5, 655382, 327680, 5, 655381, 327680, 5, 655380, 327680, 5, 655379, 327680, 5, 655378, 327680, 5, 655377, 327680, 5, 655376, 327680, 5, 655375, 327680, 5, 655374, 327680, 5, 655373, 327680, 5, 655372, 327680, 5, 655371, 327680, 5, 655370, 327680, 5, 655369, 327680, 5, 655368, 327680, 5, 655367, 327680, 5, 655366, 327680, 5, 655365, 327680, 5, 655364, 327680, 5, 589852, 327680, 5, 589853, 327680, 5, 655389, 327680, 5, 655388, 327680, 5, 655391, 327680, 5, 655392, 327680, 5, 655393, 327680, 5, 655394, 327680, 5, 589855, 327680, 5, 589857, 327680, 5, 589856, 327680, 5, 589858, 327680, 5, 589860, 327680, 5, 589861, 327680, 5, 589862, 327680, 5, 655397, 327680, 5, 655396, 327680, 5, 655398, 327680, 5, 524309, 327680, 5, 589827, 327680, 5, 589826, 327680, 5, 589825, 327680, 5, 589824, 327680, 5, 655359, 327680, 5, 655358, 327680, 5, 655357, 327680, 5, 655356, 327680, 5, 655355, 327680, 5, 655354, 327680, 5, 655353, 327680, 5, 655352, 327680, 5, 655351, 327680, 5, 655350, 327680, 5, 655349, 327680, 5, 655348, 327680, 5, 655347, 327680, 5, 655346, 327680, 5, 655363, 327680, 5, 655362, 327680, 5, 655361, 327680, 5, 655360, 327680, 5, 720895, 327680, 5, 720894, 327680, 5, 720893, 327680, 5, 720892, 327680, 5, 720891, 327680, 5, 720890, 327680, 5, 720889, 327680, 5, 720888, 327680, 5, 720887, 327680, 5, 720886, 327680, 5, 720885, 327680, 5, 720884, 327680, 5, 720883, 327680, 5, 720882, 327680, 5, 589810, 327680, 5, 524274, 327680, 5, 458738, 327680, 5, 393202, 327680, 5, 327666, 327680, 5, 262130, 327680, 5, 196594, 327680, 5, 131058, 327680, 5, 65522, 327680, 5, 65521, 327680, 5, 65520, 327680, 5, 65519, 327680, 5, 65518, 327680, 5, 65517, 327680, 5, 131053, 327680, 5, 131052, 327680, 5, 131054, 327680, 5, 131055, 327680, 5, 131056, 327680, 5, 131057, 327680, 5, 196593, 327680, 5, 196592, 327680, 5, 196591, 327680, 5, 196590, 327680, 5, 196589, 327680, 5, 196588, 327680, 5, 196587, 327680, 5, 262123, 327680, 5, 262124, 327680, 5, 262125, 327680, 5, 262126, 327680, 5, 262127, 327680, 5, 262128, 327680, 5, 262129, 327680, 5, 327665, 327680, 5, 393201, 327680, 5, 393200, 327680, 5, 327664, 327680, 5, 327663, 327680, 5, 327662, 327680, 5, 327661, 327680, 5, 327660, 327680, 5, 327659, 327680, 5, 327658, 327680, 5, 393194, 327680, 5, 393195, 327680, 5, 393196, 327680, 5, 393197, 327680, 5, 393198, 327680, 5, 393199, 327680, 5, 458737, 327680, 5, 458736, 327680, 5, 458735, 327680, 5, 458734, 327680, 5, 458733, 327680, 5, 458732, 327680, 5, 458731, 327680, 5, 458730, 327680, 5, 458729, 327680, 5, 458728, 327680, 5, 524266, 327680, 5, 524267, 327680, 5, 524268, 327680, 5, 524269, 327680, 5, 524270, 327680, 5, 524271, 327680, 5, 524272, 327680, 5, 524273, 327680, 5, 589809, 327680, 5, 589808, 327680, 5, 589807, 327680, 5, 589806, 327680, 5, 589805, 327680, 5, 589804, 327680, 5, 589803, 327680, 5, 589802, 327680, 5, 589801, 327680, 5, 655338, 327680, 5, 655339, 327680, 5, 720876, 327680, 5, 720877, 327680, 5, 720878, 327680, 5, 720879, 327680, 5, 720880, 327680, 5, 720881, 327680, 5, 655345, 327680, 5, 655344, 327680, 5, 655343, 327680, 5, 655342, 327680, 5, 655341, 327680, 5, 655340, 327680, 5, 720874, 327680, 5, 720875, 327680, 5, 720873, 327680, 5, 655337, 327680, 5, 524265, 327680, 5) - -[node name="TileMap2" type="TileMap" parent="jumpnrun_template"] -material = SubResource("CanvasItemMaterial_fq1wo") -position = Vector2(1472, 259) -tile_set = ExtResource("2_6dnau") -format = 2 -layer_0/tile_data = PackedInt32Array(65535, 262144, 5, -1, 262144, 5) - -[node name="MoveBehavior" type="Node2D" parent="jumpnrun_template/TileMap2"] -position = Vector2(-738, 105) -script = ExtResource("11_u5l4b") +layer_0/tile_data = PackedInt32Array(589829, 327680, 5, 589830, 327680, 5, 589831, 327680, 5, 589832, 327680, 5, 589833, 327680, 5, 589837, 327680, 5, 589838, 327680, 5, 589839, 327680, 5, 589840, 327680, 5, 589841, 327680, 5, 589842, 327680, 5, 589834, 327680, 5, 589835, 327680, 5, 589836, 327680, 5, 589828, 327680, 5, 589843, 327680, 5, 589844, 327680, 5, 589845, 327680, 5, 589846, 327680, 5, 589849, 327680, 5, 65557, 0, 1, 65558, 65536, 1, 65563, 65536, 1, 65562, 0, 1, 65570, 0, 1, 65571, 65536, 1, 196637, 65536, 1, 196636, 0, 1, 262176, 0, 0, 262177, 65536, 0, 131095, 0, 1, 131096, 65536, 1, 655385, 327680, 5, 655382, 327680, 5, 655381, 327680, 5, 655380, 327680, 5, 655379, 327680, 5, 655378, 327680, 5, 655377, 327680, 5, 655376, 327680, 5, 655375, 327680, 5, 655374, 327680, 5, 655373, 327680, 5, 655372, 327680, 5, 655371, 327680, 5, 655370, 327680, 5, 655369, 327680, 5, 655368, 327680, 5, 655367, 327680, 5, 655366, 327680, 5, 655365, 327680, 5, 655364, 327680, 5, 589852, 327680, 5, 655388, 327680, 5, 655392, 327680, 5, 589856, 327680, 5, 589862, 327680, 5, 655398, 327680, 5, 524309, 327680, 5, 589827, 327680, 5, 589826, 327680, 5, 589825, 327680, 5, 589824, 327680, 5, 655359, 327680, 5, 655358, 327680, 5, 655357, 327680, 5, 655356, 327680, 5, 655355, 327680, 5, 655354, 327680, 5, 655353, 327680, 5, 655352, 327680, 5, 655351, 327680, 5, 655350, 327680, 5, 655349, 327680, 5, 655348, 327680, 5, 655347, 327680, 5, 655346, 327680, 5, 655363, 327680, 5, 655362, 327680, 5, 655361, 327680, 5, 655360, 327680, 5, 720895, 327680, 5, 720894, 327680, 5, 720893, 327680, 5, 720892, 327680, 5, 720891, 327680, 5, 720890, 327680, 5, 720889, 327680, 5, 720888, 327680, 5, 720887, 327680, 5, 720886, 327680, 5, 720885, 327680, 5, 720884, 327680, 5, 720883, 327680, 5, 720882, 327680, 5, 589810, 327680, 5, 524274, 327680, 5, 458738, 327680, 5, 393202, 327680, 5, 327666, 327680, 5, 262130, 327680, 5, 196594, 327680, 5, 131058, 327680, 5, 65522, 327680, 5, 65521, 327680, 5, 65520, 327680, 5, 65519, 327680, 5, 65518, 327680, 5, 65517, 327680, 5, 131053, 327680, 5, 131052, 327680, 5, 131054, 327680, 5, 131055, 327680, 5, 131056, 327680, 5, 131057, 327680, 5, 196593, 327680, 5, 196592, 327680, 5, 196591, 327680, 5, 196590, 327680, 5, 196589, 327680, 5, 196588, 327680, 5, 196587, 327680, 5, 262123, 327680, 5, 262124, 327680, 5, 262125, 327680, 5, 262126, 327680, 5, 262127, 327680, 5, 262128, 327680, 5, 262129, 327680, 5, 327665, 327680, 5, 393201, 327680, 5, 393200, 327680, 5, 327664, 327680, 5, 327663, 327680, 5, 327662, 327680, 5, 327661, 327680, 5, 327660, 327680, 5, 327659, 327680, 5, 327658, 327680, 5, 393194, 327680, 5, 393195, 327680, 5, 393196, 327680, 5, 393197, 327680, 5, 393198, 327680, 5, 393199, 327680, 5, 458737, 327680, 5, 458736, 327680, 5, 458735, 327680, 5, 458734, 327680, 5, 458733, 327680, 5, 458732, 327680, 5, 458731, 327680, 5, 458730, 327680, 5, 458729, 327680, 5, 458728, 327680, 5, 524266, 327680, 5, 524267, 327680, 5, 524268, 327680, 5, 524269, 327680, 5, 524270, 327680, 5, 524271, 327680, 5, 524272, 327680, 5, 524273, 327680, 5, 589809, 327680, 5, 589808, 327680, 5, 589807, 327680, 5, 589806, 327680, 5, 589805, 327680, 5, 589804, 327680, 5, 589803, 327680, 5, 589802, 327680, 5, 589801, 327680, 5, 655338, 327680, 5, 655339, 327680, 5, 720876, 327680, 5, 720877, 327680, 5, 720878, 327680, 5, 720879, 327680, 5, 720880, 327680, 5, 720881, 327680, 5, 655345, 327680, 5, 655344, 327680, 5, 655343, 327680, 5, 655342, 327680, 5, 655341, 327680, 5, 655340, 327680, 5, 720874, 327680, 5, 720875, 327680, 5, 720873, 327680, 5, 655337, 327680, 5, 524265, 327680, 5, 524308, 327680, 5, 458773, 327680, 5, 393238, 327680, 5, 458774, 327680, 5, 524310, 327680, 5, 393241, 327680, 5, 458777, 327680, 5, 524313, 327680, 5, 393244, 327680, 5, 458780, 327680, 5, 524316, 327680, 5, 524320, 327680, 5, 458784, 327680, 5, 393248, 327680, 5, 524326, 327680, 5, 458790, 327680, 5, 393254, 327680, 5, 393261, 327680, 5, 458797, 327680, 5, 524333, 327680, 5, 589869, 327680, 5, 655405, 327680, 5) [node name="SpawnerBehavior" type="Node2D" parent="jumpnrun_template"] position = Vector2(784, 551) diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/Player.gd b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/Player.gd index 162ac09..e68c385 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/Player.gd +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/Player.gd @@ -2,6 +2,7 @@ extends CharacterBody3D signal health_changed(health_value) signal amp_changes(amp) +signal kill_changes(kills) @onready var camera = $Camera3D @onready var anim_player = $AnimationPlayer @@ -13,6 +14,7 @@ var recording # See AudioStreamSample in docs var mix_rate := 44100 # This is the default mix rate on recordings var format := 1 # This equals to the default format: 16 bits var health = 3 +var kills = 0 @export var SPEED = 10.0 const JUMP_VELOCITY = 10.0 @@ -95,9 +97,16 @@ func play_shoot_effects(): func receive_damage(): health -= 1 if health <= 0: + set_kills.rpc_id(multiplayer.get_remote_sender_id()) health = 3 position = Vector3.ZERO health_changed.emit(health) + +@rpc("any_peer") +func set_kills(): + kills += 1 + print(kills) + kill_changes.emit(kills) func _on_animation_player_animation_finished(anim_name): if anim_name == "shoot": diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/player.tscn b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/player.tscn index a44bb36..5ee504c 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/player.tscn +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/player.tscn @@ -133,7 +133,7 @@ properties/2/path = NodePath("Camera3D:rotation") properties/2/spawn = true properties/2/replication_mode = 1 -[node name="Player" type="CharacterBody3D" groups=["player"]] +[node name="Player" type="CharacterBody3D"] collision_layer = 2 script = ExtResource("1_2v3wm") diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.gd b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.gd index 39b7f97..07c829a 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.gd +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.gd @@ -45,6 +45,7 @@ func add_player(peer_id): if player.is_multiplayer_authority(): player.health_changed.connect(update_health_bar) player.amp_changes.connect(set_amp_label) + player.kill_changes.connect(set_kill_label) func remove_player(peer_id): var player = get_node_or_null(str(peer_id)) @@ -56,8 +57,13 @@ func update_health_bar(health_value): func set_amp_label(amp): $CanvasLayer/HUD/Recordinglabel.set_text(amp) + +func set_kill_label(kills): + print(kills) + $CanvasLayer/HUD/KillCounter.set_text("Kills: " + str(kills)) func _on_multiplayer_spawner_spawned(node): if node.is_multiplayer_authority(): node.health_changed.connect(update_health_bar) node.amp_changes.connect(set_amp_label) + node.kill_changes.connect(set_kill_label) diff --git a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.tscn b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.tscn index a6a5f35..1231182 100644 --- a/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.tscn +++ b/prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/world.tscn @@ -82,7 +82,6 @@ placeholder_text = "Enter Address to Join Here" alignment = 1 [node name="HUD" type="Control" parent="CanvasLayer"] -visible = false layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -120,15 +119,24 @@ max_value = 3.0 value = 3.0 show_percentage = false -[node name="Recordinglabel" type="Label" parent="CanvasLayer/HUD" groups=["label"]] +[node name="Recordinglabel" type="Label" parent="CanvasLayer/HUD"] layout_mode = 0 -offset_left = 542.0 +offset_left = 487.0 offset_top = 37.0 -offset_right = 596.0 +offset_right = 541.0 offset_bottom = 60.0 text = "Amp: 0" script = ExtResource("4_6timr") +[node name="KillCounter" type="Label" parent="CanvasLayer/HUD"] +layout_mode = 0 +offset_left = 590.0 +offset_top = 37.0 +offset_right = 644.0 +offset_bottom = 60.0 +text = "Kills: 0" +script = ExtResource("4_6timr") + [node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."] _spawnable_scenes = PackedStringArray("res://prototypes/game-burghardt-goergens-ragerumble-minigames/Shooter/player.tscn") spawn_path = NodePath("..")