The Boss Room: Small Scale Co-op Sample v0.2.0 release provides new sample code, assets, and features for the Boss Room cooperative game sample project. THis project provides a learning experience for Unity MLAPI.
|Product||Version||Status||Release Date||Supported Unity Versions|
|Boss Room: Small Scale Co-op Sample||0.2.0||Early Access||May 19, 2021||v2020.3.8f1 LTS|
Boss Room: Small Scale Co-op Sample always requires the latest version of Unity MLAPI. See Unity MLAPI for more information on those features, fixes, and known issues.
v0.2.1 is a hotfix for an Early Access release for Boss Room: Small Scale Co-op Sample.
- GitHub 343 - Fixed parameter exception when connecting to lobby caused by an old MLAPI version. This fix reverts the change until the package is updated.
This release includes the following new features and additions:
Introduced static scene
NetworkObjects to Boss Room scene including the following updates:
- Implemented a
ScriptableObjectbased event system to encapsulate events inside assets. These objects include a
GameEventListener(MonoBehaviour) to encapsulate events inside assets, located in the
ServerBossRoomStateprefab which now has a
GameEventListenercomponent. The event associated to this listener is
BossDefeated, which the Boss raises when the
LifeStateis Dead in the
- Added two separator
GameObjects for scene readability: runtime
NetworkObjects already placed in the scene.
- Added a custom editor for GameEvents to fire in the editor (greatly enhances testing).
NetworkVariablewas moved from
NetworkCharacterStateinto its own component,
- Cleaned up and removed old spawn prefab collections and spawner scripts (
- Implemented a
Added ramp-up animation for hero movement and actions
Added F/X and animation assets for the game including:
- Audio files for boss sound effects
- Visual effects and particles for Tank charge skill
- Art assets to wave spawner, including animations for ReceiveDamage, Broken (died), and Revive
Added Boss fight theme.
Updated and added various hero abilities:
- Added a cooldown to Archer's PowerShot.
- Added the Rogue's Dagger and Dash skills. The dash skill shows an instinct teleport (using an RPC) instead of a charge like the boss' (which updates its position over time).
- Added the Rogue's Sneak skill using local stealth, applying a graphical effect to the stealthy character while still sending all network events normally.
- Properly display Heal abilities when targeting a fallen ally character.
- Character attack actions properly support Hold to charge options.
To show how UI elements and game objects can be networked, added networked functionality using
CharSelectscreen to network player's selected character on the Character Selection screen.
Added input sanitization to remove any invisible characters introduced by other chat programs when copy-pasting room names, IP addresses, or ports. (Useful when sharing with friends.)
Added disconnection error message to load when a player or host disconnects. Client logic was also updated to detect Host disconnection scenarios, such as losting connectivity.
Balanced hero and enemy stats, spawners, trigger areas, and enemy detetction areas.
Added healthbars to display when damaged and properly track imp health locally and across clients.
The Boss Room project now loads MLAPI 0.1.0-experimental package through the Unity Package Manager Registry. See the MLAPI install guide for details.
Updated the user interface including the following:
- When joining a game, a "Connecting..." UI loads. When disconnecting from a game, you are returned to the MainMenuScene with a "Connection to Host lost" message. If the game fails to connect, a general message "Connection to Host failed" loads.
- Added an option to leave the lobby after joining it. You no longer have to restart the game to leave the lobby.
- Added option to cancel my selection after clicking Ready.
- Added a gear icon for accessing and modifying app settings.
- The UI now tracks and displays player has arrived, number of connected players in the lobby, and player status.
This release includes the following updates:
Updated Boss Room per asset and project settings for increased performance and better resource management:
- Disabled GPU Skinning to optimize GPU usage and FPS.
- Lowered quality of ambient occlusion from high to medium.
- Switched SMAA High to FXAA (fast mode) reducing GPU cost.
- Modified GPU Instancing on imps, heroes, and the boss to significantly reduce the number of draw calls.
- Turned off Cast Shadows on Imp and Imp Boss.
- Disabled mesh colliders of lava, which is more decorative than interactive.
- Refactored the S_SimpleDissolve shader which consumed most import time.
Removed a duplicated
GameObjectfrom the MainMenu scene.
Reviewed and revised code to better following quality standards.
Updated the Mage character base attack to better support the new enqueuing ability and handle game behaviors. Updates include:
- Actions being non-blocking now allow other actions while a mage-bolt is in flight
- Actions send in
ActionSequencegroups to better handle actions when players spam click enemies
- Timing issues with animations, actions, and character location
- Bolt animation for legitimate hits
- Updated attacks not to knock rogues out of stealth
Updated character attacks to not cause friendly-fire damage between players.
Updated and resolved issues with 3D models including polygon count of coins and chest, artifacts where level graphics are stitched together or overlapping characters, and asset map consistency used by objects (color + normal map + emission).
DisconnectReasoninto a single
ServerGameNetPortalto properly handle the following:
- Per-connection state on client disconnect
- Additional errors including a full server and player ID (GUID) already playing
Updated code to allow hosts to specify a port to listen to,removing the hard-coded port.
Refactored Action Bar code including the following:
- Removed the
- Removed hard-coded values from
- Removed switch statements.
- Completed minor code cleanup.
- Added verification to only show skill and ability buttons for available character abilities. Empty buttons no longer load for characters.
- Removed the
Added a call to warm up shaders when the project starts to ensure animations issues do not occur.
Removed collision from objects that have a Broken (dead) state.
Implemented a better cooldown solution and calculations for tracking and managing character, imp, and boss actions.
Updated event registration and unregistration code to be symmetrical across the project.
This release includes the following issue fixes:
- Fixed an issue where any player that plays the game and then returns to the Main Menu may be unable to Start or Join properly again, requiring you to restart the client.
- Updates and refinements in Boss Room resolved an issue that occurred in some degraded network conditions that caused a replicated entity on a client to vanish from that client, creating the effect of being assailed by an invisible enemy.
- Fixed displayed graphical affects for casting and blocking a Bolt to correctly match the caster and target, and properly stops animations for cancelled actions across clients.
- Fixed a rare exception when the Tank character uses her Shield Aura ability to intercept the Boss charge attack.
- Fixed an issue returning all clients to the Main Menu when the host leaves the Boss Room.
- Green quads no longer show on impact when the Archer arrow strikes enemies.
- Fixed issue to correctly allow one player to receive a character when two players in the Character Select click Ready for the same hero at the same time. Character Select is no longer blocked.
- Fixed an issue with boss collisions with a Pillar correctly applying a stun effect and shattering the pillar when using the Trample attack.
- Fixed the lobby welcome messages to correctly list the player names, including a previous issues for P1 and P2.
- On Windows, investigated and fixed issues with visible effects for character actions including mage freeze attack.
- On Windows, fixed issue with imp spawners not respawning new imps after exploring the room.
- Fixed an issue where the door state does not reflect the existing state when players connect late to a game, for example if other players open the door and a player joins late the door displays as closed.
- Removed a previous work-around for character selections when host replays a completed game. The issue was resolved, allowing players to see character selections during replay.
- Fixed collision wall settings, fixing an issues where the boss knock-back ability sent players through walls.
- Resolved an issue where any players leaving the lobby sent all players to the lobby.
- Fixed the ignored health amount (HP parameter) for revived characters. The correct value correctly sets the revived character to a lower amount than maximum.
- Fixed animations for enemies including the smoke animation for destroyed imps and the boss helmet when crying.
- Fixed loading of the game skybox before the menu loaded.
The following issues may occur for access and games:
- An MLAPI soft sync error on cleanup between scene transitions may break the game, for example imps do not spawn and pots are intangible.
- The game can be initiated while a second player is connecting to the host in
CharSelect. Players may join without selected characters spawning and in an unresponsive state.
- Sometimes after completing a match and the host starts a new match from the Victory or Loss screen, connected players may have no visible interactions to join or select characters. A work-around is implemented to not block entry into the game.
- Sometimes the client may be disconnected from Photon which causes a timeout and
PhotonRealtimeTransportto be in a bad state after the shutdown. An exception is developed that fires every frame.
See Getting Started with Boss Room to install and get started with Boss Room.