Changeset 6280 for 2015/26


Ignore:
Timestamp:
2015-06-24 17:50:32 (4 years ago)
Author:
empaheik
Message:

cameraoffset laskettu ikkunan leveydestä, maitopartikkelit siirretty parempaan paikkaan.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs

    r6279 r6280  
    2424*/ 
    2525 
    26  
     26#region Improvement  
    2727public abstract class Improvement :PlatformCharacter 
    2828{ 
     
    6868} 
    6969 
     70#endregion 
    7071 
    7172public class HillBilly : PlatformCharacter 
     
    125126    private Vector cameraTarget; 
    126127 
    127     private double cameraOffset = 400; // TODO: Tämän voisi ehkä laskea jostain (esim. ikkunan leveydestä kolmasosa tai jotain). 
     128    private double cameraOffset; //= 400; // TODO: Tämän voisi ehkä laskea jostain (esim. ikkunan leveydestä kolmasosa tai jotain). 
    128129    private double cameraSpeed = 2.0; // Kameran liikkumisnopeus. 
    129130 
     
    170171        //MainMenu(); 
    171172        StartGame(); 
    172     } 
    173  
    174     public void CreateMilkParticles(HillBilly billy)        //TODO: Tiny particles. 
    175     { 
    176         PhysicsObject milkParticle = new PhysicsObject(20, 20); 
    177         milkParticle.Position = billy.Position; 
    178         milkParticle.Tag = "milkparticle"; 
    179         Add(milkParticle); 
    180  
    181173    } 
    182174 
     
    318310        playerJump = LoadAnimation("jump"); 
    319311        playerFall = LoadAnimation("fall"); 
     312 
     313        cameraOffset = Window.Width / 4; 
    320314    } 
    321315 
     
    629623    } 
    630624 
     625    public void CreateMilkParticles(HillBilly billy)        //TODO: Tiny particles. 
     626    { 
     627        PhysicsObject milkParticle = new PhysicsObject(20, 20); 
     628        milkParticle.Position = billy.Position; 
     629        milkParticle.Tag = "milkparticle"; 
     630        Add(milkParticle); 
     631    } 
     632 
    631633    private void UseImprovement(HillBilly player) 
    632634    { 
Note: See TracChangeset for help on using the changeset viewer.