Changeset 5002


Ignore:
Timestamp:
2014-06-13 10:24:36 (9 years ago)
Author:
anlakane
Message:
 
Location:
2014/24/EelisK
Files:
62 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/Lentokone.cs

    r4963 r5002  
    1515    public IntMeter Elamat { get; set; } 
    1616 
     17 
     18    public IntMeter Pisteet { get; set; } 
     19 
     20    public double FireRate { 
     21 
     22        get { return ase.FireRate; } 
     23        set { ase.FireRate = value; } 
     24    } 
     25 
     26    public int Ammo 
     27    { 
     28        get { return ase.Ammo.MaxValue; } 
     29        set { ase.Ammo.MaxValue = value; } 
     30    } 
     31 
     32    public double AccelerationSpeed { get; set; } 
     33 
     34    public double TopSpeed { get; set; } 
     35 
     36    const double DEFAULT_ACCELERATION = 250; 
     37 
     38    const double DEFAULT_TOP_SPEED = 300; 
     39 
     40    public int ElamaLevel = 1; 
     41    public int FireRateLevel = 1; 
     42    public int AmmoLevel = 1; 
     43    public int AccelerationLevel = 1; 
     44    public int TopSpeedLevel = 1; 
     45 
     46    public const int BASE_UPGRADE_COST = 100; 
     47 
     48    public const int HEALTH_UPGRADE_AMOUNT = 10; 
     49    public const int FIRE_RATE_UPGRADE_AMOUNT = 2; 
     50    public const int AMMO_UPGRADE_AMOUNT = 25; 
     51    public const int ACCELERATION_UPGRADE_AMOUNT = 25; 
     52    public const int TOP_SPEED_UPGRADE_AMOUNT = 25; 
     53 
     54    public const int KILL_SCORE = 25; 
     55 
     56    public Label AmmusNaytto { get; set; } 
     57 
     58    public Label PisteNaytto { get; set; } 
     59 
    1760    public Lentokone(double leveys, double korkeus, Weapon ase, int elamat) 
    1861        : base(leveys, korkeus) 
     
    3073        War_in_the_sky.Peli.Add(elamaPalkki); 
    3174 
     75        this.Pisteet = new IntMeter(0, 0, Int32.MaxValue); 
     76        this.AccelerationSpeed = DEFAULT_ACCELERATION; 
     77        this.TopSpeed = DEFAULT_TOP_SPEED; 
    3278 
     79        AmmusNaytto = new Label(); 
     80        AmmusNaytto.BindTo(ase.Ammo); 
     81        AmmusNaytto.Position = new Vector(elamaPalkki.X, elamaPalkki.Y + elamaPalkki.Height); 
     82        AmmusNaytto.Font = War_in_the_sky.Peli.courier; 
     83        War_in_the_sky.Peli.Add(AmmusNaytto); 
     84 
     85        PisteNaytto = new Label(); 
     86        PisteNaytto.BindTo(Pisteet); 
     87        PisteNaytto.Position = new Vector(War_in_the_sky.Screen.Left + 150, War_in_the_sky.Screen.Bottom + 35); 
     88        PisteNaytto.Font = War_in_the_sky.Peli.courier; 
     89        War_in_the_sky.Peli.Add(PisteNaytto); 
     90 
     91        Pisteet.Value = 0; 
    3392    } 
    3493 
     
    3998 
    4099        War_in_the_sky.Peli.KirkastaRuutua(0.3, 2.5); 
     100       
     101        Timer.SingleShot(0.5, delegate { War_in_the_sky.Peli.PimennaRuutua(0.04); }); 
     102        Timer.SingleShot(10.0, delegate { War_in_the_sky.Peli.ClearAll(); War_in_the_sky.Peli.PaaValikko(null); }); 
    41103 
    42         Timer.SingleShot(0.5, delegate { War_in_the_sky.Peli.PimennaRuutua(0.04); }); 
     104        SoundEffect loppuLopetus = War_in_the_sky.LoadSoundEffect("Game_Over_sound_effect"); 
     105        Timer.SingleShot(3.0, delegate { War_in_the_sky.Peli.loppuLopetus.Play(); }); 
     106    } 
     107 
     108    public bool HasEnoughScore(double score) 
     109    { 
     110        if (this.Pisteet.Value >= score) 
     111            return true; 
     112        return false; 
     113    } 
     114 
     115    public void LataaAmmo() 
     116    { 
     117        this.ase.Ammo.Value = this.ase.Ammo.MaxValue; 
    43118    } 
    44119} 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/Pahiskone.cs

    r4963 r5002  
    5555        savu = new Smoke(); 
    5656        War_in_the_sky.Peli.Add(savu); 
     57        War_in_the_sky.Peli.lentokone.Pisteet.Value += Lentokone.KILL_SCORE; 
    5758        War_in_the_sky.Peli.pahiksetKentalla.Remove(this); 
    5859        if (War_in_the_sky.Peli.pahiksetKentalla.Count == 0) 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/War_in_the_sky.cs

    r4963 r5002  
    1515    public Image pahiskoneenKuvaKaannettyPystysuunnassa; 
    1616    public Image pahiskoneenKuvaPeilattuKaannettyPystysuunnassa; 
    17  
     17    private Animation laskuTekstiAnimaatio; 
     18    private GameObject laskuTeksti; 
     19    private GameObject latausTeksti; 
    1820    public List<Pahiskone> pahiksetKentalla = new List<Pahiskone>(); 
    1921    int round = 1; 
    20  
     22    SoundEffect taustaAani = War_in_the_sky.LoadSoundEffect("War Music (Epic Instrumental)_leikattu"); 
     23    public Font courier = LoadFont("Courier"); 
     24    IntMeter kierrosMittari; 
    2125    Image lentokoneenKuva; 
    2226    Image lentokoneenKuvaKäännetty; 
    2327    Image[] pilviKuvat = LoadImages("03", "13", "cloud", "fluffy_cloud", "footer-clouds"); 
    24     const double lentokoneenMaxNopeus = 300; 
    25     const double lentokoneenKiihdytysNopeus = 250; 
    2628    const double lentokoneenKaantymisNopeus = 3.0; 
    2729    ExplosionSystem ammusSavu = new ExplosionSystem(LoadImage("smoke"), 500); 
    28     //private Animation ukkelinKavely; 
    29  
    30     //alkuvalikko 
    31     //vastustajien ampuminen ja level up 
    32     //roundit 
     30    public SoundEffect loppuLopetus = LoadSoundEffect("Game_Over_sound_effect"); 
     31    //SoundEffect loppuLopetus; 
     32    //SoundEffect gameo 
     33    SoundEffect LatausAani = LoadSoundEffect("Lock"); 
    3334    //oman aluksen kehittäminen 
    3435    //HUD 
     36    SoundEffect LentoAani = LoadSoundEffect("lentsikka lentää"); 
     37    Image AmmonLataus = LoadImage("Loading Ammo"); 
     38    // tulinopeus 
     39    // health 
     40    // ohjukset 
     41    // nopeus 
    3542 
    3643    public override void Begin() 
    3744    { 
    38  
    39  
    40  
    41  
    42  
    43  
    4445        Level.Size = Screen.Size; 
    4546        GameObject taustakuva = new GameObject(Level.Width, Level.Height); 
     
    5455            PaaValikko(taustakuva); 
    5556        }); 
    56  
    5757    } 
    5858 
     
    6363    public void PimennaRuutua(double nopeus) 
    6464    { 
     65        taustaAani.Play(); 
    6566        Timer ajastin = new Timer(); 
    6667        ajastin.Interval = 0.1; 
     
    9798    } 
    9899 
    99     void PaaValikko(GameObject taustakuva) 
    100     { 
    101         taustakuva.Destroy(); 
     100    public void PaaValikko(GameObject taustakuva) 
     101    { 
     102        SoundEffect taustaAani = War_in_the_sky.LoadSoundEffect("War Music (Epic Instrumental)_leikattu"); 
     103        //MediaPlayer.Play("War Music (Epic Instrumental)_leikattu"); 
     104         
     105         
     106        if (taustakuva != null) 
     107            taustakuva.Destroy(); 
    102108        Level.Background.Color = Color.Black; 
    103109        KirkastaRuutua(0.2, 1.0); 
    104110        MultiSelectWindow alkuValikko = new MultiSelectWindow("War In The Sky", 
    105111        "Start Game", "Info", "End Game"); 
     112        alkuValikko.ItemSelected += painettiinValikonNappi; 
    106113        Add(alkuValikko); 
    107114        alkuValikko.ActiveColor = Color.Transparent; 
     
    109116        alkuValikko.SelectionColor = Color.Brown; 
    110117        alkuValikko.DefaultCancel = 2; 
     118         
     119 
    111120 
    112121        GameObject valikkoTausta = new GameObject(340, 400); 
     
    117126        //alkuValikko.AddItemHandler(1, d); 
    118127        alkuValikko.AddItemHandler(1, Exit); 
    119  
     128         
    120129 
    121130    } 
     
    128137        lentokone1Ase = new AssaultRifle(30, 30); 
    129138        lentokone1Ase.Ammo.Value = 200; 
     139        lentokone1Ase.Ammo.MaxValue = 200; 
    130140        lentokone1Ase.ProjectileCollision = AmmusOsui; 
    131141        lentokone1Ase.Power.DefaultValue = 300; 
    132142        lentokone1Ase.FireRate = 5; 
    133  
     143         
    134144        lentokone = new Lentokone(70 * 2, 22.4 * 2, lentokone1Ase, 200); 
    135145        //lentokone.CollisionIgnoreGroup = 1; 
     
    137147        lentokone.Mass = 0.5; 
    138148        lentokone.LinearDamping = 0.99; 
     149        lentokone.Tag = "lentokone"; 
     150        lentokone.AngularDamping = 0.98; 
    139151        lentokone.Shape = Shape.Rectangle; 
    140152        lentokoneenKuva = LoadImage("sotakone hyvis"); 
     
    147159        lentokone.Add(lentokone1Ase); 
    148160        lentokone1Ase.IsVisible = false; 
    149  
     161        KierrosMittari(); 
    150162        AloitaRound(); 
    151163 
     
    157169        Level.Size = new Vector(4096, 4096); 
    158170        Surface vasenReuna = Surface.CreateLeft(Level); 
     171        vasenReuna.Tag = "vasen"; 
     172        AddCollisionHandler(vasenReuna, ReunaanTormattiin); 
    159173        Surface alaReuna = Surface.CreateBottom(Level, 30, 80, 40, 10); 
    160174        alaReuna.Position = new Vector(alaReuna.X, alaReuna.Y + alaReuna.Height); 
    161         Add(alaReuna, 3); 
     175        Add(alaReuna, 2); 
    162176        alaReuna.Tag = "reuna"; 
    163177        Surface oikeaReuna = Surface.CreateRight(Level); 
     178        oikeaReuna.Tag = "oikea"; 
     179        AddCollisionHandler(oikeaReuna, ReunaanTormattiin); 
    164180        Surface ylaReuna = Surface.CreateTop(Level); 
    165181        Add(vasenReuna); 
     
    171187        Add(taustakuva, -3); 
    172188        Gravity = new Vector(0, -400); 
     189        Add(Layer.CreateStaticLayer()); // Valikon taustakuville staattinen layer 
    173190 
    174191        Timer ajastin = new Timer(); 
     
    191208            MuutaNopeutta(new Vector(1, 1)); 
    192209            lentokone.Image = lentokoneenKuvaKäännetty; 
    193             lentokone.ase.Angle = Angle.FromDegrees(0); ; 
     210            lentokone.ase.Angle = Angle.FromDegrees(0); 
     211            //if (!LentoAani.IsPlaying) 
     212            //    LentoAani.Play(); 
    194213        }, null); 
    195214        Keyboard.Listen(Key.Left, ButtonState.Down, delegate 
     
    198217            lentokone.Image = lentokoneenKuva; 
    199218            lentokone.ase.Angle = Angle.FromDegrees(180); 
     219            //if (!LentoAani.IsPlaying) 
     220            //    LentoAani.Play(); 
    200221        }, null); 
    201222        Keyboard.Listen(Key.Left, ButtonState.Released, PalautaPainovoima, null); 
    202         Keyboard.Listen(Key.Right, ButtonState.Released, PalautaPainovoima, null); 
     223        Keyboard.Listen(Key.Right, ButtonState.Released, PalautaPainovoima,  null); 
    203224        Keyboard.Listen(Key.Up, ButtonState.Down, MuutaKulmaa, null, new Vector(100.0, lentokoneenKaantymisNopeus)); 
    204225        Keyboard.Listen(Key.Down, ButtonState.Down, MuutaKulmaa, null, new Vector(100.0, -lentokoneenKaantymisNopeus)); 
    205226        Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "ammu", lentokone); 
    206         PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    207         Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     227        Keyboard.Listen(Key.Escape, ButtonState.Pressed, pauseRuutu, "Lopeta peli"); 
    208228        Keyboard.Listen(Key.K, ButtonState.Pressed, delegate { MessageDisplay.Add(lentokone.Angle.Degrees.ToString()); }, null); 
    209229        Keyboard.Listen(Key.Delete, ButtonState.Pressed, lentokone.Tuhoutui, null); 
     230        Keyboard.Listen(Key.R, ButtonState.Pressed, LataaAse, null); 
    210231    } 
    211232 
    212233    void MuutaNopeutta(Vector suunta) 
    213234    { 
    214         if (lentokone.Velocity.X > lentokoneenMaxNopeus || lentokone.Velocity.X < -lentokoneenMaxNopeus) 
     235        if (lentokone.Velocity.X > lentokone.TopSpeed || lentokone.Velocity.X < -lentokone.TopSpeed) 
    215236            return; 
    216237 
    217         //lentokone.Push(suunta); 
    218         lentokone.Push(Vector.ComponentProduct(Vector.FromLengthAndAngle(lentokoneenKiihdytysNopeus, lentokone.Angle), suunta)); 
     238        lentokone.Push(Vector.ComponentProduct(Vector.FromLengthAndAngle(lentokone.AccelerationSpeed, lentokone.Angle), suunta)); 
    219239        lentokone.IgnoresGravity = true; 
    220240    } 
     
    236256        taustaPilvet.Size = new Vector(600.0, 400.0); 
    237257        taustaPilvet.Position = paikka; 
    238         Add(taustaPilvet, 2); 
     258        Add(taustaPilvet, 1); 
    239259        Layers[-3].RelativeTransition = new Vector(0.3, 0.3); 
    240260 
     
    252272        { 
    253273            ammus.Destroy(); 
     274        } 
     275    } 
     276 
     277    void ReunaanTormattiin(PhysicsObject reuna, PhysicsObject tormaaja) 
     278    { 
     279        if (reuna.Tag.ToString() == "vasen") 
     280        { 
     281            Vector nopeus = tormaaja.Velocity; 
     282            tormaaja.Position = new Vector(Level.Right - tormaaja.Width * 2, tormaaja.Y); 
     283            tormaaja.Velocity = nopeus; 
     284        } 
     285 
     286        if (reuna.Tag.ToString() == "oikea") 
     287        { 
     288            Vector nopeus = tormaaja.Velocity; 
     289            tormaaja.Position = new Vector(Level.Left + tormaaja.Width * 2, tormaaja.Y); 
     290            tormaaja.Velocity = nopeus; 
    254291        } 
    255292    } 
     
    288325    { 
    289326        Timer.SingleShot(5, AloitaRound); 
     327        laskuTeksti = new GameObject(360, 100); 
     328        laskuTekstiAnimaatio = LoadAnimation("Round alkaa"); 
     329        laskuTeksti.Animation = new Animation(laskuTekstiAnimaatio); 
     330        laskuTeksti.Animation.Start(1); 
     331        laskuTeksti.Animation.Played += delegate { laskuTeksti.Destroy(); }; 
     332        Add(laskuTeksti, 4); 
     333        //Layers[3].RelativeTransition = new Vector(0.0, 0.0); 
     334        //Layer. 
     335 
     336        //laskuTeksti.Position = new Vector(0.0, Camera.ScreenToWorld(new Vector(0.0, Screen.Bottom)).Y + laskuTeksti.Height / 2 + 100); 
     337        laskuTeksti.Position = new Vector(0.0, Screen.Bottom + 100); 
     338 
     339         
     340        
    290341    } 
    291342 
    292343    public void AloitaRound() 
    293344    { 
     345        kierrosMittari.Value++; 
     346        taustaAani.Stop(); 
    294347        pahiksetKentalla.Clear(); 
    295  
     348         
    296349        round++; 
    297350        const int KONEITA_ALUSSA = 2; 
    298  
     351         
    299352        int koneitaRoundilla = KONEITA_ALUSSA + round / 5; 
    300353        int ampumisProsentti = round * 2; 
     
    354407            kone.Elamat.Value -= 5; 
    355408    } 
     409 
     410    /*protected override void Update(Time time) 
     411    { 
     412        if (laskuTeksti != null && laskuTeksti.IsAddedToGame == true) 
     413        { 
     414            laskuTeksti.Position = new Vector(0.0, Camera.ScreenToWorld(new Vector(0.0, Screen.Bottom)).Y + laskuTeksti.Height / 2 + 50); 
     415        } 
     416        base.Update(time); 
     417    }*/ 
     418    void pauseRuutu() 
     419    { 
     420        MultiSelectWindow pauseRuutu = new MultiSelectWindow("War In The Sky", "Back", 
     421         "Shop", "End Game"); 
     422        Add(pauseRuutu); 
     423        pauseRuutu.ActiveColor = Color.Transparent; 
     424        pauseRuutu.SetButtonColor(Color.Transparent); 
     425        pauseRuutu.SelectionColor = Color.Brown; 
     426        pauseRuutu.DefaultCancel = 0; 
     427        pauseRuutu.AddItemHandler(0, delegate { Peli.Pause(); }); 
     428        pauseRuutu.AddItemHandler(1, delegate { LuoKauppa(); }); 
     429        pauseRuutu.AddItemHandler(2, Exit); 
     430        if (!IsPaused) 
     431            Peli.Pause(); 
     432 
     433        GameObject valikkoTausta = new GameObject(340, 400); 
     434        valikkoTausta.Image = LoadImage("Alku valikko"); 
     435        Add(valikkoTausta, 4); 
     436        valikkoTausta.Position = Screen.Center; 
     437        Mouse.IsCursorVisible = false; 
     438        //alkuValikko.AddItemHandler(1, d); 
     439        pauseRuutu.AddItemHandler(0, delegate { valikkoTausta.Destroy(); }); 
     440        pauseRuutu.AddItemHandler(1, delegate { valikkoTausta.Destroy(); }); 
     441    } 
     442 
     443    void LuoKauppa() 
     444    { 
     445        MultiSelectWindow kauppa = new MultiSelectWindow("Shop", 
     446            "Health (level " + (lentokone.ElamaLevel + 1) + "): " + Lentokone.BASE_UPGRADE_COST * lentokone.ElamaLevel, 
     447            "Fire rate (level " + (lentokone.FireRateLevel + 1) + "): " + Lentokone.BASE_UPGRADE_COST * lentokone.FireRateLevel, 
     448            "Ammo (level " + (lentokone.AmmoLevel + 1) + "): " + Lentokone.BASE_UPGRADE_COST * lentokone.AmmoLevel, 
     449            "Acceleration (level " + (lentokone.AccelerationLevel + 1) + "): " + Lentokone.BASE_UPGRADE_COST * lentokone.AccelerationLevel, 
     450            "Top speed (level " + (lentokone.TopSpeedLevel + 1) + "): " + Lentokone.BASE_UPGRADE_COST * lentokone.TopSpeedLevel, 
     451            "Back"); 
     452        kauppa.ActiveColor = Color.Transparent; 
     453        kauppa.SetButtonColor(Color.Transparent); 
     454        kauppa.SelectionColor = Color.Brown; 
     455        kauppa.DefaultCancel = 5; 
     456        Add(kauppa); 
     457 
     458        GameObject valikkoTausta = new GameObject(340, 400); 
     459        valikkoTausta.Image = LoadImage("Alku valikko"); 
     460        Add(valikkoTausta, 4); 
     461        valikkoTausta.Position = Screen.Center; 
     462        Mouse.IsCursorVisible = false; 
     463        kauppa.ItemSelected += delegate(int i) { OstettiinKaupasta(i, valikkoTausta); }; 
     464        kauppa.ItemSelected += delegate(int i) { if (!valikkoTausta.IsDestroyed) valikkoTausta.Destroy(); }; 
     465    } 
     466 
     467    void OstettiinKaupasta(int valinta, GameObject valikkoTausta) 
     468    { 
     469        int hinta; 
     470        valikkoTausta.Destroy(); 
     471 
     472        switch (valinta) 
     473        { 
     474            case 0: 
     475                hinta = Lentokone.BASE_UPGRADE_COST * lentokone.ElamaLevel; 
     476                if (lentokone.HasEnoughScore(hinta)) 
     477                { 
     478                    lentokone.Pisteet.Value -= hinta; 
     479                    lentokone.ElamaLevel++; 
     480                    lentokone.Elamat.MaxValue += Lentokone.HEALTH_UPGRADE_AMOUNT; 
     481                } 
     482                LuoKauppa(); 
     483                break; 
     484            case 1: 
     485                hinta = Lentokone.BASE_UPGRADE_COST * lentokone.FireRateLevel; 
     486                if (lentokone.HasEnoughScore(hinta)) 
     487                { 
     488                    lentokone.Pisteet.Value -= hinta; 
     489                    lentokone.FireRateLevel++; 
     490                    lentokone.FireRate += Lentokone.FIRE_RATE_UPGRADE_AMOUNT; 
     491                } 
     492                LuoKauppa(); 
     493                break; 
     494            case 2: 
     495                hinta = Lentokone.BASE_UPGRADE_COST * lentokone.AmmoLevel; 
     496                if (lentokone.HasEnoughScore(hinta)) 
     497                { 
     498                    lentokone.Pisteet.Value -= hinta; 
     499                    lentokone.AmmoLevel++; 
     500                    lentokone.Ammo += Lentokone.AMMO_UPGRADE_AMOUNT; 
     501                } 
     502                LuoKauppa(); 
     503                break; 
     504            case 3: 
     505                hinta = Lentokone.BASE_UPGRADE_COST * lentokone.AccelerationLevel; 
     506                if (lentokone.HasEnoughScore(hinta)) 
     507                { 
     508                    lentokone.Pisteet.Value -= hinta; 
     509                    lentokone.AccelerationLevel++; 
     510                    lentokone.AccelerationSpeed += Lentokone.ACCELERATION_UPGRADE_AMOUNT; 
     511                } 
     512                LuoKauppa(); 
     513                break; 
     514            case 4: 
     515                hinta = Lentokone.BASE_UPGRADE_COST * lentokone.TopSpeedLevel; 
     516                if (lentokone.HasEnoughScore(hinta)) 
     517                { 
     518                    lentokone.Pisteet.Value -= hinta; 
     519                    lentokone.TopSpeedLevel++; 
     520                    lentokone.TopSpeed += Lentokone.TOP_SPEED_UPGRADE_AMOUNT; 
     521                } 
     522                LuoKauppa(); 
     523                break; 
     524            case 5: 
     525                pauseRuutu();                 
     526                break; 
     527            default: 
     528                pauseRuutu();    
     529                break; 
     530        } 
     531    } 
     532 
     533    void painettiinValikonNappi(int valinta) 
     534    { 
     535        switch (valinta) 
     536        { 
     537 
     538 
     539 
     540            case 0: 
     541 
     542                break; 
     543 
     544            default: 
     545                Exit(); 
     546                break; 
     547        } 
     548    } 
     549 
     550    void LataaAse() 
     551    { 
     552        if (latausTeksti == null) 
     553        { 
     554            Image AmmonLataus = LoadImage("Loading Ammo"); 
     555 
     556            latausTeksti = new GameObject(200, 50); 
     557            latausTeksti.Image = AmmonLataus; 
     558            latausTeksti.Position = new Vector(0.0, Screen.Top - 50); 
     559            Add(latausTeksti, 4); 
     560        } 
     561 
     562        latausTeksti.IsVisible = true; 
     563        LatausAani.Play(); 
     564        Timer.SingleShot(5.0, lentokone.LataaAmmo); 
     565        Timer.SingleShot(5.0, delegate { latausTeksti.IsVisible = false; }); 
     566    } 
     567    void KierrosMittari() 
     568    { 
     569 
     570         
     571        kierrosMittari = new IntMeter(0); 
     572        Label kierrosnaytto = new Label(); 
     573        kierrosnaytto.X = Level.Left + 100 ; 
     574        kierrosnaytto.Y = Level.Top - 25; 
     575        kierrosnaytto.Title = "Round"; 
     576        kierrosnaytto.BindTo(kierrosMittari); 
     577        Add(kierrosnaytto); 
     578        kierrosnaytto.Font = courier; 
     579 
     580    } 
    356581} 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/War_in_the_sky.csproj.Debug.cachefile

    r4963 r5002  
    2121Content\helttipalkki_taysi.xnb 
    2222Content\helttipalkki_tyhja.xnb 
     23Content\Round alkaa.xnb 
     24Content\Round alkaa\cooltext1602195720_0.xnb 
     25Content\Round alkaa\cooltext1602196941_0.xnb 
     26Content\Round alkaa\cooltext1602197344_0.xnb 
     27Content\Round alkaa\cooltext1602197672_0.xnb 
     28Content\Round alkaa\cooltext1602198024_0.xnb 
     29Content\Game_Over_sound_effect.xnb 
     30Content\Courier.xnb 
     31Content\Game Over sound effect33.xnb 
     32Content\War Music (Epic Instrumental)_leikattu.xnb 
     33Content\Lock.xnb 
     34Content\lentsikka lentÀÀ.xnb 
     35Content\Loading Ammo.xnb 
     36Content\Game Over sound effect33.wma 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/obj/x86/Debug/ContentPipeline-{513E9BF6-92B1-4B3B-AD5A-0D180EA61427}.xml

    r4963 r5002  
    199199      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\helttipalkki_tyhja.xnb</Output> 
    200200      <Time>2014-06-11T13:22:29.6891086+03:00</Time> 
     201    </Item> 
     202    <Item> 
     203      <Source>Round alkaa.anim</Source> 
     204      <Name>Round alkaa</Name> 
     205      <Importer>AnimationImporter</Importer> 
     206      <Processor>AnimationContentProcessor</Processor> 
     207      <Options>None</Options> 
     208      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa.xnb</Output> 
     209      <Time>2014-06-12T09:38:32.7296825+03:00</Time> 
     210      <Request>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602195720_0.xnb</Request> 
     211      <Request>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602196941_0.xnb</Request> 
     212      <Request>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602197344_0.xnb</Request> 
     213      <Request>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602197672_0.xnb</Request> 
     214      <Request>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602198024_0.xnb</Request> 
     215    </Item> 
     216    <Item> 
     217      <Source>Round alkaa\cooltext1602195720.png</Source> 
     218      <Importer>TextureImporter</Importer> 
     219      <Processor>TextureProcessor</Processor> 
     220      <Options>None</Options> 
     221      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602195720_0.xnb</Output> 
     222      <Time>2014-06-11T13:42:24+03:00</Time> 
     223    </Item> 
     224    <Item> 
     225      <Source>Round alkaa\cooltext1602196941.png</Source> 
     226      <Importer>TextureImporter</Importer> 
     227      <Processor>TextureProcessor</Processor> 
     228      <Options>None</Options> 
     229      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602196941_0.xnb</Output> 
     230      <Time>2014-06-11T13:42:36+03:00</Time> 
     231    </Item> 
     232    <Item> 
     233      <Source>Round alkaa\cooltext1602197344.png</Source> 
     234      <Importer>TextureImporter</Importer> 
     235      <Processor>TextureProcessor</Processor> 
     236      <Options>None</Options> 
     237      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602197344_0.xnb</Output> 
     238      <Time>2014-06-11T13:42:46+03:00</Time> 
     239    </Item> 
     240    <Item> 
     241      <Source>Round alkaa\cooltext1602197672.png</Source> 
     242      <Importer>TextureImporter</Importer> 
     243      <Processor>TextureProcessor</Processor> 
     244      <Options>None</Options> 
     245      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602197672_0.xnb</Output> 
     246      <Time>2014-06-11T13:42:56+03:00</Time> 
     247    </Item> 
     248    <Item> 
     249      <Source>Round alkaa\cooltext1602198024.png</Source> 
     250      <Importer>TextureImporter</Importer> 
     251      <Processor>TextureProcessor</Processor> 
     252      <Options>None</Options> 
     253      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602198024_0.xnb</Output> 
     254      <Time>2014-06-11T13:43:10+03:00</Time> 
     255    </Item> 
     256    <Item> 
     257      <Source>Game_Over_sound_effect.wav</Source> 
     258      <Name>Game_Over_sound_effect</Name> 
     259      <Importer>WavImporter</Importer> 
     260      <Processor>SoundEffectProcessor</Processor> 
     261      <Options>None</Options> 
     262      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Game_Over_sound_effect.xnb</Output> 
     263      <Time>2014-06-12T12:39:29.2185218+03:00</Time> 
     264    </Item> 
     265    <Item> 
     266      <Source>Courier.spritefont</Source> 
     267      <Name>Courier</Name> 
     268      <Importer>FontDescriptionImporter</Importer> 
     269      <Processor>FontDescriptionProcessor</Processor> 
     270      <Options>None</Options> 
     271      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Courier.xnb</Output> 
     272      <Time>2014-06-12T12:44:45.1081829+03:00</Time> 
     273    </Item> 
     274    <Item> 
     275      <Source>Game Over sound effect33.mp3</Source> 
     276      <Name>Game Over sound effect33</Name> 
     277      <Importer>Mp3Importer</Importer> 
     278      <Processor>SongProcessor</Processor> 
     279      <Options>None</Options> 
     280      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Game Over sound effect33.xnb</Output> 
     281      <Extra>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Game Over sound effect33.wma</Extra> 
     282      <Time>2014-06-12T12:37:25.9100418+03:00</Time> 
     283    </Item> 
     284    <Item> 
     285      <Source>War Music (Epic Instrumental)_leikattu.wav</Source> 
     286      <Name>War Music (Epic Instrumental)_leikattu</Name> 
     287      <Importer>WavImporter</Importer> 
     288      <Processor>SoundEffectProcessor</Processor> 
     289      <Options>None</Options> 
     290      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Music (Epic Instrumental)_leikattu.xnb</Output> 
     291      <Time>2014-06-12T14:20:36.6741837+03:00</Time> 
     292    </Item> 
     293    <Item> 
     294      <Source>Lock.wav</Source> 
     295      <Name>Lock</Name> 
     296      <Importer>WavImporter</Importer> 
     297      <Processor>SoundEffectProcessor</Processor> 
     298      <Options>None</Options> 
     299      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Lock.xnb</Output> 
     300      <Time>2014-06-12T14:53:28.1221837+03:00</Time> 
     301    </Item> 
     302    <Item> 
     303      <Source>lentsikka lentää.wav</Source> 
     304      <Name>lentsikka lentää</Name> 
     305      <Importer>WavImporter</Importer> 
     306      <Processor>SoundEffectProcessor</Processor> 
     307      <Options>None</Options> 
     308      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\lentsikka lentää.xnb</Output> 
     309      <Time>2014-06-12T14:53:31.7481837+03:00</Time> 
     310    </Item> 
     311    <Item> 
     312      <Source>Loading Ammo.png</Source> 
     313      <Name>Loading Ammo</Name> 
     314      <Importer>TextureImporter</Importer> 
     315      <Processor>TextureProcessor</Processor> 
     316      <Options>None</Options> 
     317      <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Loading Ammo.xnb</Output> 
     318      <Time>2014-06-12T14:54:43.6468862+03:00</Time> 
    201319    </Item> 
    202320    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/obj/x86/Debug/War_in_the_sky.csproj.FileListAbsolute.txt

    r4963 r5002  
    2929C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\helttipalkki_taysi.xnb 
    3030C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\helttipalkki_tyhja.xnb 
     31C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa.xnb 
     32C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602195720_0.xnb 
     33C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602196941_0.xnb 
     34C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602197344_0.xnb 
     35C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602197672_0.xnb 
     36C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Round alkaa\cooltext1602198024_0.xnb 
     37C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Game_Over_sound_effect.xnb 
     38C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Courier.xnb 
     39C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Game Over sound effect33.xnb 
     40C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Game Over sound effect33.wma 
     41C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Music (Epic Instrumental)_leikattu.xnb 
     42C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Lock.xnb 
     43C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\lentsikka lentÀÀ.xnb 
     44C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Loading Ammo.xnb 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/obj/x86/Debug/cachefile-{513E9BF6-92B1-4B3B-AD5A-0D180EA61427}-targetpath.txt

    r4963 r5002  
    2121Content\helttipalkki_taysi.xnb 
    2222Content\helttipalkki_tyhja.xnb 
     23Content\Round alkaa.xnb 
     24Content\Round alkaa\cooltext1602195720_0.xnb 
     25Content\Round alkaa\cooltext1602196941_0.xnb 
     26Content\Round alkaa\cooltext1602197344_0.xnb 
     27Content\Round alkaa\cooltext1602197672_0.xnb 
     28Content\Round alkaa\cooltext1602198024_0.xnb 
     29Content\Game_Over_sound_effect.xnb 
     30Content\Courier.xnb 
     31Content\Game Over sound effect33.xnb 
     32Content\Game Over sound effect33.wma 
     33Content\War Music (Epic Instrumental)_leikattu.xnb 
     34Content\Lock.xnb 
     35Content\lentsikka lentÀÀ.xnb 
     36Content\Loading Ammo.xnb 
  • 2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_skyContent/War_in_the_skyContent.contentproj

    r4963 r5002  
    165165    </Compile> 
    166166  </ItemGroup> 
     167  <ItemGroup> 
     168    <Compile Include="Round alkaa.anim"> 
     169      <Name>Round alkaa</Name> 
     170      <Importer>AnimationImporter</Importer> 
     171      <Processor>AnimationContentProcessor</Processor> 
     172    </Compile> 
     173  </ItemGroup> 
     174  <ItemGroup> 
     175    <Compile Include="Game Over sound effect33.mp3"> 
     176      <Name>Game Over sound effect33</Name> 
     177      <Importer>Mp3Importer</Importer> 
     178      <Processor>SongProcessor</Processor> 
     179    </Compile> 
     180  </ItemGroup> 
     181  <ItemGroup> 
     182    <Compile Include="Game_Over_sound_effect.wav"> 
     183      <Name>Game_Over_sound_effect</Name> 
     184      <Importer>WavImporter</Importer> 
     185      <Processor>SoundEffectProcessor</Processor> 
     186    </Compile> 
     187  </ItemGroup> 
     188  <ItemGroup> 
     189    <Compile Include="Courier.spritefont"> 
     190      <Name>Courier</Name> 
     191      <Importer>FontDescriptionImporter</Importer> 
     192      <Processor>FontDescriptionProcessor</Processor> 
     193      <SubType>Designer</SubType> 
     194    </Compile> 
     195  </ItemGroup> 
     196  <ItemGroup> 
     197    <Compile Include="War Music %28Epic Instrumental%29_leikattu.wav"> 
     198      <Name>War Music %28Epic Instrumental%29_leikattu</Name> 
     199      <Importer>WavImporter</Importer> 
     200      <Processor>SoundEffectProcessor</Processor> 
     201    </Compile> 
     202  </ItemGroup> 
     203  <ItemGroup> 
     204    <Compile Include="Lock.wav"> 
     205      <Name>Lock</Name> 
     206      <Importer>WavImporter</Importer> 
     207      <Processor>SoundEffectProcessor</Processor> 
     208    </Compile> 
     209  </ItemGroup> 
     210  <ItemGroup> 
     211    <Compile Include="lentsikka lentää.wav"> 
     212      <Name>lentsikka lentää</Name> 
     213      <Importer>WavImporter</Importer> 
     214      <Processor>SoundEffectProcessor</Processor> 
     215    </Compile> 
     216  </ItemGroup> 
     217  <ItemGroup> 
     218    <Compile Include="Loading Ammo.png"> 
     219      <Name>Loading Ammo</Name> 
     220      <Importer>TextureImporter</Importer> 
     221      <Processor>TextureProcessor</Processor> 
     222    </Compile> 
     223  </ItemGroup> 
    167224  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    168225  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.