Changeset 8987


Ignore:
Timestamp:
2017-07-07 11:02:33 (6 years ago)
Author:
npo17_41
Message:
 
Location:
2017/27/OskariL
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2017/27/OskariL/testiasdf/testiasdf/testiasdf/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8942 r8987  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\OskariL\testiasdf\testiasdf\testiasdf\bin\x86\Debug\Content\1.xnb</Output> 
    38       <Time>2017-07-04T10:22:43.3836281+03:00</Time> 
     38      <Time>2017-07-07T09:57:40.7963492+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\OskariL\testiasdf\testiasdf\testiasdf\bin\x86\Debug\Content\2.xnb</Output> 
    47       <Time>2017-07-04T10:49:51.5094385+03:00</Time> 
     47      <Time>2017-07-07T09:55:55.6763294+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5454      <Options>None</Options> 
    5555      <Output>C:\MyTemp\OskariL\testiasdf\testiasdf\testiasdf\bin\x86\Debug\Content\3.xnb</Output> 
    56       <Time>2017-07-05T11:47:13.8055652+03:00</Time> 
     56      <Time>2017-07-07T09:52:45.1220368+03:00</Time> 
    5757    </Item> 
    5858    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/27/OskariL/testiasdf/testiasdf/testiasdf/testiasdf.cs

    r8942 r8987  
    1919 
    2020    PhysicsObject taso; 
     21    PhysicsObject taso2; 
    2122    PhysicsObject ammus; 
    2223    PhysicsObject maali; 
     
    126127        kentta.SetTileMethod('P', LisaaTaso); 
    127128        kentta.SetTileMethod('A', LisaaTahti); 
     129        kentta.SetTileMethod('M', LisaaViolettiPalikka); 
    128130        kentta.SetTileMethod('N', LisaaPelaaja); 
    129131        kentta.SetTileMethod('O', LisaaMaali); 
     
    133135        Level.CreateHorizontalBorders(1,false, Color.Azure); 
    134136        Level.Background.CreateStars(1000); 
    135         Light valo = new Light(); 
    136         valo.Intensity = 1.0; 
    137         valo.Distance = 150; 
    138         valo.X = -300.0; 
    139         valo.Y = Level.Top - 100; 
    140         Add(valo); 
    141  
    142137 
    143138        LoadSoundEffect("maali"); 
     
    148143        taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    149144        taso.Position = paikka; 
    150         taso.Color = Color.Azure; 
     145        taso.Color = Color.Purple; 
    151146        taso.Tag = "taso"; 
    152         taso.Oscillate(new Vector(leveys, korkeus*2), 35, 0.7, 0, 0); 
     147        taso.Oscillate(new Vector(leveys, -korkeus*2), 35, 0.7, 0, 0); 
    153148        taso.CollisionIgnoreGroup = 1; 
    154149        Add(taso); 
     
    163158        Add(maali); 
    164159    } 
     160    void LisaaViolettiPalikka(Vector paikka, double leveys, double korkeus) 
     161    { 
     162        taso2 = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     163        taso2.Position = paikka; 
     164        taso2.Color = Color.Azure; 
     165        taso2.Tag = "taso"; 
     166        taso2.Oscillate(new Vector(leveys * 2, korkeus), 60, 0.35, 0, 0); 
     167        taso2.CollisionIgnoreGroup = 1; 
     168        Add(taso2); 
     169    } 
    165170    void LisaaTahti(Vector paikka, double leveys, double korkeus) 
    166171    { 
     
    168173        PhysicsObject tahti = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    169174        tahti.Position = paikka; 
    170         tahti.Color = Color.BloodRed; 
    171         tahti.Tag = "tahti"; 
     175        tahti.Color = Color.Crimson; 
     176        tahti.Tag = "taso"; 
    172177        tahti.Oscillate(new Vector(300, 100), 55, 0.65, 0, 0); 
    173  
    174178 
    175179        Add(tahti); 
     
    205209        if(pelaaja1.Bottom < Level.Bottom + 20) 
    206210        { 
    207             Explosion rajahdys = new Explosion(100); 
     211            Explosion rajahdys = new Explosion(300); 
    208212            rajahdys.Position = pelaaja1.Position; 
     213            rajahdys.Image = null; 
     214            rajahdys.Color = Color.ForestGreen; 
    209215            Add(rajahdys); 
    210216            pelaaja1.Destroy(); 
     
    213219        else if(pelaaja1.Top > Level.Top) 
    214220        { 
    215             Explosion rajahdys = new Explosion(100); 
     221            Explosion rajahdys = new Explosion(300); 
    216222            rajahdys.Position = pelaaja1.Position; 
     223            rajahdys.Image = null; 
     224            rajahdys.Color = Color.ForestGreen; 
    217225            Add(rajahdys); 
    218226            pelaaja1.Destroy(); 
     
    280288        Add(ammus); 
    281289 
    282         Vector vauhti = new Vector(1000, -500); 
     290        Vector vauhti = new Vector(800, 0); 
    283291        ammus.Hit(vauhti);        
    284292    } 
     
    286294    { 
    287295 
    288         Explosion rajahdys = new Explosion(100); 
     296        Explosion rajahdys = new Explosion(150); 
    289297        rajahdys.Position = ammus.Position; 
     298        rajahdys.Color = Color.ForestGreen; 
     299        rajahdys.Image = null; 
    290300        Add(rajahdys); 
    291301        ammus.Destroy(); 
     
    298308    void Hyppaa(PlatformCharacter hahmo, double nopeus) 
    299309    { 
    300         if (pelaajanhypyt => 0) 
     310        if (pelaajanhypyt >= 0) 
    301311        { 
    302312            hahmo.ForceJump(nopeus); 
  • 2017/27/OskariL/testiasdf/testiasdf/testiasdfContent/1.txt

    r8886 r8987  
    1 ........P......................... 
    2 ......A....P...P....P...P....P.... 
    3 ...P....P.P.A..P.P.P..A..P..A.P... 
    4 .A..A..P.P.A....A...P..P..PA..P..P 
    5 ..P...P.A.......P...P....P......A. 
    6 .A..P......A.P.P.A....P.....O..P.. 
    7 P..A..A...APA.AP..P.....P.P..A.... 
    8 ..P..PP....P.A...P..P.A.P..P...... 
    9 .....P.N...P..PA...P..P.....A..... 
    10 .P....PPP............P..A......... 
    11 ...P...P...P..AA...A.AAPP......... 
     1        P 
     2      A    P   P    P   P    P     
     3   P    P P A  M P M  A  M  A P 
     4 A  A  M A A    A   M  M  PM  M  P 
     5  P   P M       M   P    P      A 
     6 A  M      A M M A    M     O  M 
     7P  A  M   AMP AM  MP     P M  M 
     8  P  PP    P A   M  PM AA  P 
     9     P N   M  MA   P  P     A 
     10 P    PPP            P  A 
     11   P   M   P  AM   M MMPP 
  • 2017/27/OskariL/testiasdf/testiasdf/testiasdfContent/2.txt

    r8886 r8987  
    1          A 
    2  A   P AA    A     P    P 
    3         A     P     A   A   A 
    4      A          AP    PA  P  A 
    5   A      AP AA    P        O P  P 
    6        N       A    A P   A   A 
    7     A  P  A    AP  P   A  AP P 
    8   A    A  PP  PA AA AA  A  AP   A 
    9     P    P   P  P   P   P   P 
    10   P    AA  A   P       A     A 
    11   A  P    P    P A        P   A 
     1         P 
     2 A   P MM    A     P    P 
     3        A     M     A   A   A 
     4     A          AP    M  M  A 
     5  M      AP MM    M        O P  P 
     6       N       A      P   A   M 
     7    M  P  A    MP  P  M A  AP 
     8  A    M  MM  PA PM MA  M  MM   A 
     9    M    M   P  P   P   P   P 
     10  P    MA  P   M  M   A  M  M 
     11  A  P    P    P A  M     P   A 
  • 2017/27/OskariL/testiasdf/testiasdf/testiasdfContent/3.txt

    r8942 r8987  
    11            A                   P 
    22            P    P       A 
    3    A PA     AA  P P A           P 
    4    P P  A  A A   A   AA   P A       A 
    5     P  N             P   P     P A 
    6    AA  A   APAA PP    AAA     P  AA 
    7      A  AA            AP        O   
    8       A   A AA A PA      P P  AA   A P 
    9        A    P    A   A A 
     3   A PA     PM   P P A           P 
     4   P P  A  M A   M   MA   P A       A 
     5    M  N             P   P     P A 
     6   AA  A   APAM MP    M A     A  MM 
     7     A  MA            A M     O   
     8      A   A MP A PA      M P  MA   A P 
     9       A    P    A   M A 
    1010         P    P A    AP  A  A      P 
    1111                P A     A   P  PA P 
Note: See TracChangeset for help on using the changeset viewer.