Skip to content

SFilinsky/worldscapes-arkanoid

Repository files navigation

worldscapes-arkanoid

This is test / example game for Worldscapes Engine.

It uses Angular as client-side framework, Pixi.js for rendering and Matter.js for server-side physics.

To start, you can check game simulation rules. They define most of the core logic on server.

To see how Worldscapes Server is bootstrapped, take a look at Game Room index.js. The assumption is that there could be a matchmaking server that starts several separate rooms (but it's out of the scope of this implementation).

To see how Worldscapes Client is wrapped to allow input and rendering, you can see Worldscapes Service. It allows queries to be accessed as Observable in Angular context, making it essentially a stream of game simulation updates, as well as convering input throughout client frontend into Worldscapes input events.

Initial game state is defined by Initializers.

Matter.js is wrapped in Calculate Physics simulation rule. To store physics state in Game State storage of engine, Matter Serializer is used.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published