Changeset 5308
- Timestamp:
- 2014-07-02 21:39:26 (9 years ago)
- Location:
- 2014/27/AleksanteriV/Protokolla236TrueSurvivor
- Files:
-
- 2 added
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs
r5299 r5308 44 44 45 45 this.thrusterEffect = new GameObject(40, 40); 46 thrusterEffect.Image = parent.Images["player_thruster"]; 46 thrusterEffect.Animation = new Animation(parent.ImageLists["player_thruster"]); 47 thrusterEffect.Animation.FPS = 18; 48 thrusterEffect.Animation.Start(); 47 49 thrusterEffect.IsVisible = false; 48 thrusterEffect.Y -= 20;50 thrusterEffect.Y -= 19; 49 51 Add(thrusterEffect); 50 52 } -
2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor.cs
r5299 r5308 16 16 private Dictionary<string, Image> images = new Dictionary<string, Image>(); 17 17 public Dictionary<string, Image> Images { get { return images; } set { images = value; } } 18 private Dictionary<string, Image[]> imageLists = new Dictionary<string, Image[]>(); 19 public Dictionary<string, Image[]> ImageLists { get { return imageLists; } set { imageLists = value; } } 20 18 21 19 22 void AssignKeys() … … 31 34 images["background0"] = LoadImage("graphics/backgrounds/space_background"); 32 35 images["player"] = LoadImage("graphics/ships/player"); 33 image s["player_thruster"] = LoadImage("graphics/effects/thrusters/thruster0.1");36 imageLists["player_thruster"] = LoadImages("graphics/effects/thrusters/thruster0.1", "graphics/effects/thrusters/thruster0.2"); 34 37 images["tile0"] = LoadImage("graphics/tiles/tile0"); 35 38 }
Note: See TracChangeset
for help on using the changeset viewer.