- Timestamp:
- 2013-06-13 15:07:03 (9 years ago)
- Location:
- 2013/24/EelisK/Run/Run
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/24/EelisK/Run/Run/Run/Run.cs
r4114 r4127 37 37 Add(alkuValikko); 38 38 39 39 40 40 41 41 … … 68 68 protected override void Update(Time time) 69 69 { 70 //if (pelaaja1 != null && !pelaaja1.IsDestroyed) pelaaja1.Walk(nopeus);70 if (pelaaja1 != null && !pelaaja1.IsDestroyed) pelaaja1.Walk(nopeus); 71 71 base.Update(time); 72 72 } … … 112 112 naamaPalikka.Position = paikka; 113 113 naamaPalikka.Image = LoadImage("square"); 114 naamaPalikka.Tag = "pelottavaJuttu"; 114 115 //taso.Shape = Shape.FromImage(taso.Image); 115 116 Add(naamaPalikka); 116 AddCollisionHandler(pelaaja1, naamaPalikka, TormattiinPelottavaanNaamaan);117 117 } 118 118 … … 122 122 naamaPalikka.Destroy(); 123 123 ClearAll(); 124 MessageDisplay.Add(Camera.Position.ToString());125 124 Image sairaanPelottavaKuva = LoadImage("eyes"); 126 GameObject g = new GameObject(sairaanPelottavaKuva);127 // GameObject g = new GameObject(sairaanPelottavaKuva);128 //g.Image = sairaanPelottavaKuva;129 // g.Position = Vector.Zero;130 Add(g);131 // Camera.Position = Vector.Zero;132 // MessageDisplay.Add(Camera.Position.ToString());133 //Camera.ZoomToAllObjects();125 Level.Size = new Vector(1000, 800); 126 Level.Background.Image = sairaanPelottavaKuva; 127 Level.Background.ScaleToLevel(); 128 Level.BackgroundColor = Color.Black; 129 Camera.ZoomToLevel(); 130 MediaPlayer.Stop(); 131 SoundEffect hyppyAani = LoadSoundEffect("scream"); 132 hyppyAani.Play(); 134 133 } 135 134 … … 164 163 AddCollisionHandler<Pelaaja, PhysicsObject>(pelaaja1, "ansa", TormaaEsteeseen); 165 164 AddCollisionHandler(pelaaja1, "maali", TormasiMaaliin); 165 AddCollisionHandler(pelaaja1, "pelottavaJuttu", TormattiinPelottavaanNaamaan); 166 166 Add(pelaaja1); 167 167 } … … 173 173 Keyboard.Listen(Key.R, ButtonState.Pressed, TormaaEsteeseen, "Aloita peli alusta", pelaaja1, new PhysicsObject(1, 1)); 174 174 175 Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, -nopeus);176 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus);175 //Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, -nopeus); 176 //Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 177 177 Keyboard.Listen(Key.Space, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 178 178 -
2013/24/EelisK/Run/Run/RunContent/RunContent.contentproj
r4114 r4127 139 139 </Compile> 140 140 </ItemGroup> 141 <ItemGroup> 142 <Compile Include="horrorShort.wav"> 143 <Name>horrorShort</Name> 144 <Importer>WavImporter</Importer> 145 <Processor>SoundEffectProcessor</Processor> 146 </Compile> 147 </ItemGroup> 148 <ItemGroup> 149 <Compile Include="scream.wav"> 150 <Name>scream</Name> 151 <Importer>WavImporter</Importer> 152 <Processor>SoundEffectProcessor</Processor> 153 </Compile> 154 </ItemGroup> 141 155 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 142 156 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2013/24/EelisK/Run/Run/RunContent/taso1.txt
r4114 r4127 3 3 4 4 5 N PO O O OO O ##O O M5 N O O O OO O ##O O M 6 6 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 7 7 ################################################################################################## -
2013/24/EelisK/Run/Run/RunContent/taso2.txt
r4108 r4127 2 2 3 3 4 5 6 N ###OOOEOOOE ##### OM4 # 5 ###O 6 N ###OOO#OOOE ##### M 7 7 ################################## -
2013/24/EelisK/Run/Run/RunContent/taso3.txt
r4114 r4127 1 1 2 E2 3 3 ## ####### 4 4 ## ######### 5 5 ### ############ ## 6 N ##### ############ ###O O O O ###OOOOO O O OO O M6 N ##### ############PP O O O O ###OOOOO O O OO O M 7 7 ################################################################################################################## -
2013/24/EelisK/Run/Run/RunContent/taso4.txt
r4114 r4127 4 4 ###### ######## E E E 5 5 ####### # ############################ 6 ########## # ### #6 P########## # ### # 7 7 ################ # ## # # 8 8 #################### # ## # # 9 9 ######################### ### # # 10 10 ######################################################### # 11 N ############################################################# # E E E E E 12 ################################################################## ################################# # 11 N ############################################################# # E E E E P 12 ################################################################## ################################# # 13 # # 14 # # 15 # # 16 # # 17 # # 18 # # 19 # # 20 # # 21 # # 22 # # 23 # # 24 # # 25 # # 26 # # 27 # # 28 29 30 # # 31 # # 32 # # 13 33 # # 14 34 # # … … 18 38 # # 19 39 # # 20 # # 21 # # 22 # # 23 # # 24 # # 25 # # 26 # # 27 # # 28 # # 29 # # 30 # # 31 # # 32 # # 33 # # 34 # # 35 # # 36 # # 37 # # 38 # 39 # ################################################ ##################################### 40 # O O O M # 41 ############################################################################################################################ 40 # PPPPP 41 # ############### ##################################### 42 # ##### M M # 43 ####################################################################PPPPPPPPPPPPPPPPPPPPP######################################### 44 45 -
2013/24/EelisK/Run/Run/RunContent/taso5.txt
r4114 r4127 1 1 2 3 4 ###### ######## E E E 5 ####### # ############################ 6 ########## # ### # 7 ############# # ## # # 8 ################ # ## # # 9 #################### # ## # # 10 ######################### ### # # 11 ######################################################### # 12 N ############################################################# # E E E E E 13 ################################################################## ################################# 14 # 15 # 16 # 17 # # # 18 # 19 # 20 # 21 # 22 # 23 # 24 # 25 # 26 # 27 # 28 # 29 # 30 # 31 # 32 # 33 # 34 # 35 # 36 # 37 # 38 # P 39 # P 40 # P 41 # O O #OOO O P M # 42 ############################################################################################################################ 43 ############################################################################################################################# 2 N 3 #### # 4 # 5 O O ##### # 6 #########P################### # 7 ############## # # # 8 ############### # # # 9 ################# # # # 10 ################## # # ### ###### #### ### # 11 #################### # #OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPP O O M# 12 ############################################################################################################################### 13 ############################################################################################################################### 14 ###############################################################################################################################
Note: See TracChangeset
for help on using the changeset viewer.