Skip to content

Commit

Permalink
wip: attempt to support MetSys for HatBot AND Vania
Browse files Browse the repository at this point in the history
Not quite working, unless you restart the game completely. Some internal
state or other needs clearing/cleanup.
  • Loading branch information
russmatney committed Nov 3, 2024
1 parent d889b36 commit 4b27380
Show file tree
Hide file tree
Showing 15 changed files with 259 additions and 20 deletions.
3 changes: 3 additions & 0 deletions MetSysSettings.tres
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
script = ExtResource("1_aefuf")
theme = ExtResource("2_iln4u")
map_root_folder = "res://src/dino/vania/maps/"
map_extents = 100
scene_template = ""
in_game_cell_size = Vector2(240, 135)
discover_whole_rooms = false
collectible_list = Array[Dictionary]([])
assign_uid_to_rooms = false
2 changes: 1 addition & 1 deletion data.pandora
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
},
"level_scene": {
"type": "resource",
"value": "res://src/games/hatbot/zones/LevelZero.tscn"
"value": "res://src/games/hatbot/HatBotGame.tscn"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ config_version=5

[addons]

metroidvania_system/settings_file="res://MetSysSettings.tres"
metroidvania_system/settings_file="res://src/dino/vania/VaniaMetSysSettings.tres"

[application]

Expand Down
26 changes: 26 additions & 0 deletions src/dino/vania/VaniaGame.gd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@tool
extends Node
class_name VaniaGame

Expand Down Expand Up @@ -51,6 +52,8 @@ var ready_for_next: bool = false
var room_defs: Array[VaniaRoomDef] = []
@export var map_def: MapDef

@export var MetSysSettings = preload("res://src/dino/vania/VaniaMetSysSettings.tres")

@onready var hud = $%DinoHUD
var time: float = 0
var time_int = 0
Expand All @@ -76,9 +79,26 @@ func mark_room_visited(rd: VaniaRoomDef):
func all_rooms_visited():
return room_defs.all(func(rd): return rd.visited)

## enter_tree

func _enter_tree():
if Engine.is_editor_hint():
return
Log.warn("adjusting MetSys settings for Vania Game")
# set expected metsys settings
MetSys.settings = MetSysSettings

# TODO ignore if already connected
MetSys.settings.theme_changed.connect(MetSys._update_theme)
MetSys._update_theme()
# MetSys.map_data = MapData.new()
MetSys.map_data.load_data()

## ready #######################################################

func _ready():
if Engine.is_editor_hint():
return
modules.append(VaniaRoomTransitions.new(self))

# MetSys.cell_changed.connect(on_cell_changed, CONNECT_DEFERRED)
Expand Down Expand Up @@ -361,6 +381,9 @@ func _exit_tree():
## process #######################################################

func _process(_delta: float):
if Engine.is_editor_hint():
return

if not generating.is_alive():
generating.wait_to_finish()
generating = null
Expand All @@ -370,6 +393,9 @@ func _process(_delta: float):
room_gen_complete.emit()

func _physics_process(delta: float):
if Engine.is_editor_hint():
return

if game_timer_running:
# slow mo probably affects this
# could be better to do in _process, but the threading and set_process(false) makes it weird
Expand Down
15 changes: 15 additions & 0 deletions src/dino/vania/VaniaMetSysSettings.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[gd_resource type="Resource" load_steps=3 format=3 uid="uid://bvvxp4phcd6la"]

[ext_resource type="Script" path="res://addons/MetroidvaniaSystem/Scripts/Settings.gd" id="1_06u7y"]
[ext_resource type="Resource" uid="uid://bt6s3nd8xo6b" path="res://addons/MetroidvaniaSystem/Themes/Exquisite/Theme.tres" id="2_sdssx"]

[resource]
script = ExtResource("1_06u7y")
theme = ExtResource("2_sdssx")
map_root_folder = "res://src/dino/vania/maps/"
map_extents = 100
scene_template = ""
in_game_cell_size = Vector2(240, 135)
discover_whole_rooms = false
collectible_list = Array[Dictionary]([])
assign_uid_to_rooms = false
68 changes: 68 additions & 0 deletions src/games/hatbot/HatBotGame.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@tool
extends "res://addons/MetroidvaniaSystem/Template/Scripts/MetSysGame.gd"
class_name HatBotGame

# this script based initially on MetSys/SampleProject/Scripts/Game.gd

@export var first_room: String = "RoomZero.tscn"
@export var MetSysSettings = preload("res://src/games/hatbot/HatBotMetSysSettings.tres")
@export var player_entity: DinoPlayerEntity

func _enter_tree():
if Engine.is_editor_hint():
return
Log.warn("adjusting MetSys settings for HatBot Game")
MetSys.settings = MetSysSettings

# TODO ignore if already connected
MetSys.settings.theme_changed.connect(MetSys._update_theme)
MetSys._update_theme()
# MetSys.map_data = MapData.new()
MetSys.map_data.load_data()

func _ready():
if Engine.is_editor_hint():
return

MetSys.reset_state()
MetSys.set_save_data()

room_loaded.connect(on_room_loaded, CONNECT_DEFERRED)

Dino.player_ready.connect(func(p):
Log.pr("player ready", p)
if p:
set_player(p), CONNECT_DEFERRED)

Dino.create_new_player({entity=player_entity})

# if OS.get_environment("__metsys_first_room__"):
# var first_room_overwrite = OS.get_environment("__metsys_first_room__")
# Log.warn("[DEV] Running custom room", first_room_overwrite)
# load_room(first_room_overwrite)
# else:
# Log.info("Running first room", first_room)
# load_room(first_room)

load_room(first_room)

add_modules()

func add_modules():
var paths = [
"res://src/games/hatbot/HatBotRoomTransitions.gd"
]
for p in paths:
var module: MetSysModule = load(p).new(self)
modules.append(module)

func on_room_loaded():
MetSys.get_current_room_instance().adjust_camera_limits($Camera2D)
if not Dino.current_player_node():
Dino.spawn_player()

# overwriting the parent b/c the player doesn't always exist
func _physics_tick():
if can_process():
if is_instance_valid(player):
MetSys.set_player_position(player.position)
21 changes: 21 additions & 0 deletions src/games/hatbot/HatBotGame.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[gd_scene load_steps=5 format=3 uid="uid://eti55dwfxq0b"]

[ext_resource type="Script" path="res://src/games/hatbot/HatBotGame.gd" id="1_xd8wj"]
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="2_4n3jf"]
[ext_resource type="Script" path="res://src/dino/players/DinoPlayerEntity.gd" id="2_mh42o"]

