Changeset 5591 for 2014/30


Ignore:
Timestamp:
2014-07-23 14:56:18 (9 years ago)
Author:
lailrant
Message:
 
Location:
2014/30/LauriR
Files:
30 added
1 deleted
26 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/LauriR/OmaPeli/OmaPeli/OmaPeli/OmaPeli.cs

    r5544 r5591  
    1717    Image pelaajanKuva = LoadImage("norsu"); 
    1818    Image tahtiKuva = LoadImage("tahti"); 
    19     Image kranaatti = LoadImage("grenade"); 
    2019 
    2120    SoundEffect maaliAani = LoadSoundEffect("maali"); 
  • 2014/30/LauriR/OmaPeli/OmaPeli/OmaPeliContent/OmaPeliContent.contentproj

    r5544 r5591  
    6767    </Compile> 
    6868  </ItemGroup> 
    69   <ItemGroup> 
    70     <Compile Include="grenade.png"> 
    71       <Name>grenade</Name> 
    72       <Importer>TextureImporter</Importer> 
    73       <Processor>TextureProcessor</Processor> 
    74     </Compile> 
    75   </ItemGroup> 
    7669  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7770  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2014/30/LauriR/Pong/Pong/Pong/Pong.cs

    r5544 r5591  
    181181    } 
    182182 
    183     const double PALLON_MIN_NOPEUS = 500; 
     183    const double PALLON_MIN_NOPEUS = 0; 
    184184 
    185185    protected override void Update(Time time) 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/ContentPipeline-{D6EAC6A9-8675-4ACB-8A67-C6CE954765FB}.xml

    r5572 r5591  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2014-07-23T11:01:05.2594188+03:00</Time> 
     38      <Time>2014-07-23T14:30:13.3325482+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    100100      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kuva7.xnb</Output> 
    101101      <Time>2014-07-23T10:47:09.8748887+03:00</Time> 
     102    </Item> 
     103    <Item> 
     104      <Source>doge.png</Source> 
     105      <Name>doge</Name> 
     106      <Importer>TextureImporter</Importer> 
     107      <Processor>TextureProcessor</Processor> 
     108      <Options>None</Options> 
     109      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\doge.xnb</Output> 
     110      <Time>2014-07-23T12:11:21.6154598+03:00</Time> 
     111    </Item> 
     112    <Item> 
     113      <Source>sieni1.jpg</Source> 
     114      <Name>sieni1</Name> 
     115      <Importer>TextureImporter</Importer> 
     116      <Processor>TextureProcessor</Processor> 
     117      <Options>None</Options> 
     118      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni1.xnb</Output> 
     119      <Time>2014-07-23T12:45:21.5474326+03:00</Time> 
     120    </Item> 
     121    <Item> 
     122      <Source>kissa.png</Source> 
     123      <Name>kissa</Name> 
     124      <Importer>TextureImporter</Importer> 
     125      <Processor>TextureProcessor</Processor> 
     126      <Options>None</Options> 
     127      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kissa.xnb</Output> 
     128      <Time>2014-07-23T13:48:50.8543252+03:00</Time> 
     129    </Item> 
     130    <Item> 
     131      <Source>sienii.jpg</Source> 
     132      <Name>sienii</Name> 
     133      <Importer>TextureImporter</Importer> 
     134      <Processor>TextureProcessor</Processor> 
     135      <Options>None</Options> 
     136      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sienii.xnb</Output> 
     137      <Time>2014-07-23T13:02:59.1131786+03:00</Time> 
     138    </Item> 
     139    <Item> 
     140      <Source>sieni.png</Source> 
     141      <Name>sieni</Name> 
     142      <Importer>TextureImporter</Importer> 
     143      <Processor>TextureProcessor</Processor> 
     144      <Options>None</Options> 
     145      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni.xnb</Output> 
     146      <Time>2014-07-23T14:13:08.6420894+03:00</Time> 
     147    </Item> 
     148    <Item> 
     149      <Source>spikes.jpg</Source> 
     150      <Name>spikes</Name> 
     151      <Importer>TextureImporter</Importer> 
     152      <Processor>TextureProcessor</Processor> 
     153      <Options>None</Options> 
     154      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\spikes.xnb</Output> 
     155      <Time>2014-07-23T14:24:28.1610345+03:00</Time> 
    102156    </Item> 
    103157    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/cachefile-{D6EAC6A9-8675-4ACB-8A67-C6CE954765FB}-targetpath.txt

    r5572 r5591  
    1010Content\kuva6.xnb 
    1111Content\kuva7.xnb 
     12Content\doge.xnb 
     13Content\sieni1.xnb 
     14Content\kissa.xnb 
     15Content\sienii.xnb 
     16Content\sieni.xnb 
     17Content\spikes.xnb 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/tesohyppelytestaus.csproj.FileListAbsolute.txt

    r5572 r5591  
    1818C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kuva6.xnb 
    1919C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kuva7.xnb 
     20C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\doge.xnb 
     21C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni.xnb 
     22C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni1.xnb 
     23C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kissa.xnb 
     24C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sienii.xnb 
     25C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\spikes.xnb 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus.cs

    r5572 r5591  
    1616 
    1717    Image pelaajanKuva = LoadImage("kuva4"); 
    18  
     18    Image Sieni = LoadImage("sieni"); 
    1919    Image tahtiKuva = LoadImage("tahti"); 
     20    Image Kissa = LoadImage("kissa"); 
     21    Image Piikit = LoadImage("spikes"); 
    2022 
    2123    Image[] juoksukuvat = LoadImages("kuva7", "kuva6", "kuva5", "kuva4", "kuva3", "kuva2", "kuva1"); 
    2224    Image[] paikallaan = LoadImages("kuva4"); 
     25    Image[] hyppää = LoadImages("kuva4"); 
     26    Image[] putoaa = LoadImages("kuva7"); 
    2327 
    2428    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     29 
     30     
    2531 
    2632    public override void Begin() 
     
    4248        kentta.SetTileMethod('*', LisaaTahti); 
    4349        kentta.SetTileMethod('N', LisaaPelaaja); 
     50        kentta.SetTileMethod('S', LisaaSieni2); 
     51        kentta.SetTileMethod('K', LisaaKissa); 
     52        kentta.SetTileMethod('P', LisaaPiikit); 
    4453        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4554        Level.CreateBorders(); 
     
    5766    void LisaaTahti(Vector paikka, double leveys, double korkeus) 
    5867    { 
    59         PhysicsObject tahti = PhysicsObject.CreateStaticObject(leveys*0.3, korkeus*0.3); 
     68        PhysicsObject tahti = PhysicsObject.CreateStaticObject(leveys * 0.5, korkeus * 0.5); 
    6069        tahti.IgnoresCollisionResponse = true; 
    6170        tahti.Position = paikka; 
     
    7281        pelaaja1.Image = pelaajanKuva; 
    7382        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     83        AddCollisionHandler(pelaaja1, "sieni", TormaaSieneen); 
     84        AddCollisionHandler(pelaaja1, "kissa", TormaaKissaan); 
     85        AddCollisionHandler(pelaaja1, "spikes", TormaaPiikkeihin); 
    7486        Add(pelaaja1); 
    7587        pelaaja1.AnimWalk = new Animation(juoksukuvat); 
    7688        pelaaja1.AnimIdle = new Animation(paikallaan); 
     89        pelaaja1.AnimJump = new Animation(hyppää); 
     90        pelaaja1.AnimFall = new Animation(putoaa); 
     91 
    7792    } 
    7893 
     
    115130    } 
    116131 
     132    void LisaaSieni2(Vector paikka, double leveys, double korkeus) 
     133    { 
     134        PhysicsObject sieni = PhysicsObject.CreateStaticObject(leveys * 1.0, korkeus * 1.0); 
     135        sieni.IgnoresCollisionResponse = true; 
     136        sieni.Position = paikka; 
     137        sieni.Image = Sieni; 
     138        sieni.Tag = "sieni"; 
     139        Add(sieni); 
     140    } 
    117141 
    118      
    119 } 
     142    void TormaaSieneen(PhysicsObject hahmo, PhysicsObject sieni) 
     143    { 
     144        maaliAani.Play(); 
     145        MessageDisplay.Add("Keräsit kultaisensienen JEE :D"); 
     146        sieni.Destroy(); 
     147    } 
     148 
     149    void LisaaKissa(Vector paikka, double leveys, double korkeus) 
     150    { 
     151        PhysicsObject kissa = PhysicsObject.CreateStaticObject(leveys * 1.0, korkeus * 1.0); 
     152        kissa.IgnoresCollisionResponse = true; 
     153        kissa.Position = paikka; 
     154        kissa.Image = Kissa; 
     155        kissa.Tag = "kissa"; 
     156        Add(kissa); 
     157    } 
     158 
     159    void TormaaKissaan(PhysicsObject hahmo, PhysicsObject kissa) 
     160    { 
     161        maaliAani.Play(); 
     162        MessageDisplay.Add("oisuit kissaan"); 
     163        hahmo.Destroy(); 
     164    } 
     165 
     166 
     167    void LisaaPiikit(Vector paikka, double leveys, double korkeus) 
     168    { 
     169        PhysicsObject spikes = PhysicsObject.CreateStaticObject(leveys * 1.0, korkeus * 1.0); 
     170        spikes.IgnoresCollisionResponse = true; 
     171        spikes.Position = paikka; 
     172        spikes.Image = Piikit; 
     173        spikes.Tag = "spikes"; 
     174        Add(spikes); 
     175    } 
     176 
     177    void TormaaPiikkeihin(PhysicsObject hahmo, PhysicsObject spikes) 
     178    { 
     179        maaliAani.Play(); 
     180        MessageDisplay.Add("Kuolit LÖL"); 
     181        hahmo.Destroy(); 
     182    } 
     183 
     184}  
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus.csproj.Debug.cachefile

    r5572 r5591  
    1010Content\kuva6.xnb 
    1111Content\kuva7.xnb 
     12Content\doge.xnb 
     13Content\sieni1.xnb 
     14Content\kissa.xnb 
     15Content\sienii.xnb 
     16Content\sieni.xnb 
     17Content\spikes.xnb 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestausContent/kentta1.txt

    r5572 r5591  
    1414 ##  ##  ##  ##  ## ## ## ## ## ##### ##    #####  ##  ## # ##  
    1515 
    16         N 
     16        N    S  K      PPPPPPPPPPPPPPPPPPPPPPP 
    1717############################################################### 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestausContent/tesohyppelytestausContent.contentproj

    r5572 r5591  
    118118    </Compile> 
    119119  </ItemGroup> 
     120  <ItemGroup> 
     121    <Compile Include="doge.png"> 
     122      <Name>doge</Name> 
     123      <Importer>TextureImporter</Importer> 
     124      <Processor>TextureProcessor</Processor> 
     125    </Compile> 
     126  </ItemGroup> 
     127  <ItemGroup> 
     128    <Compile Include="sieni1.jpg"> 
     129      <Name>sieni1</Name> 
     130      <Importer>TextureImporter</Importer> 
     131      <Processor>TextureProcessor</Processor> 
     132    </Compile> 
     133  </ItemGroup> 
     134  <ItemGroup> 
     135    <Compile Include="sienii.jpg"> 
     136      <Name>sienii</Name> 
     137      <Importer>TextureImporter</Importer> 
     138      <Processor>TextureProcessor</Processor> 
     139    </Compile> 
     140  </ItemGroup> 
     141  <ItemGroup> 
     142    <Compile Include="kissa.png"> 
     143      <Name>kissa</Name> 
     144      <Importer>TextureImporter</Importer> 
     145      <Processor>TextureProcessor</Processor> 
     146    </Compile> 
     147  </ItemGroup> 
     148  <ItemGroup> 
     149    <Compile Include="sieni.png"> 
     150      <Name>sieni</Name> 
     151      <Importer>TextureImporter</Importer> 
     152      <Processor>TextureProcessor</Processor> 
     153    </Compile> 
     154  </ItemGroup> 
     155  <ItemGroup> 
     156    <Compile Include="spikes.jpg"> 
     157      <Name>spikes</Name> 
     158      <Importer>TextureImporter</Importer> 
     159      <Processor>TextureProcessor</Processor> 
     160    </Compile> 
     161  </ItemGroup> 
    120162  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    121163  <!--  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.