Changeset 5005
- Timestamp:
- 2014-06-13 10:31:18 (9 years ago)
- Location:
- 2014/24/AleksanteriS/Tasohyppelypeli1
- Files:
-
- 4 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1.sln
r4980 r5005 2 2 Microsoft Visual Studio Solution File, Format Version 11.00 3 3 # Visual Studio 2010 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = " Tasohyppelypeli1", "Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1.csproj", "{DDCFF976-1518-473B-9F2F-DC97554D8978}"4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Derpal", "Tasohyppelypeli1\Tasohyppelypeli1\Derpal.csproj", "{DDCFF976-1518-473B-9F2F-DC97554D8978}" 5 5 EndProject 6 Project("{ 96E2B04D-8817-42C6-938A-82C39BA4D311}") = "Tasohyppelypeli1Content", "Tasohyppelypeli1\Tasohyppelypeli1Content\Tasohyppelypeli1Content.contentproj", "{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}"6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tasohyppelypeli1Content", "Tasohyppelypeli1\Tasohyppelypeli1Content\Tasohyppelypeli1Content.contentproj", "{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}" 7 7 EndProject 8 8 Global -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs
r4980 r5005 19 19 Image taustaKuva = LoadImage("Moon"); 20 20 21 22 int kerattavienMaara; 23 IntMeter laskuri; 24 21 25 SoundEffect maaliAani = LoadSoundEffect("IDHY"); 22 26 23 27 public override void Begin() 24 28 { 25 MultiSelectWindow alkuValikko = new MultiSelectWindow("Derpal 2","Aloita peli", "Lopeta");29 MultiSelectWindow alkuValikko = new MultiSelectWindow("Derpal","Aloita peli", "Lopeta"); 26 30 Add(alkuValikko); 27 31 alkuValikko.Color = Color.White; … … 43 47 44 48 LuoKentta(); 49 LuoPistelaskuri(); 45 50 LisaaNappaimet(); 46 51 … … 61 66 } 62 67 68 void LuoPistelaskuri() 69 { 70 laskuri = new IntMeter(0); 71 72 Label pisteNaytto = new Label(); 73 pisteNaytto.X = Screen.Left + 100; 74 pisteNaytto.Y = Screen.Top - 100; 75 pisteNaytto.Title = kerattavienMaara.ToString(); 76 pisteNaytto.TextColor = Color.Black; 77 pisteNaytto.Color = Color.White; 78 79 pisteNaytto.BindTo(laskuri); 80 Add(pisteNaytto); 81 } 82 63 83 void LisaaTaso(Vector paikka, double leveys, double korkeus) 64 84 { … … 76 96 tahti.Tag = "tahti"; 77 97 Add(tahti); 98 kerattavienMaara++; 78 99 } 79 100 … … 118 139 void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 119 140 { 141 laskuri.Value++; 120 142 maaliAani.Play(); 121 143 MessageDisplay.Add("Sait Companion Cuben!"); 122 144 tahti.Destroy(); 145 if (laskuri.Value >= kerattavienMaara) Maali(); 123 146 } 147 148 void Maali() 149 { 150 Label tekstikentta = new Label("Voitit!"); 151 tekstikentta.Position = pelaaja1.Position; 152 tekstikentta.Size = new Vector(200, 100); 153 Add(tekstikentta); 154 } 155 156 124 157 } -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/ContentPipeline-{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}.xml
r4980 r5005 54 54 <Options>None</Options> 55 55 <Output>C:\MyTemp\AleksanteriS\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta1.xnb</Output> 56 <Time>2014-06-1 2T13:32:34.6983665+03:00</Time>56 <Time>2014-06-13T09:54:42.5291542+03:00</Time> 57 57 </Item> 58 58 <Item> -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/kentta1.txt
r4980 r5005 1 1 2 2 ** 3 3 ## ####################### ############################################ 4 4 ## ###################### # # # # 5 5 ## ########### * # # # # 6 6 ##### #### ########### ########## # # # # 7 ##### * ** ## ########### * ########## # # # #7 ##### * * * ## ########### * ########## # # # # 8 8 *##### ######### # ## ############ * ############ # # # # 9 ######## ######### # #### ############ * ############ # # #***************************************** 10 ####### ######### # ## ############ * ############ # #***************************************** 11 ####### N # # # ## ############# * ############# # # #**#*****************************************#9 ######## ######### # #### ############ * ############ # # #******************************************# 10 ####### ######### # ## ############ * ############ # #******************************************# 11 ####### N # # # ## ############# * ############# *# # #**#******************************************# 12 12 ############################################################ ##### ################################### * ########################### ####################################### ###################################################### # 13 *# #* # # # ***** 14 ############################################################################################################################################# ################################# ################# #######15 ### * * * * * *#######16 13 *# #* # # # ****** # 14 ################################################################################################################################################################################################################### ################# ####### 15 ################################################################################################################################################################################################################### ####### 16 ############################################################################################################################################################################################################################################## 17 17 ##############################################################################################################################################################################################################################################
Note: See TracChangeset
for help on using the changeset viewer.