Changeset 7092
- Timestamp:
- 2015-12-12 14:49:44 (7 years ago)
- Location:
- 2015/koodauskerho/ArttuH
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/koodauskerho/ArttuH/Gaben/Gaben/Gaben/Gaben.cs
r7073 r7092 9 9 public class Gaben : PhysicsGame 10 10 { 11 Font F0ntti = LoadFont("SpriteFont1");12 11 13 12 IntMeter Money; … … 15 14 Image Porkkana = LoadImage("Steam-Sale-Banner-01"); 16 15 17 16 Font fontti = LoadFont("Impact"); 18 17 19 18 int Upgrade1cost = 100; … … 21 20 int Upgrade3cost = 1000; 22 21 int Upgrade4cost = 1000; 22 int Upgrade5cost = 10000000; 23 23 public override void Begin() 24 24 { 25 SmoothTextures = false;25 SmoothTextures = true; 26 26 27 27 Level1(); … … 29 29 Usd(); 30 30 31 31 MessageDisplay.Add("Buy the 5x clicks upgrade"); 32 MessageDisplay.Font = fontti; 33 34 35 32 36 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 33 37 } … … 40 44 41 45 } 42 void widgets()43 {44 45 46 }47 46 48 47 void Menus() 49 48 { 50 MultiSelectWindow Buy = new MultiSelectWindow("Get More Money","2/s,$100","10/s,$500"," 3x cliks, $1000","22/s,$1000","5","6","7","Quit menu");49 MultiSelectWindow Buy = new MultiSelectWindow("Get More Money","2/s,$100","10/s,$500","5x cliks, $1000","22/s,$1000","5","6", "SUPERSPEED,$10000000", "Quit menu"); 51 50 Buy.ItemSelected += MenuButton; 52 51 Buy.Font = fontti; 53 52 Add(Buy); 53 } 54 void RandomEvents() 55 { 56 54 57 } 55 58 … … 63 66 Cashscreen.TextColor = Color.White; 64 67 Cashscreen.Color = Color.Green; 68 65 69 66 70 Cashscreen.Title = "$"; 67 Cashscreen.Font = Font.DefaultLargeBold;71 Cashscreen.Font = fontti; 68 72 69 73 Cashscreen.BindTo(Money); 70 74 Add(Cashscreen); 71 75 72 Mouse.Listen(MouseButton.Left, ButtonState.Pressed, addmoney, "Gives Cashh");76 73 77 Mouse.Listen(MouseButton.Right, ButtonState.Pressed, Menus, "Opens Menu"); 74 78 } … … 92 96 break; 93 97 case 2: 98 MessageDisplay.Clear(); 94 99 if (Money.Value >= Upgrade3cost) 95 100 { 96 101 Money.Value -= Upgrade3cost; 102 Mouse.Listen(MouseButton.Left, ButtonState.Pressed, addmoney2, "Gives More Cash"); 103 Keyboard.Listen(Key.Space, ButtonState.Down, addmoney2, "cheats2"); 104 } 105 else 106 { 107 Mouse.Listen(MouseButton.Left, ButtonState.Pressed, addmoney, "Gives Cash"); 108 Keyboard.Listen(Key.Space, ButtonState.Down, addmoney, "cheats"); 97 109 } 98 110 break; … … 105 117 break; 106 118 case 4: 107 119 108 120 break; 109 121 case 5: … … 111 123 break; 112 124 case 6: 113 125 if (Money.Value >= Upgrade5cost) 126 { 127 Money.Value -= Upgrade5cost; 128 timer4(); 129 } 114 130 break; 115 131 case 7: … … 124 140 Money.Value += 1; 125 141 142 } 143 void addmoney2() 144 { 145 Money.Value += 4; 146 } 147 void addmoney3() 148 { 149 Money.Value += 300; 126 150 } 127 151 void timer1() … … 148 172 kello3.Start(); 149 173 } 174 void timer4() 175 { 176 Timer kello4 = new Timer(); 177 kello4.Interval = 0.001; 178 kello4.Timeout += addmoney; 179 kello4.Start(); 180 } 181 void YouWin() 182 { 183 ClearAll(); 184 } 150 185 } -
2015/koodauskerho/ArttuH/Gaben/Gaben/Gaben/Gaben.csproj.Debug.cachefile
r7073 r7092 2 2 Content\gabe.xnb 3 3 Content\Steam-Sale-Banner-01.xnb 4 Content\ SpriteFont1.xnb4 Content\Impact.xnb -
2015/koodauskerho/ArttuH/Gaben/Gaben/Gaben/obj/x86/Debug/ContentPipeline-{77F64B7D-267E-4D4D-8589-99BC2A63AB52}.xml
r7073 r7092 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\agben.xnb</Output> 11 <Time>2015-1 0-17T10:26:10.5386101+03:00</Time>11 <Time>2015-12-12T10:04:22.0525798+02:00</Time> 12 12 </Item> 13 13 <Item> … … 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\gabe.xnb</Output> 20 <Time>2015-1 0-17T10:49:28.1721916+03:00</Time>20 <Time>2015-12-12T10:04:22.2085798+02:00</Time> 21 21 </Item> 22 22 <Item> … … 27 27 <Options>None</Options> 28 28 <Output>C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\Steam-Sale-Banner-01.xnb</Output> 29 <Time>2015-1 0-17T13:19:03.5810992+03:00</Time>29 <Time>2015-12-12T10:04:22.2085798+02:00</Time> 30 30 </Item> 31 31 <Item> 32 <Source> SpriteFont1.spritefont</Source>33 <Name> SpriteFont1</Name>32 <Source>Impact.spritefont</Source> 33 <Name>Impact</Name> 34 34 <Importer>FontDescriptionImporter</Importer> 35 35 <Processor>FontDescriptionProcessor</Processor> 36 36 <Options>None</Options> 37 <Output>C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\ SpriteFont1.xnb</Output>38 <Time>2015-1 0-17T13:27:54.3268879+03:00</Time>37 <Output>C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\Impact.xnb</Output> 38 <Time>2015-12-12T11:15:02.6805798+02:00</Time> 39 39 </Item> 40 40 <BuildSuccessful>true</BuildSuccessful> … … 85 85 <Assembly> 86 86 <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 87 <Value>2015-09-16T19: 52:38.3293055+03:00</Value>87 <Value>2015-09-16T19:06:04.2493246+03:00</Value> 88 88 </Assembly> 89 89 </Assemblies> -
2015/koodauskerho/ArttuH/Gaben/Gaben/Gaben/obj/x86/Debug/Gaben.csproj.FileListAbsolute.txt
r7073 r7092 10 10 C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\gabe.xnb 11 11 C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\Steam-Sale-Banner-01.xnb 12 C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\ SpriteFont1.xnb12 C:\MyTemp\ArttuH\Gaben\Gaben\Gaben\bin\x86\Debug\Content\Impact.xnb -
2015/koodauskerho/ArttuH/Gaben/Gaben/Gaben/obj/x86/Debug/cachefile-{77F64B7D-267E-4D4D-8589-99BC2A63AB52}-targetpath.txt
r7073 r7092 2 2 Content\gabe.xnb 3 3 Content\Steam-Sale-Banner-01.xnb 4 Content\ SpriteFont1.xnb4 Content\Impact.xnb -
2015/koodauskerho/ArttuH/Gaben/Gaben/GabenContent/GabenContent.contentproj
r7073 r7092 67 67 </ItemGroup> 68 68 <ItemGroup> 69 <Compile Include=" SpriteFont1.spritefont">70 <Name> SpriteFont1</Name>69 <Compile Include="Impact.spritefont"> 70 <Name>Impact</Name> 71 71 <Importer>FontDescriptionImporter</Importer> 72 72 <Processor>FontDescriptionProcessor</Processor> 73 <SubType>Designer</SubType>74 73 </Compile> 75 74 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.