Changeset 8226 for 2016/30


Ignore:
Timestamp:
2016-07-29 10:08:56 (3 years ago)
Author:
sieerinn
Message:
 
Location:
2016/30/TimoH
Files:
8 added
5 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000.cs

    r8210 r8226  
    8080 
    8181    int vihunNumero; 
    82     int kenttanumero = 1; 
     82    int kenttanumero = 6; 
    8383 
    8484    DoubleMeter aikalaskuri = new DoubleMeter(0); 
     85 
     86    Vector tp1; 
    8587 
    8688    public override void Begin() 
     
    193195        polku = new SortedList<char, Vector>(); 
    194196 
    195         if (kenttanumero > 4) 
     197        if (kenttanumero > 6) 
    196198        { 
    197199            Exit(); 
     
    200202        ruudut.SetTileMethod('!', LuoLinna); 
    201203        ruudut.SetTileMethod('%', LuoPolku); 
     204        ruudut.SetTileMethod('1', LuoTeleportti1); 
     205        ruudut.SetTileMethod('2', LuoTeleportti2); 
    202206 
    203207 
     
    254258        polku.Position = paikka; 
    255259        Add(polku, -1); 
    256  
    257  
     260    } 
     261 
     262    void LuoTeleportti1(Vector paikka, double leveys, double korkeus) 
     263    { 
     264        PhysicsObject tp = new PhysicsObject(leveys, korkeus); 
     265        //polku.Image = polkukuva; 
     266        tp.Position = paikka; 
     267        tp.Tag = "tp"; 
     268        Add(tp, -1); 
     269        tp.MakeStatic(); 
     270    } 
     271 
     272    void LuoTeleportti2(Vector paikka, double leveys, double korkeus) 
     273    { 
     274        GameObject tp = new GameObject(leveys, korkeus); 
     275        //polku.Image = polkukuva; 
     276        tp.Position = paikka; 
     277        Add(tp, -1); 
     278 
     279        tp1 = paikka; 
    258280    } 
    259281 
     
    307329        vihunNumero++; 
    308330 
     331 
    309332        Vihollinen vihu = new Vihollinen(50, 50, elamat: vihunNumero * 3); 
    310333        vihu.Color = Color.Red; 
     
    315338        Add(vihu); 
    316339 
     340        AddCollisionHandler(vihu, "tp", TormaaTeleporttiin); 
     341 
     342        vihu.ElamaLaskuri.LowerLimit += VihuKuolee; 
     343 
    317344        PathFollowerBrain polkuAivot = new PathFollowerBrain(new List<Vector>(polku.Values)); 
    318345        polkuAivot.Speed = 600; 
    319346        vihu.Brain = polkuAivot; 
     347    } 
     348 
     349    void TormaaTeleporttiin(PhysicsObject vihu, PhysicsObject tp) 
     350    { 
     351        vihu.Position = tp1; 
     352    } 
     353 
     354    void VihuKuolee() 
     355    { 
     356        kuolema.Play();    
     357 
    320358    } 
    321359 
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000.csproj.Debug.cachefile

    r8208 r8226  
    1 Content\Jamaicanboksi1.xnb 
    21Content\vihrea.xnb 
    32Content\sininen.xnb 
     
    87Content\nurmikko.xnb 
    98Content\mutSIS.xnb 
     9Content\sfx.xnb 
     10Content\Jamaicanboksi33vaikea.xnb 
     11Content\JamaicanboksiKESKIVAIKEA.xnb 
     12Content\Jamaicanboksi1.xnb 
     13Content\Jamaicanboksi5.xnb 
    1014Content\Jamaicanboksi2.xnb 
    11 Content\Jamaicanboksi3.xnb 
    12 Content\Jamaicanboksi4.xnb 
    13 Content\sfx.xnb 
     15Content\Jamaicanboksi6.xnb 
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000/bin/x86/Debug/Data/_score.xml

    r8208 r8226  
    3333          </Field> 
    3434          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    35             <Value>16.4</Value> 
     35            <Value>46.4000000000004</Value> 
    3636          </Field> 
    3737        </Item> 
    3838        <Item Index="4" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    3939          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    40             <Value>-</Value> 
     40            <Value>1</Value> 
    4141          </Field> 
    4242          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    43             <Value>0</Value> 
     43            <Value>16.4</Value> 
    4444          </Field> 
    4545        </Item> 
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000/obj/x86/Debug/ContentPipeline-{4A29DE4C-A502-4E35-9F8E-69C76CB7D9C2}.xml

    r8208 r8226  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
    4     <Item> 
    5       <Source>Jamaicanboksi1.txt</Source> 
    6       <Name>Jamaicanboksi1</Name> 
    7       <Importer>TextFileImporter</Importer> 
    8       <Processor>TextFileContentProcessor</Processor> 
    9       <Options>None</Options> 
    10       <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi1.xnb</Output> 
    11       <Time>2016-07-28T12:31:29.98337+03:00</Time> 
    12     </Item> 
    134    <Item> 
    145      <Source>vihrea.png</Source> 
     
    8475    </Item> 
    8576    <Item> 
    86       <Source>Jamaicanboksi2.txt</Source> 
    87       <Name>Jamaicanboksi2</Name> 
    88       <Importer>TextFileImporter</Importer> 
    89       <Processor>TextFileContentProcessor</Processor> 
    90       <Options>None</Options> 
    91       <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi2.xnb</Output> 
    92       <Time>2016-07-28T13:20:14.6354879+03:00</Time> 
    93     </Item> 
    94     <Item> 
    95       <Source>Jamaicanboksi3.txt</Source> 
    96       <Name>Jamaicanboksi3</Name> 
    97       <Importer>TextFileImporter</Importer> 
    98       <Processor>TextFileContentProcessor</Processor> 
    99       <Options>None</Options> 
    100       <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi3.xnb</Output> 
    101       <Time>2016-07-28T13:20:14.6444888+03:00</Time> 
    102     </Item> 
    103     <Item> 
    104       <Source>Jamaicanboksi4.txt</Source> 
    105       <Name>Jamaicanboksi4</Name> 
    106       <Importer>TextFileImporter</Importer> 
    107       <Processor>TextFileContentProcessor</Processor> 
    108       <Options>None</Options> 
    109       <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi4.xnb</Output> 
    110       <Time>2016-07-28T13:07:47.3127631+03:00</Time> 
    111     </Item> 
    112     <Item> 
    11377      <Source>sfx.wav</Source> 
    11478      <Name>sfx</Name> 
     
    11882      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\sfx.xnb</Output> 
    11983      <Time>2016-07-28T14:27:21.3974245+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>Jamaicanboksi33vaikea.txt</Source> 
     87      <Name>Jamaicanboksi33vaikea</Name> 
     88      <Importer>TextFileImporter</Importer> 
     89      <Processor>TextFileContentProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi33vaikea.xnb</Output> 
     92      <Time>2016-07-28T13:20:14.6444888+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>JamaicanboksiKESKIVAIKEA.txt</Source> 
     96      <Name>JamaicanboksiKESKIVAIKEA</Name> 
     97      <Importer>TextFileImporter</Importer> 
     98      <Processor>TextFileContentProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\JamaicanboksiKESKIVAIKEA.xnb</Output> 
     101      <Time>2016-07-28T13:20:14.6354879+03:00</Time> 
     102    </Item> 
     103    <Item> 
     104      <Source>Jamaicanboksi1.txt</Source> 
     105      <Name>Jamaicanboksi1</Name> 
     106      <Importer>TextFileImporter</Importer> 
     107      <Processor>TextFileContentProcessor</Processor> 
     108      <Options>None</Options> 
     109      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi1.xnb</Output> 
     110      <Time>2016-07-28T12:31:29.98337+03:00</Time> 
     111    </Item> 
     112    <Item> 
     113      <Source>Jamaicanboksi5.txt</Source> 
     114      <Name>Jamaicanboksi5</Name> 
     115      <Importer>TextFileImporter</Importer> 
     116      <Processor>TextFileContentProcessor</Processor> 
     117      <Options>None</Options> 
     118      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi5.xnb</Output> 
     119      <Time>2016-07-28T13:07:47.3127631+03:00</Time> 
     120    </Item> 
     121    <Item> 
     122      <Source>Jamaicanboksi2.txt</Source> 
     123      <Name>Jamaicanboksi2</Name> 
     124      <Importer>TextFileImporter</Importer> 
     125      <Processor>TextFileContentProcessor</Processor> 
     126      <Options>None</Options> 
     127      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi2.xnb</Output> 
     128      <Time>2016-07-29T09:47:39.3073933+03:00</Time> 
     129    </Item> 
     130    <Item> 
     131      <Source>Jamaicanboksi6.txt</Source> 
     132      <Name>Jamaicanboksi6</Name> 
     133      <Importer>TextFileImporter</Importer> 
     134      <Processor>TextFileContentProcessor</Processor> 
     135      <Options>None</Options> 
     136      <Output>C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi6.xnb</Output> 
     137      <Time>2016-07-29T10:07:18.9396933+03:00</Time> 
    120138    </Item> 
    121139    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000/obj/x86/Debug/JamaicanBoksi3000.csproj.FileListAbsolute.txt

    r8208 r8226  
    11C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\obj\x86\Debug\JamaicanBoksi3000.csprojResolveAssemblyReference.cache 
    22C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
    3 C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi1.xnb 
    43C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\JamaicanBoksi3000.exe 
    54C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\JamaicanBoksi3000.pdb 
     
    3130C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\nurmikko.xnb 
    3231C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\mutSIS.xnb 
     32C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\sfx.xnb 
     33C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi33vaikea.xnb 
     34C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\JamaicanboksiKESKIVAIKEA.xnb 
     35C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi1.xnb 
     36C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi5.xnb 
    3337C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi2.xnb 
    34 C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi3.xnb 
    35 C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi4.xnb 
    36 C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\sfx.xnb 
     38C:\MyTemp\TimoH\JamaicanBoksi3000\JamaicanBoksi3000\JamaicanBoksi3000\bin\x86\Debug\Content\Jamaicanboksi6.xnb 
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000/obj/x86/Debug/cachefile-{4A29DE4C-A502-4E35-9F8E-69C76CB7D9C2}-targetpath.txt

    r8208 r8226  
    1 Content\Jamaicanboksi1.xnb 
    21Content\vihrea.xnb 
    32Content\sininen.xnb 
     
    87Content\nurmikko.xnb 
    98Content\mutSIS.xnb 
     9Content\sfx.xnb 
     10Content\Jamaicanboksi33vaikea.xnb 
     11Content\JamaicanboksiKESKIVAIKEA.xnb 
     12Content\Jamaicanboksi1.xnb 
     13Content\Jamaicanboksi5.xnb 
    1014Content\Jamaicanboksi2.xnb 
    11 Content\Jamaicanboksi3.xnb 
    12 Content\Jamaicanboksi4.xnb 
    13 Content\sfx.xnb 
     15Content\Jamaicanboksi6.xnb 
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000Content/JamaicanBoksi3000Content.contentproj

    r8208 r8226  
    109109  </ItemGroup> 
    110110  <ItemGroup> 
    111     <Compile Include="Jamaicanboksi4.txt"> 
    112       <Name>Jamaicanboksi4</Name> 
     111    <Compile Include="Jamaicanboksi5.txt"> 
     112      <Name>Jamaicanboksi5</Name> 
    113113      <Importer>TextFileImporter</Importer> 
    114114      <Processor>TextFileContentProcessor</Processor> 
     
    116116  </ItemGroup> 
    117117  <ItemGroup> 
    118     <Compile Include="Jamaicanboksi3.txt"> 
    119       <Name>Jamaicanboksi3</Name> 
     118    <Compile Include="Jamaicanboksi33vaikea.txt"> 
     119      <Name>Jamaicanboksi33vaikea</Name> 
    120120      <Importer>TextFileImporter</Importer> 
    121121      <Processor>TextFileContentProcessor</Processor> 
     
    123123  </ItemGroup> 
    124124  <ItemGroup> 
    125     <Compile Include="Jamaicanboksi2.txt"> 
    126       <Name>Jamaicanboksi2</Name> 
     125    <Compile Include="JamaicanboksiKESKIVAIKEA.txt"> 
     126      <Name>JamaicanboksiKESKIVAIKEA</Name> 
    127127      <Importer>TextFileImporter</Importer> 
    128128      <Processor>TextFileContentProcessor</Processor> 
     
    136136    </Compile> 
    137137  </ItemGroup> 
     138  <ItemGroup> 
     139    <Compile Include="Jamaicanboksi2.txt"> 
     140      <Name>Jamaicanboksi2</Name> 
     141      <Importer>TextFileImporter</Importer> 
     142      <Processor>TextFileContentProcessor</Processor> 
     143    </Compile> 
     144  </ItemGroup> 
     145  <ItemGroup> 
     146    <Compile Include="Jamaicanboksi6.txt"> 
     147      <Name>Jamaicanboksi6</Name> 
     148      <Importer>TextFileImporter</Importer> 
     149      <Processor>TextFileContentProcessor</Processor> 
     150    </Compile> 
     151  </ItemGroup> 
    138152  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    139153  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2016/30/TimoH/JamaicanBoksi3000/JamaicanBoksi3000/JamaicanBoksi3000Content/Jamaicanboksi2.txt

    r8208 r8226  
    1 ..E%%D...........................A..H%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%I.. 
    2 ..%..%...........................%..%..................................%.. 
    3 ..%..%...........................%..%..................................%.. 
    4 ..%..%...........................%..%..................................%.. 
    5 ..%..%...........................%..%..................................%.. 
    6 ..%..%...........................%..%..................................%.. 
    7 ..%..%...........................%..%..................................%.. 
    8 ..%..%...........................%..%..................................%.. 
    9 ..%..%...........................%..%..................................%.. 
    10 ..%..%...........................%..%..................................%.. 
    11 ..%..%...........................%..%..................................%.. 
    12 ..%..%...........................%..%..................................%.. 
    13 ..%..%...........................%..%..................................%.. 
    14 ..%..%...........................%..%..................................%.. 
    15 ..%..%...........................%..%..................................%.. 
    16 ..%..%...........................%..%..................................%.. 
    17 ..%..%...........................%..%..................................%.. 
    18 ..%..%...........................%..%..................................%.. 
    19 ..%..%...........................%..%..................................%.. 
    20 ..%..%...........................%..%..................................%.. 
    21 ..%..%...........................%..%..................................%.. 
    22 ..%..%...........................%..%..................................%.. 
    23 ..%..%...........................%..%..................................%.. 
    24 ..%..%...........................%..%..................................%.. 
    25 ..%..%...........................%..%..................................%.. 
    26 ..%..%...........................%..%..................................%.. 
    27 ..%..%...........................%..%..................................%.. 
    28 ..%..C%%%%%%%%%%%%%%%%%%%%%%%%%%%B..%..................................%.. 
    29 ..%.................................%..................................%.. 
    30 ..F%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%G..................................J.. 
    31 .......................................................................!.. 
     1................................................................................................ 
     2A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%B. 
     3..............................................................................................%. 
     4.E%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%F..%. 
     5.%.........................................................................................%..%. 
     6.%..I%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%J..%..%. 
     7.%..%...................................................................................%..%..%. 
     8.%..%..M%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%N..%..%..%. 
     9.%..%..%.............................................................................%..%..%..%. 
     10.%..%..%..Q%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%R..%..%..%..%. 
     11.%..%..%..%.......................................................................%..%..%..%..%. 
     12.%..%..%..%.......................................................................%..%..%..%..%. 
     13.%..%..%..%.......................................................................%..%..%..%..%. 
     14.%..%..%..%............................!T%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%S..%..%..%..%. 
     15.%..%..%..%..........................................................................%..%..%..%. 
     16.%..%..%..%..........................................................................%..%..%..%. 
     17.%..%..%..%..........................................................................%..%..%..%. 
     18.%..%..%..P%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%O..%..%..%. 
     19.%..%..%................................................................................%..%..%. 
     20.%..%..L%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%K..%..%. 
     21.%..%......................................................................................%..%. 
     22.%..H%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%G..%. 
     23.%............................................................................................%. 
     24.D%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%C. 
Note: See TracChangeset for help on using the changeset viewer.