Changeset 8744 for 2017/24


Ignore:
Timestamp:
2017-06-15 15:06:34 (2 years ago)
Author:
npo17_12
Message:

Ei vielä täysin valmis.

Location:
2017/24/GregoryK/LimaPeli/LimaPeli
Files:
2 added
14 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/LimaPeli.cs

    r8724 r8744  
    2020    Image piikitKuva = LoadImage("piikit"); 
    2121    Image portaaliKuva = LoadImage("portaali"); 
     22    Image glassesKuva = LoadImage("mlg glasses"); 
    2223    int kenttaNro = 1; 
    2324 
     
    3940        LisaaNappaimet(); 
    4041    } 
     42 
     43    void LisaaGlasses(Vector paikka, double leveys, double korkeus) 
     44    { 
     45        PhysicsObject Glasses = PhysicsObject.CreateStaticObject(leveys* 3, korkeus* 3); 
     46        Glasses.Tag = "mlgglasses"; 
     47        Glasses.Position = paikka; 
     48        Glasses.Image = glassesKuva; 
     49 
     50        Add(Glasses); 
     51    } 
    4152         
    42     void LisaaTeleportti(Vector paikka, double korkeus, double leveys) 
     53    void LisaaTeleportti(Vector paikka, double leveys, double korkeus) 
    4354    { 
    44         PhysicsObject Telportti = PhysicsObject.CreateStaticObject(korkeus, leveys); 
     55        PhysicsObject Telportti = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    4556        Telportti.Tag = "Teleportti"; 
    4657        Telportti.Position = paikka; 
     
    5061    } 
    5162 
    52     void LisaaPiikit(Vector paikka, double korkeus, double leveys) 
     63    void LisaaPiikit(Vector paikka, double leveys, double korkeus) 
    5364    { 
    54         PhysicsObject Piikit = PhysicsObject.CreateStaticObject(korkeus, leveys); 
     65        PhysicsObject Piikit = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    5566        Piikit.Position = paikka; 
    5667        Piikit.Image = piikitKuva; 
     
    7081        kentta.SetTileMethod('T', LisaaTeleportti); 
    7182        kentta.SetTileMethod('P', LisaaPiikit); 
     83        kentta.SetTileMethod('M', LisaaGlasses); 
    7284        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    7385        Level.CreateBorders(); 
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/LimaPeli.csproj.Debug.cachefile

    r8724 r8744  
    1111Content\piikit.xnb 
    1212Content\portaali.xnb 
     13Content\mlg glasses.xnb 
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8724 r8744  
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    20       <Time>2017-06-15T13:53:41.8890579+03:00</Time> 
     20      <Time>2017-06-15T14:56:33.2306034+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    9292      <Options>None</Options> 
    9393      <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\kentta2.xnb</Output> 
    94       <Time>2017-06-15T13:53:41.9136752+03:00</Time> 
     94      <Time>2017-06-15T15:03:46.9242436+03:00</Time> 
    9595    </Item> 
    9696    <Item> 
     
    111111      <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\portaali.xnb</Output> 
    112112      <Time>2017-06-15T13:43:56.8973059+03:00</Time> 
     113    </Item> 
     114    <Item> 
     115      <Source>mlg glasses.png</Source> 
     116      <Name>mlg glasses</Name> 
     117      <Importer>TextureImporter</Importer> 
     118      <Processor>TextureProcessor</Processor> 
     119      <Options>None</Options> 
     120      <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\mlg glasses.xnb</Output> 
     121      <Time>2017-06-15T14:38:49.0340541+03:00</Time> 
    113122    </Item> 
    114123    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/obj/x86/Debug/LimaPeli.csproj.FileListAbsolute.txt

    r8724 r8744  
    1919C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\piikit.xnb 
    2020C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\portaali.xnb 
     21C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\mlg glasses.xnb 
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r8724 r8744  
    1111Content\piikit.xnb 
    1212Content\portaali.xnb 
     13Content\mlg glasses.xnb 
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeliContent/LimaPeliContent.contentproj

    r8724 r8744  
    113113    </Compile> 
    114114  </ItemGroup> 
     115  <ItemGroup> 
     116    <Compile Include="mlg glasses.png"> 
     117      <Name>mlg glasses</Name> 
     118      <Importer>TextureImporter</Importer> 
     119      <Processor>TextureProcessor</Processor> 
     120    </Compile> 
     121  </ItemGroup> 
    115122  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    116123  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeliContent/kentta1.txt

    r8724 r8744  
     1............................................................................................................................................ 
     2..........................................M.......................M......................................................................... 
     3.............................M............................................................................M................................. 
     4..................................................................................M....................................................M.... 
     5...............M.....................PP..PP..PP...........................M................................................................. 
     6...........................M.........##..##..##............................................................................................. 
    17............................................................................................................................................ 
    28............................................................................................................................................ 
    3 ............................................................................................................................................ 
    4 ............................................................................................................................................ 
    5 ............................................................................................................................................ 
    6 .....................................##..##..##............................................................................................. 
    7 ............................................................................................................................................ 
    8 ............................................................................................................................................ 
    9 ....................................P....................................................................................................... 
     9............................................................................M............................................................... 
    1010................................*.###..##..##..##..............*....................................*...................*................... 
    11 .............................*.P......................##......###..............................#...................#........................ 
     11............................*.P......................##......###..............................#...................#........................ 
    1212...........................*.###......................####.*...........................*...#........#.........#........#...*................ 
    1313........................*.P...........................######...........................#.................*.................#................ 
    1414........................###...........................########.....................#....................###....................#............ 
    15 ...........N......P................PPP..........PP..*.##########..*.................PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP............. 
     15...........N......P.................PPP..........PP..*.##########..*.................PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP.........T... 
    1616############################################################################################################################################ 
  • 2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeliContent/kentta2.txt

    r8724 r8744  
    1 ...................................................................................................... 
    2 ...................................................................................................... 
    3 ...................................................................................................... 
    4 ...................................................................................................... 
    5 ...................................................................................................... 
    6 ...................................................................................................... 
    7 ...................................................................................................... 
    8 ...................................................................................................... 
    9 ...................................................................................................... 
    10 ...................................................................................................... 
    11 ...................................................................................................... 
    12 ...................................................................................................... 
    13 .N.................................................................................................... 
    14 ###################################################################################################### 
     1...M....................M.....................M...........M............................. 
     2........................................................................................ 
     3........................................................................................ 
     4........................................................................................ 
     5..........*..........................P*....*P..........................*................ 
     6.........###..*P...............*P...###....###...P*...............P*..###............... 
     7..............###...P*.........###..............###.........*P...###.................... 
     8...................###....###...P*..............*P...###....###......................... 
     9..............###..............###..............###..............###.................... 
     10..........*P.......................*P........P*........................P*............... 
     11..........###....###..*P...........###......###...........P*...###....###................ 
     12......................###................................###............................ 
     13.N...................................................................................... 
     14######################################################################################## 
Note: See TracChangeset for help on using the changeset viewer.