Member-only story

Connecting interactive actors in different rooms across the network

BlueBubbleBee
7 min readNov 7, 2019

--

Co-op online game prototype series, part 3.

This is the third part of the Co-op puzzle game prototype.

In the last tutorial, we created an interactive actor. The player can interact pressing the Key E, and an action happens.
We created a basic interactive mechanism type, represented by a Scifi monitor. When the player presses the interact button, there is a sound, and the screen switches on.

In the first level of our game, we have 2 rooms:

  • Player A and Room A with a terminal.
  • Player B, Room B with a door
  • Both have a common area to escape, both players need to escape to complete the level.

Let’s start with the Door logic.

We need to connect the screen in room A with the door in room B. This means connect 2 interactive actors in 2 different places, and because this is not a normal single player game we have to do it in a special way.

The way I went around this is using a new class special for this, the GameMode.
The GameMode, it’s a good place to represent the rules of the game, for example how many players require to play, total time of the level, if we can pause the game or not, and…

--

--

BlueBubbleBee
BlueBubbleBee

Written by BlueBubbleBee

I am Bee, an indie developer making Kitori Academy a cosy life sim where you take the role of a wizard apprentice and have a cat as a companion!

No responses yet