pong

command
v0.0.0-...-8fc0beb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2016 License: MIT Imports: 8 Imported by: 0

README

Pong Demo

What does it do?

It combines a lot of features of engo, to demonstrate the playing of a game of pong.

What are important aspects of the code?

These things are key in this demo:

  • Preloading files in DefaultScene.Preload();
  • The SpeedSystem, to make sure the ball increases speed gradually;
  • The ControlSystem, to allow moving paddles up/down with WASD and arrow keys;
  • The BallSystem, to keep track of the location of the ball, sending messages to the ScoreSystem when needed;
  • The ScoreSystem, to keep track of the score of each player;
  • Creating some Entitys and requiring the correct Systems.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL