source: 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Enemy1.cs @ 5338

Revision 5338, 664 bytes checked in by alvirmas, 6 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
9class Enemy1 : PhysicsObject
10{
11    Proto236b parent;
12    public Enemy1(Proto236b parent, double w, double h,Vector position)
13        : base(w, h)
14    {
15        this.parent = parent;
16        //ensimmäisenä parametrina on siis peli. voit tehdä enemyn tyylillä "new Enemy1(this, w, h)".
17
18        //image laitetaan esim:
19        //this.Image = parent.Images["vihu1_image"];
20        this.Position = position;
21        // this.Animation = new Animation
22
23        parent.Add(this);
24    }
25}
Note: See TracBrowser for help on using the repository browser.