Changeset 2808
- Timestamp:
- 2012-06-05 21:56:41 (11 years ago)
- Location:
- 2012/23/LeoS
- Files:
-
- 5 added
- 1 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/LeoS/leoS/leoS/Ohjelma.cs
r2798 r2808 6 6 static void Main(string[] args) 7 7 { 8 using ( leoS game = new leoS())8 using (LeoS game = new LeoS()) 9 9 { 10 10 #if !DEBUG -
2012/23/LeoS/leoS/leoS/leoS.cs
r2798 r2808 7 7 using Jypeli.Widgets; 8 8 9 public class leoS : PhysicsGame9 public class LeoS : PhysicsGame 10 10 { 11 11 PhysicsObject pelaaja; 12 12 bool pelaajaIlmassa = false; 13 13 14 15 14 16 public override void Begin() 17 { 18 MultiSelectWindow valikko = new MultiSelectWindow("Tervetuloa peliin", 19 "Aloita peli", "Lopeta"); valikko.ItemSelected += PainettiinValikonNappia; 20 Add(valikko); 21 22 23 } 24 25 26 27 void AloitaPeli() 15 28 { 16 29 LuoKentta(); … … 20 33 Surface alareuna = Surface.CreateBottom(Level); 21 34 alareuna.IsVisible = false; 22 alareuna.Tag = "reuna"; 35 alareuna.Tag = "reuna"; //Nämä Pois Begin-aliohjelmasta 23 36 Add(alareuna); 24 // Level.CreateBorders(1, false);25 37 26 38 Surface oikeareuna = Surface.CreateRight(Level); … … 28 40 oikeareuna.Tag = "muuri"; 29 41 Add(oikeareuna); 42 } 30 43 31 44 45 void PainettiinValikonNappia(int valinta) 46 { 47 switch (valinta) 48 { 49 case 0: 50 AloitaPeli(); 51 break; 52 case 1: 53 Exit(); 54 break; 55 56 } 32 57 } 58 59 33 60 34 61 void LuoKentta() … … 37 64 AsetaOhjaimet(); 38 65 Camera.Follow(pelaaja); 66 39 67 } 40 68 … … 71 99 Label tekstikentta = new Label("teksti"); 72 100 tekstikentta.Text = "Hävisit Pelin"; 73 tekstikentta.TextColor = Color.B rown;101 tekstikentta.TextColor = Color.BlueGray; 74 102 Add(tekstikentta); 75 103 tekstikentta.Font = Font.DefaultLarge; 76 104 77 105 } 78 106 … … 109 137 void PelaajaOsuiMuuriin(PhysicsObject tormaaja, PhysicsObject kohde) 110 138 { 111 //139 // 112 140 Label tekstikentta = new Label("teksti"); 113 tekstikentta.Text = "Voitit Pelin"; 141 tekstikentta.Text = "Voitit Pelin"; 114 142 tekstikentta.Color = Color.Aqua; 115 143 tekstikentta.TextColor = Color.Red; … … 117 145 tekstikentta.Font = Font.DefaultLargeBold; 118 146 } 147 //void AloitaUudelleen() 148 //{ 149 //MultiSelectWindow valikko2 = new MultiSelectWindow("Aloita Alusta", "Lopeta"); 150 //valikko2.ItemSelected += UudelleenAloitusValikko; 151 //Add(valikko2); 152 //AloitaPeli(); 119 153 154 // } 155 //void UudelleenAloitusValikko(int valinta) 156 //{ 157 // switch (valinta) 158 //{ 159 // case 0: 160 // AloitaUudelleen(); 161 // break; 162 //case 1: 163 // Exit(); 164 //break; 165 //} 166 //} 120 167 } 121 168 169 170 171 -
2012/23/LeoS/leoS/leoS/leoS.csproj.Debug.cachefile
r2798 r2808 1 1 Content\Pelikuutio.xnb 2 2 Content\kentta1.xnb 3 Content\kentta1.txt 3 Content\kentta2.xnb 4 Content\kentta2.txt -
2012/23/LeoS/leoS/leoS/obj/x86/Debug/cachefile-{25605763-3341-4275-93D9-4B0A394A16A7}-targetpath.txt
r2798 r2808 1 1 Content\Pelikuutio.xnb 2 2 Content\kentta1.xnb 3 Content\kentta1.txt 3 Content\kentta2.xnb 4 Content\kentta2.txt -
2012/23/LeoS/leoS/leoS/obj/x86/Debug/leoS.csproj.FileListAbsolute.txt
r2798 r2808 11 11 J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb 12 12 J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\kentta1.txt 13 J:\LeoS\Do You really Wanna Jump\leoS\leoS\obj\x86\Debug\ResolveAssemblyReference.cache 14 J:\LeoS\Do You really Wanna Jump\leoS\leoS\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 15 J:\LeoS\Do You really Wanna Jump\leoS\leoS\obj\x86\Debug\leoS.exe 16 J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\ResolveAssemblyReference.cache 17 J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 18 J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\leoS.exe 19 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb 20 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb 21 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\leoS.exe 22 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\leoS.pdb 23 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Jypeli.dll 24 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Jypeli.pdb 25 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Jypeli.xml 26 J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\leoS.pdb 27 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.xnb 28 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.txt -
2012/23/LeoS/leoS/leoSContent/kentta1.txt
r2798 r2808 1 1 2 # 3 # 4 # # # 5 # # # # 6 # # # 7 ########## # # # 8 # # # # 9 # # # # # # 10 # # # # # # # # # # # 11 ## # # # # # # # # # # # # # 12 ######### ####### ###### ####### # # # 13 # # # # # 14 # # # 15 # # # 16 # ####### ############ 17 ########## # 18 # # # 19 # # # 20 # # ####### 21 P #### #### #### # 22 ############..######### 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 # 29 # 30 # 31 # 32 # # 33 # # 34 # # 35 # 0 ####################### # 36 # # 37 # # 38 # # 39 # ########### # 40 # # # 41 # # # 42 # # # 43 # # 44 # # 45 # # 46 # # 47 # # 48 ############################## # #### ##### # # 49 # # # # ################# # 50 # ####### # # # # # # # 51 # # # # # 52 # # # # ### # 53 # # # # # # 54 # # # ### # # 55 # ########### # # 56 # # # # 57 # # # 58 # #### ### ## # # # # 59 # # # # # 60 # # # # # # 61 # # # # # 62 ###### # # # # # ################### # 63 # # ################################# ############# 64 # ######## # # 65 # # # # # 66 # # # # # 67 # # # # 68 # # ## # # # ########## # # # # # # # ## # # # # # # # 69 P # # ########## # # # # 70 ############ ###### ########## ##### -
2012/23/LeoS/leoS/leoSContent/leoSContent.contentproj
r2798 r2808 52 52 </ItemGroup> 53 53 <ItemGroup> 54 <Compile Include="kentta2.txt"> 55 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 56 <Name>kentta2</Name> 57 <Importer>TextFileImporter</Importer> 58 <Processor>TextFileContentProcessor</Processor> 59 </Compile> 60 </ItemGroup> 61 <ItemGroup> 54 62 <Compile Include="kentta1.txt"> 55 <CopyToOutputDirectory>Always</CopyToOutputDirectory>56 63 <Name>kentta1</Name> 57 64 <Importer>TextFileImporter</Importer> -
2012/23/LeoS/leoS/leoSContent/obj/x86/Debug/ContentPipeline.xml
r2798 r2808 8 8 <Processor>TextureProcessor</Processor> 9 9 <Options>None</Options> 10 <Output>J:\ MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb</Output>10 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb</Output> 11 11 <Time>2012-06-05T11:14:00.3164247+03:00</Time> 12 12 </Item> … … 17 17 <Processor>TextFileContentProcessor</Processor> 18 18 <Options>None</Options> 19 <Output>J:\MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb</Output> 19 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb</Output> 20 <Time>2012-06-05T19:41:23.844819+03:00</Time> 21 </Item> 22 <Item> 23 <Source>kentta2.txt</Source> 24 <Name>kentta2</Name> 25 <Importer>TextFileImporter</Importer> 26 <Processor>TextFileContentProcessor</Processor> 27 <Options>None</Options> 28 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.xnb</Output> 20 29 <Time>2012-06-05T14:22:43.5066507+03:00</Time> 21 30 </Item> … … 26 35 <BuildConfiguration>Debug</BuildConfiguration> 27 36 <CompressContent>false</CompressContent> 28 <RootDirectory>J:\ MyTemp\leoS\leoS\leoSContent\</RootDirectory>29 <LoggerRootDirectory>J:\ MyTemp\leoS\leoS\leoS\</LoggerRootDirectory>30 <IntermediateDirectory>J:\ MyTemp\leoS\leoS\leoSContent\obj\x86\Debug\</IntermediateDirectory>31 <OutputDirectory>J:\ MyTemp\leoS\leoS\leoS\bin\x86\Debug\Content\</OutputDirectory>37 <RootDirectory>J:\LeoS\LeoS\leoS\leoSContent\</RootDirectory> 38 <LoggerRootDirectory>J:\LeoS\LeoS\leoS\leoS\</LoggerRootDirectory> 39 <IntermediateDirectory>J:\LeoS\LeoS\leoS\leoSContent\obj\x86\Debug\</IntermediateDirectory> 40 <OutputDirectory>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\</OutputDirectory> 32 41 </Settings> 33 42 <Assemblies> -
2012/23/LeoS/leoS/leoSContent/obj/x86/Debug/leoSContent.contentproj.FileListAbsolute.txt
r2798 r2808 1 1 J:\MyTemp\leoS\leoS\leoSContent\obj\x86\Debug\ResolveAssemblyReference.cache 2 J:\LeoS\Do You really Wanna Jump\leoS\leoSContent\obj\x86\Debug\ResolveAssemblyReference.cache 3 J:\LeoS\LeoS\leoS\leoSContent\obj\x86\Debug\ResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.