- Timestamp:
- 2017-06-15 15:06:34 (4 years ago)
- 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 20 20 Image piikitKuva = LoadImage("piikit"); 21 21 Image portaaliKuva = LoadImage("portaali"); 22 Image glassesKuva = LoadImage("mlg glasses"); 22 23 int kenttaNro = 1; 23 24 … … 39 40 LisaaNappaimet(); 40 41 } 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 } 41 52 42 void LisaaTeleportti(Vector paikka, double korkeus, double leveys)53 void LisaaTeleportti(Vector paikka, double leveys, double korkeus) 43 54 { 44 PhysicsObject Telportti = PhysicsObject.CreateStaticObject( korkeus, leveys);55 PhysicsObject Telportti = PhysicsObject.CreateStaticObject(leveys, korkeus); 45 56 Telportti.Tag = "Teleportti"; 46 57 Telportti.Position = paikka; … … 50 61 } 51 62 52 void LisaaPiikit(Vector paikka, double korkeus, double leveys)63 void LisaaPiikit(Vector paikka, double leveys, double korkeus) 53 64 { 54 PhysicsObject Piikit = PhysicsObject.CreateStaticObject( korkeus, leveys);65 PhysicsObject Piikit = PhysicsObject.CreateStaticObject(leveys, korkeus); 55 66 Piikit.Position = paikka; 56 67 Piikit.Image = piikitKuva; … … 70 81 kentta.SetTileMethod('T', LisaaTeleportti); 71 82 kentta.SetTileMethod('P', LisaaPiikit); 83 kentta.SetTileMethod('M', LisaaGlasses); 72 84 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 73 85 Level.CreateBorders(); -
2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/LimaPeli.csproj.Debug.cachefile
r8724 r8744 11 11 Content\piikit.xnb 12 12 Content\portaali.xnb 13 Content\mlg glasses.xnb -
2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r8724 r8744 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\kentta1.xnb</Output> 20 <Time>2017-06-15T1 3:53:41.8890579+03:00</Time>20 <Time>2017-06-15T14:56:33.2306034+03:00</Time> 21 21 </Item> 22 22 <Item> … … 92 92 <Options>None</Options> 93 93 <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\kentta2.xnb</Output> 94 <Time>2017-06-15T1 3:53:41.9136752+03:00</Time>94 <Time>2017-06-15T15:03:46.9242436+03:00</Time> 95 95 </Item> 96 96 <Item> … … 111 111 <Output>C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\portaali.xnb</Output> 112 112 <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> 113 122 </Item> 114 123 <BuildSuccessful>true</BuildSuccessful> -
2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeli/obj/x86/Debug/LimaPeli.csproj.FileListAbsolute.txt
r8724 r8744 19 19 C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\piikit.xnb 20 20 C:\MyTemp\GregoryK\LimaPeli\LimaPeli\LimaPeli\bin\x86\Debug\Content\portaali.xnb 21 C:\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 11 11 Content\piikit.xnb 12 12 Content\portaali.xnb 13 Content\mlg glasses.xnb -
2017/24/GregoryK/LimaPeli/LimaPeli/LimaPeliContent/LimaPeliContent.contentproj
r8724 r8744 113 113 </Compile> 114 114 </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> 115 122 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 116 123 <!-- 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.........##..##..##............................................................................................. 1 7 ............................................................................................................................................ 2 8 ............................................................................................................................................ 3 ............................................................................................................................................ 4 ............................................................................................................................................ 5 ............................................................................................................................................ 6 .....................................##..##..##............................................................................................. 7 ............................................................................................................................................ 8 ............................................................................................................................................ 9 ....................................P....................................................................................................... 9 ............................................................................M............................................................... 10 10 ................................*.###..##..##..##..............*....................................*...................*................... 11 ............................ .*.P......................##......###..............................#...................#........................11 ............................*.P......................##......###..............................#...................#........................ 12 12 ...........................*.###......................####.*...........................*...#........#.........#........#...*................ 13 13 ........................*.P...........................######...........................#.................*.................#................ 14 14 ........................###...........................########.....................#....................###....................#............ 15 ...........N......P................ PPP..........PP..*.##########..*.................PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP.............15 ...........N......P.................PPP..........PP..*.##########..*.................PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP.........T... 16 16 ############################################################################################################################################ -
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.