source: 2013/30/TomiH/joku kissa/joku kissa/joku kissa/joku_kissa.cs @ 4620

Revision 4620, 1.5 KB checked in by totakahe, 6 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class joku_kissa : PhysicsGame
10{
11
12    //private Animation sauruksenLento;
13    //private Animation bling;
14
15    private Animation dogface;
16
17    public override void Begin()
18    {
19          dogface = LoadAnimation("blingbling");
20          PhysicsObject catface = new PhysicsObject(300, 500);
21          Add(catface);
22        catface.Animation = dogface;
23        catface.Animation.Start();
24        catface.Animation.FPS = 4;
25       // bling = LoadAnimation("blingbling");
26       // PhysicsObject blinger = new PhysicsObject(300, 500);
27       // Add(blinger);
28       // blinger.Animation = bling;
29       // blinger.Animation.Start();
30       //blinger.Animation.FPS = 3;
31
32       // Image mogger = LoadImage("blingbling");
33       // PhysicsObject mogger = new PhysicsObject(50, 50);
34       // Add(mogger);
35
36       // sauruksenLento = LoadAnimation("havusaurus");
37       // PhysicsObject kalle = new PhysicsObject(30, 50);
38       // kalle.Image = mogger;
39       // kalle.Shape = Shape.FromImage(mogger);
40       // Add(kalle);
41       // kalle.Animation = sauruksenLento;
42       // kalle.Animation.Start();
43       // kalle.Animation.FPS = 3;
44       
45        // TODO: Kirjoita ohjelmakoodisi tähän
46
47        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
48        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
49    }
50}
Note: See TracBrowser for help on using the repository browser.