source: 2011/26/JuhoK/SFN/SFN/SFN/Peli.cs @ 2168

Revision 2168, 823 bytes checked in by jumakall, 8 years ago (diff)

SFN projekti aloitettu.

RevLine 
[2168]1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Peli : PhysicsGame
10{
11    Image MenuBackround = LoadImage("MenuBackround");
12    public override void Begin()
13    {
14        Mouse.IsCursorVisible = true;
15        CreateMenu();
16    }
17
18    void CreateMenu()
19    {
20        //Set menu backround
21        Level.Background.Image = MenuBackround;
22
23        //Start game button
24        PushButton start_game = new PushButton("New game");
25        start_game.Clicked += new Action(start_game_Clicked);
26        start_game.Position = new Vector(300.0, 250.0);
27        Add(start_game);
28    }
29
30    void start_game_Clicked()
31    {
32        MessageDisplay.Add("Action not availible.");
33    }
34}
Note: See TracBrowser for help on using the repository browser.