You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Otter;
|
|
|
|
namespace OtterPongGame {
|
|
class Program {
|
|
static void Main(string[] args) {
|
|
Game game = new Game("Otter Pong", 1000, 750);
|
|
|
|
Global.PlayerOne = game.AddSession("P1");
|
|
Global.PlayerTwo = game.AddSession("P2");
|
|
|
|
Global.PlayerOne.Controller.AddButton(Controls.Up);
|
|
Global.PlayerOne.Controller.AddButton(Controls.Down);
|
|
|
|
Global.PlayerTwo.Controller.AddButton(Controls.Up);
|
|
Global.PlayerTwo.Controller.AddButton(Controls.Down);
|
|
|
|
Global.PlayerOne.Controller.Button(Controls.Up).AddKey(Key.W);
|
|
Global.PlayerOne.Controller.Button(Controls.Down).AddKey(Key.S);
|
|
|
|
Global.PlayerTwo.Controller.Button(Controls.Up).AddKey(Key.Up);
|
|
Global.PlayerTwo.Controller.Button(Controls.Down).AddKey(Key.Down);
|
|
|
|
game.FirstScene = new PongScene();
|
|
|
|
game.Start();
|
|
}
|
|
}
|
|
}
|