[sub_resource type="Resource" id="Resource_psfxv"]
script = ExtResource("2_mh42o")
_id = "166"

[node name="HatBotGame" type="Node"]
script = ExtResource("1_xd8wj")
player_entity = SubResource("Resource_psfxv")

[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(3.2, 3.2)

[node name="PhantomCameraHost" type="Node" parent="Camera2D"]
process_priority = 300
process_physics_priority = 300
script = ExtResource("2_4n3jf")
15 changes: 15 additions & 0 deletions src/games/hatbot/HatBotMetSysSettings.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[gd_resource type="Resource" load_steps=3 format=3 uid="uid://ca2tg6n83248w"]

[ext_resource type="Script" path="res://addons/MetroidvaniaSystem/Scripts/Settings.gd" id="1_3qp1r"]
[ext_resource type="Resource" uid="uid://bt6s3nd8xo6b" path="res://addons/MetroidvaniaSystem/Themes/Exquisite/Theme.tres" id="2_g47mh"]

[resource]
script = ExtResource("1_3qp1r")
theme = ExtResource("2_g47mh")
map_root_folder = "res://src/games/hatbot/rooms/"
map_extents = 100
scene_template = "res://src/games/hatbot/rooms/RoomZero.tscn"
in_game_cell_size = Vector2(240, 135)
discover_whole_rooms = false
collectible_list = Array[Dictionary]([])
assign_uid_to_rooms = false
26 changes: 26 additions & 0 deletions src/games/hatbot/HatBotRoomTransitions.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## A MetSysModule that handles room transitions.
##
## The module connects to [signal MetroidvaniaSystem.room_changed]. When room changes, the new scene gets is loaded via [code]load_room()[/code] method. If MetSysGame has a player set, the player will be automatically teleported to the correct entrance.
extends "res://addons/MetroidvaniaSystem/Template/Scripts/MetSysModule.gd"

var player: Node2D

func _initialize():
Dino.player_ready.connect(func(p): player = p)
MetSys.room_changed.connect(_on_room_changed, CONNECT_DEFERRED)

func _on_room_changed(target_room: String):
if target_room == MetSys.get_current_room_name():
# This can happen when teleporting to another room.
return

var prev_room_instance := MetSys.get_current_room_instance()
if prev_room_instance:
prev_room_instance.get_parent().remove_child(prev_room_instance)

await game.load_room(target_room)

if prev_room_instance:
if player:
player.position -= MetSys.get_current_room_instance().get_room_position_offset(prev_room_instance)
prev_room_instance.queue_free()
4 changes: 4 additions & 0 deletions src/games/hatbot/rooms/MapData.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[-4,-7,0]
1,0,0,0|||RoomZero.tscn
[-3,-7,0]
0,0,1,0|||RoomOne.tscn
15 changes: 15 additions & 0 deletions src/games/hatbot/rooms/RoomOne.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=4 uid="uid://jsfvho6aqp5q"]

