Marko Grešak
gresak.io / github.com/markogresak / @MGresak
Play at gresak.io/celtra
Multiplayer combat game
Randomly generated platform
How to play:
Alternative to JavaScript
"All in one" toolset
Works in Dart VM (Dartium)
or as JavaScript with dart2js
Standalone VM
Dart has tools for serving projects
Serve web/: pub serve
Run a single Dart file: dart server.dart
Decentralized server = simpler scalability
Starts game with entered username
Connects to server via dart:html.WebSocket
Generates and renders platform
Sends update to server when player moves
Binds address and listens for requests
Connected to clients via dart:io.WebSocket
Handles player messages
Broadcasts message to players