Changeset 6375


Ignore:
Timestamp:
2015-06-25 15:01:01 (8 years ago)
Author:
tihaapas
Message:

nuin

Location:
2015/26/TimoH
Files:
345 added
10 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli.cs

    r6259 r6375  
    99public class Dogen_mlg_peli : PhysicsGame 
    1010{ 
    11     const double nopeus = 1500; 
    12     const double hyppyNopeus = 5000; 
     11    const double nopeus = 750; 
     12    const double hyppyNopeus = 1000; 
    1313    const int RUUDUN_KOKO = 40; 
    1414    
     
    4141    { 
    4242        TileMap kentta = TileMap.FromLevelAsset("kentta1"); 
    43         kentta.SetTileMethod('#', LisaaTaso); 
     43        kentta.SetTileMethod('o', LisaaTaso); 
    4444        kentta.SetTileMethod('*', LisaaTahti); 
    4545        kentta.SetTileMethod('N', LisaaPelaaja); 
     
    7474        pelaaja1 = new PlatformCharacter(leveys, korkeus); 
    7575        pelaaja1.Position = paikka; 
    76         pelaaja1.Mass = 100.0; 
     76        pelaaja1.Mass = 1.0; 
    7777        pelaaja1.Image = pelaajanKuva; 
    7878        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     
    112112    void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 
    113113    { 
    114         maaliAani.Play(); 
    115         MessageDisplay.Add("Keräsit weedin snoopille!"); 
     114        //maaliAani.Play(); 
     115        MessageDisplay.Add("sait yhden weed!"); 
    116116        tahti.Destroy(); 
     117        Explosion rajahdus = new Explosion(tahti.Width); 
     118        //rajahdus.Sound =  
     119        rajahdus.Position = tahti.Position; 
     120        Add(rajahdus); 
    117121    } 
    118122} 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peli/obj/x86/Debug/ContentPipeline-{ED25AC30-B3E1-4214-B22C-FBA6950349B1}.xml

    r6259 r6375  
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\TimoH\TimoH\Dogen_mlg_peli\Dogen_mlg_peli\Dogen_mlg_peli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    47       <Time>2015-06-24T14:07:31.2983557+03:00</Time> 
     47      <Time>2015-06-25T14:05:50.0937409+03:00</Time> 
    4848    </Item> 
    4949    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/26/TimoH/Dogen_mlg_peli/Dogen_mlg_peli/Dogen_mlg_peliContent/kentta1.txt

    r6259 r6375  
    1 .........*......................... 
    2 .........##........................ 
    3 ...................##.............. 
    4 .......*....*...................... 
    5 .......##..##...................... 
    6 ...................##.............. 
    7 .....*...*....*.................... 
    8 .....##..##..##.................... 
    9 ....................*.............. 
    10 ...*....*..*....*..##.............. 
    11 ...##..##..##..##......##.......... 
    12 ..............................*.... 
    13 .*....*.......*...*......*....##.... 
    14 .##..##..##..##..##....##.......... 
    15 ................................... 
    16 ........N.......................... 
    17 ################################### 
     1ooooooooooooooooooooooooooooooooooooooo 
     2o.....................................o 
     3o.....................................o 
     4o.....................................o 
     5o.....................................o 
     6o.....................................o 
     7o.....................................o 
     8o.....................................o 
     9o.................**..................o 
     10o.................oo..................o 
     11o.....................................o 
     12o.....................................o 
     13o.........**.............**...........o 
     14o.........oo.............oo...........o 
     15o.....................................o 
     16o.....................................o 
     17o...**...........**.................. o 
     18o...oo...........oo...................o 
     19o................**..........**.......o 
     20o......**........oo..........oo.......o 
     21o......oo.............................o 
     22o*........**.........**..........**...o 
     23ooo........oo.........oo..........oo..o 
     24o...**......................**........o 
     25o...oo......................oo........o 
     26o.............N.......................o 
     27ooooooooooooooooooooooooooooooooooooooo 
Note: See TracChangeset for help on using the changeset viewer.