This is a quick demo of a PlayBits game as described in the “PlayBits and Vector Games for the Web” article. It uses the VectorShape scene object to associate XAML Path shapes with, such as the players and asteroids graphics, with game objects that can be manipulated by the game engine’s physics system. The game uses no image graphics at all and downloads to the Web browser as a 90KB package, including the PlayBits game engine DLL.
To play the “Vector Space” game below, click within the game window to direct keyboard input to the game. To move the RED player, use the keyboard’s Arrow keys. To move the BLUE player, use the keyboards WASD keys. There is certainly more that can be done with this concept game, it took about 30 minutes to go from an idea to something running – and most of that time was spent drawing the shapes and playing with the brush settings.