source: 2014/26/TuukkaJ/NoobFight/NoobFight/NoobFight/NoobFight.cs @ 5084

Revision 5084, 1.0 KB checked in by jealkuik, 5 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class NoobFight : PhysicsGame
10{
11    Image hahmo = LoadImage("JerenHahmo");
12    Image tausta = LoadImage("kuva");
13    private Image[] ukkelinkavely = LoadImages("hahmo", 1, 3);
14    public override void Begin()
15    {
16        SetWindowSize(1024, 768);
17        Level.Size = new Vector(1024, 768);
18        Camera.ZoomToLevel();
19
20        SmoothTextures = false;
21        PhysicsObject pelaaja1 = new PhysicsObject(100, 100);
22        pelaaja1.Image = hahmo;
23        Add(pelaaja1);
24        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
25        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
26        IsPaused = true;
27        Keyboard.Listen(Key.P, ButtonState.Pressed, Pause, "Pysayttaa pelin");
28        // Level.Background.Color = Color.Black;
29        Level.Background.Image = tausta;
30        Level.Background.ScaleToLevel();
31    }
32}
Note: See TracBrowser for help on using the repository browser.