[ext_resource type="PackedScene" uid="uid://bsg0351mx3b4u" path="res://addons/MetroidvaniaSystem/Nodes/RoomInstance.tscn" id="1_annc3"]
[ext_resource type="PackedScene" uid="uid://blcbo66bjys25" path="res://src/tilemaps/coldfire/ColdFireTileMapLayer.tscn" id="3_2ie3c"]
[ext_resource type="PackedScene" uid="uid://bs0c5xn0vglfn" path="res://src/dino/entities/PlayerSpawnPoint.tscn" id="5_7tq12"]

[node name="Map" type="Node2D"]

[node name="RoomInstance" parent="." instance=ExtResource("1_annc3")]

[node name="ColdFireTileMapLayer" parent="." instance=ExtResource("3_2ie3c")]
tile_map_data = PackedByteArray("AAAAAA8AAQACAAAAAAAAABAAAQADAAAAAAABAA8AAQADAAAAAAABABAAAQACAAIAAAACAA8AAQACAAIAAAACABAAAQABAAIAAAADAA8AAQACAAIAAAADABAAAQACAAIAAAAEAA8AAQADAAIAAAAEABAAAQAAAAAAAAAFAA8AAQACAAIAAAAFABAAAQAAAAIAAAAGAA8AAQACAAAAAAAGABAAAQABAAAAAAAHAA8AAQABAAIAAAAHABAAAQABAAAAAAAIAA8AAQAAAAAAAAAIABAAAQADAAIAAAAJAA8AAQABAAAAAAAJABAAAQAAAAAAAAAKAA8AAQABAAAAAAAKABAAAQABAAAAAAALAA8AAQAAAAIAAAALABAAAQAAAAIAAAAMAA8AAQABAAAAAAAMABAAAQAAAAIAAAANAA8AAQACAAIAAAANABAAAQABAAAAAAAOAA8AAQADAAAAAAAOABAAAQADAAAAAAAPAA8AAQAAAAIAAAAPABAAAQACAAAAAAAQAA8AAQADAAAAAAAQABA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QAAAAAAAAAdAAQAAQACAAAAAAAdAAUAAQAAAAAAAAAdAAYAAQAAAAAAAAAdAAcAAQABAAAAAAAdAAgAAQAAAAAAAAAdAAkAAQADAAAAAAAdAAoAAQADAAIAAAAdAAsAAQAAAAIAAAAdAAwAAQADAAIAAAAdAA0AAQABAAIAAAAdAA4AAQACAAIAAAA=")

[node name="PlayerSpawnPoint" parent="." instance=ExtResource("5_7tq12")]
position = Vector2(52, 33)
15 changes: 15 additions & 0 deletions src/games/hatbot/rooms/RoomZero.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=4 uid="uid://cgs87w0ad2j1v"]

[ext_resource type="PackedScene" uid="uid://bsg0351mx3b4u" path="res://addons/MetroidvaniaSystem/Nodes/RoomInstance.tscn" id="1_hmleh"]
[ext_resource type="PackedScene" uid="uid://blcbo66bjys25" path="res://src/tilemaps/coldfire/ColdFireTileMapLayer.tscn" id="2_7jkpd"]
[ext_resource type="PackedScene" uid="uid://bs0c5xn0vglfn" path="res://src/dino/entities/PlayerSpawnPoint.tscn" id="3_sawtn"]

[node name="Map" type="Node2D"]

[node name="RoomInstance" parent="." instance=ExtResource("1_hmleh")]

[node name="ColdFireTileMapLayer" parent="." instance=ExtResource("2_7jkpd")]
tile_map_data = PackedByteArray("AAAAAA8AAQACAAAAAAAAABAAAQADAAAAAAABAA8AAQADAAAAAAABABAAAQACAAIAAAACAA8AAQACAAIAAAACABAAAQABAAIAAAADAA8AAQACAAIAAAADABAAAQACAAIAAAAEAA8AAQADAAIAAAAEABAAAQAAAAAAAAAFAA8AAQACAAIAAAAFABAAAQAAAAIAAAAGAA8AAQACAAAAAAAGABAAAQABAAAAAAAHAA8AAQABAAIAAAAHABAAAQABAAAAAAAIAA8AAQAAAAAAAAAIABAAAQADAAIAAAAJAA8AAQABAAAAAAAJABAAAQAAAAAAAAAKAA8AAQABAAAAAAAKABAAAQABAAAAAAALAA8AAQAAAAIAAAALABAAAQAAAAIAAAAMA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AAAAUAAAAAQACAAIAAAAVAAAAAQACAAIAAAAWAAAAAQABAAIAAAAXAAAAAQAAAAAAAAAYAAAAAQACAAIAAAAZAAAAAQADAAAAAAAaAAAAAQADAAAAAAAbAAAAAQAAAAAAAAAcAAAAAQABAAIAAAAdAAAAAQACAAAAAAAdAAEAAQACAAIAAAAdAAIAAQADAAIAAAAdAAMAAQAAAAAAAAAdAAQAAQACAAAAAAAdAAUAAQAAAAAAAAAdAAYAAQAAAAAAAAAdAAcAAQABAAAAAAAdAAgAAQAAAAAAAAAdAA0AAQABAAIAAAAdAA4AAQACAAIAAAA=")

[node name="PlayerSpawnPoint" parent="." instance=ExtResource("3_sawtn")]
position = Vector2(52, 33)
33 changes: 29 additions & 4 deletions src/themes/DinoDefaultTheme.tres

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/tilemaps/coldfire/ColdFireTileMapLayer.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=4 uid="uid://blcbo66bjys25"]

[ext_resource type="TileSet" uid="uid://db48qit5jufd1" path="res://src/tilemaps/coldfire/ColdFireTiles.tres" id="1_eb377"]

[node name="ColdFireTileMapLayer" type="TileMapLayer"]
use_parent_material = true
tile_map_data = PackedByteArray("AAAAAA8AAQACAAAAAAAAABAAAQADAAAAAAABAA8AAQADAAAAAAABABAAAQACAAIAAAACAA8AAQACAAIAAAACABAAAQABAAIAAAADAA8AAQACAAIAAAADABAAAQACAAIAAAAEAA8AAQADAAIAAAAEABAAAQAAAAAAAAAFAA8AAQACAAIAAAAFABAAAQAAAAIAAAAGAA8AAQACAAAAAAAGABAAAQABAAAAAAAHAA8AAQABAAIAAAAHABAAAQABAAAAAAAIAA8AAQAAAAAAAAAIABAAAQADAAIAAAAJAA8AAQABAAAAAAAJABAAAQAAAAAAAAAKAA8AAQABAAAAAAAKABAAAQABAAAAAAALAA8AAQAAAAIAAAALABAAAQAAAAIAAAAMAA8AAQABAAAAAAAMABAAAQAAAAI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AQACAAIAAAAWAAAAAQABAAIAAAAXAAAAAQAAAAAAAAAYAAAAAQACAAIAAAAZAAAAAQADAAAAAAAaAAAAAQADAAAAAAAbAAAAAQAAAAAAAAAcAAAAAQABAAIAAAAdAAAAAQACAAAAAAAdAAEAAQACAAIAAAAdAAIAAQADAAIAAAAdAAMAAQAAAAAAAAAdAAQAAQACAAAAAAAdAAUAAQAAAAAAAAAdAAYAAQAAAAAAAAAdAAcAAQABAAAAAAAdAAgAAQAAAAAAAAAdAAkAAQADAAAAAAAdAAoAAQADAAIAAAAdAAsAAQAAAAIAAAAdAAwAAQADAAIAAAAdAA0AAQABAAIAAAAdAA4AAQACAAIAAAA=")
tile_set = ExtResource("1_eb377")
26 changes: 12 additions & 14 deletions src/tilemaps/coldfire/ColdFireTiles.tres
Original file line number Diff line number Diff line change
Expand Up @@ -23,58 +23,56 @@ texture_region_size = Vector2i(8, 8)
0:0/0/occlusion_layer_0/polygon = SubResource("OccluderPolygon2D_kl15o")
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:0/0 = 0
1:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:0/0/custom_data_1 = true
2:0/0 = 0
2:0/0/occlusion_layer_0/polygon = SubResource("OccluderPolygon2D_hdsw2")
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:0/0 = 0
3:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:0/0/custom_data_1 = true
0:1/0 = 0
0:1/0/occlusion_layer_0/polygon = SubResource("OccluderPolygon2D_sotti")
0:1/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
0:1/0/custom_data_2 = true
1:1/0 = 0
1:1/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:1/0/custom_data_0 = true
2:1/0 = 0
2:1/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
2:1/0/custom_data_2 = true
3:1/0 = 0
3:1/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:1/0/custom_data_0 = true
0:2/0 = 0
0:2/0/occlusion_layer_0/polygon = SubResource("OccluderPolygon2D_ufyxm")
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:2/0 = 0
1:2/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:2/0/custom_data_1 = true
2:2/0 = 0
2:2/0/occlusion_layer_0/polygon = SubResource("OccluderPolygon2D_opuqi")
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:2/0 = 0
3:2/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:2/0/custom_data_1 = true
0:3/0 = 0
0:3/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
0:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
0:3/0/custom_data_2 = true
1:3/0 = 0
1:3/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
1:3/0/custom_data_0 = true
2:3/0 = 0
2:3/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
2:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
2:3/0/custom_data_2 = true
3:3/0 = 0
3:3/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -4, 4, -4, 4, 4, -4, 4)
3:3/0/custom_data_0 = true

[resource]
tile_size = Vector2i(8, 8)
occlusion_layer_0/light_mask = 1
physics_layer_0/collision_layer = 1
physics_layer_1/collision_layer = 64
physics_layer_1/collision_mask = 0
custom_data_layer_0/name = "red"
custom_data_layer_0/type = 1
custom_data_layer_1/name = "blue"
Expand Down

0 comments on commit 4b27380

Please sign in to comment.