Changeset 8023 for 2016/24


Ignore:
Timestamp:
2016-07-08 11:12:46 (3 years ago)
Author:
juleppaa
Message:

trolli mukana

Location:
2016/24/JustusL
Files:
50 added
15 edited

Legend:

Unmodified
Added
Removed
  • 2016/24/JustusL/Object_Ball/Object_Ball/Object_Ball/Object_Ball.cs

    r7961 r8023  
    1313    Image Maali = LoadImage("maali_objectBall"); 
    1414    Image tauste = LoadImage("ruutu"); 
     15    Image troll = LoadImage("trollface"); 
     16 
    1517 
    1618    double RUUDUN_KOKO = 150; 
     
    3739    public override void Begin() 
    3840    { 
    39  
    40          
     41        ClearAll(); 
     42        AlkuValikko(); 
     43        
     44 
     45        
     46    } 
     47    void AloitaPeli() 
     48    { 
    4149        liikkes = false; 
    4250        haamu = null; 
    4351        Gravity = new Vector(0, -70); 
    4452 
    45         
     53 
    4654 
    4755        //Level.Background.Image = tauste; 
    4856        //Level.Background.TileToLevel(); 
    4957 
    50         
     58 
    5159        //Camera.Follow(pallo); 
    5260        Camera.StopFollowing(); 
    53          
     61 
    5462        Ohjaimet(); 
    5563        LuoSlider(); 
     
    5866 
    5967 
    60         ColorTileMap ruudut = ColorTileMap.FromLevelAsset("kentta"+kenttaNro); 
     68        ColorTileMap ruudut = ColorTileMap.FromLevelAsset("kentta" + kenttaNro); 
    6169 
    6270        //2. Kerrotaan mitä aliohjelmaa kutsutaan, kun tietyn värinen pikseli tulee vastaan kuvatiedostossa. 
     
    6472        //ruudut.SetTileMethod(, LuoTaso); 
    6573        ruudut.SetTileMethod(new Color(255, 14, 255), LuoTahti); 
    66         ruudut.SetTileMethod(new Color(0, 255, 0), LuoMaali ); 
     74        ruudut.SetTileMethod(new Color(0, 255, 0), LuoMaali); 
    6775 
    6876        //3. Execute luo kentän 
     
    8391        pisteNaytto.IntFormatString = " {0:D1} Stars collected "; 
    8492        pisteNaytto.TextColor = Color.HotPink; 
    85         pisteNaytto.X = Screen.Right  -100; 
     93        pisteNaytto.X = Screen.Right - 100; 
    8694        pisteNaytto.Y = Screen.Top - 108; 
    8795        pisteNaytto.TextColor = Color.HotPink; 
     
    8997        pisteNaytto.BindTo(pisteLaskuri); 
    9098        Add(pisteNaytto); 
    91  
    92         
    9399    } 
    94100 
     
    355361        Camera.ZoomFactor += Mouse.WheelChange * 0.07; 
    356362    } 
     363    void YOUAREANIDIOT() 
     364    { 
     365        ClearAll(); 
     366 
     367        Level.Background.Color = Color.Black; 
     368         
     369        Explosion trollface = new Explosion(Screen.Height); 
     370        trollface.Image = troll; 
     371        trollface.Position = new Vector (0, 0); 
     372        trollface.Speed = 10.0; 
     373         
     374        Add(trollface); 
     375        Keyboard.Listen(Key.LeftAlt, ButtonState.Down, Avaa, null); 
     376        Keyboard.Listen(Key.RightAlt, ButtonState.Down, Avaa, null); 
     377        Keyboard.Listen(Key.Escape, ButtonState.Down, Avaa, null); 
     378 
     379 
     380    } 
     381  
     382 
     383    void Avaa() 
     384    { 
     385        System.Diagnostics.Process.Start("trolloll"); 
     386   } 
     387    void PeliOhje() 
     388    { 
     389        MultiSelectWindow peliohje = new MultiSelectWindow("\n Collect as many stars as you can and go to goal by making a track. \n You can make the track with blocks and curves which you can resize and change angle \n or you can draw a line with pencil tool. \n \n Starting playing: \n \n -Choose tool from right edge \n \n if tool = pencil you can draw if tool = curve or block you can rezize it \n (try arrowkeys) \n or you can rotate it \n (clockwise z or numpad 3 and counterclockwise a or numpad 1) \n", "OK"); 
     390 
     391        Add(peliohje); 
     392 
     393        peliohje.AddItemHandler(0, AlkuValikko); 
     394    } 
     395 
    357396    void AlkuValikko() 
    358397    { 
    359         MultiSelectWindow alkuvalikko = new MultiSelectWindow(null, "Levels", "Options", "Quit"); 
     398        MultiSelectWindow alkuvalikko = new MultiSelectWindow("Object Ball", "Levels","Info", "Options", "Quit"); 
     399 
     400        Add(alkuvalikko); 
     401 
     402        alkuvalikko.AddItemHandler(0, AloitaPeli); 
     403        alkuvalikko.AddItemHandler(1, Info); 
     404        alkuvalikko.AddItemHandler(2, AlkuAsetukset); 
     405        alkuvalikko.AddItemHandler(3, Poistuminen); 
    360406 
    361407        alkuvalikko.BorderColor = Color.Red; 
     
    367413        alkuvalikko.QuestionLabel.TextColor = Color.DarkRed; 
    368414 
    369         Add(alkuvalikko); 
    370     } 
     415    } 
     416    void AlkuAsetukset() 
     417    { 
     418        MultiSelectWindow alkuasetukset = new MultiSelectWindow("\n Options", "Back", "Sound", "Saving"); 
     419 
     420        Add(alkuasetukset); 
     421 
     422        alkuasetukset.AddItemHandler(0, AlkuValikko); 
     423 
     424        alkuasetukset.BorderColor = Color.Red; 
     425        alkuasetukset.Font = Font.DefaultBold; 
     426        alkuasetukset.SetButtonTextColor(Color.Black); 
     427        alkuasetukset.SetButtonColor(new Color(1.0, 0, 0, 0.4)); 
     428        alkuasetukset.SelectionColor = Color.DarkRed; 
     429        alkuasetukset.Color = new Color(255, 255, 255, 0.4); 
     430        alkuasetukset.QuestionLabel.TextColor = Color.DarkRed; 
     431 
     432    } 
     433    void Info() 
     434    { 
     435        MultiSelectWindow infovalikko = new MultiSelectWindow("Info", "Back", "Playing", "Credis"); 
     436 
     437        Add(infovalikko); 
     438 
     439        infovalikko.AddItemHandler(0, AlkuValikko); 
     440        infovalikko.AddItemHandler(1, PeliOhje); 
     441 
     442 
     443       infovalikko.BorderColor = Color.Red; 
     444       infovalikko.Font = Font.DefaultBold; 
     445       infovalikko.SetButtonTextColor(Color.Black); 
     446       infovalikko.SetButtonColor(new Color(1.0, 0, 0, 0.4)); 
     447       infovalikko.SelectionColor = Color.DarkRed; 
     448       infovalikko.Color = new Color(255, 255, 255, 0.4); 
     449       infovalikko.QuestionLabel.TextColor = Color.DarkRed; 
     450    } 
     451 
    371452    void PauseValikko() 
    372453    { 
     
    464545        //if (kenttaNro > 2) ; //Tähän kolmosen kohdalle tulee kenttien lukumäärä 
    465546       // else Begin("kentta" + kenttaNro); 
    466         Begin(); 
     547        AloitaPeli(); 
    467548    } 
    468549          void Poistuminen() 
    469550    { 
    470         MultiSelectWindow lopetusVarmistus = new MultiSelectWindow("\n Are you an idiot", "\n Yes \n", "\n Oh hell no"); 
     551        MultiSelectWindow lopetusVarmistus = new MultiSelectWindow("Are you idiot?", "\n Yes \n", "\n No\n"); 
    471552        lopetusVarmistus.BorderColor = Color.Red; 
    472553        lopetusVarmistus.Font = Font.DefaultBold; 
     
    478559        Add(lopetusVarmistus); 
    479560 
    480         lopetusVarmistus.AddItemHandler(0, Exit); 
    481         lopetusVarmistus.AddItemHandler(1, PauseValikko); 
     561        lopetusVarmistus.AddItemHandler(0, YOUAREANIDIOT); 
     562        lopetusVarmistus.AddItemHandler(1, Exit); 
    482563 
    483564    }   
  • 2016/24/JustusL/Object_Ball/Object_Ball/Object_Ball/Object_Ball.csproj.Debug.cachefile

    r7738 r8023  
    88Content\kentta1.xnb 
    99Content\kentta2.xnb 
     10Content\trollface.xnb 
  • 2016/24/JustusL/Object_Ball/Object_Ball/Object_Ball/obj/x86/Debug/ContentPipeline-{CD347656-A8F2-48EE-8097-A4F9AF1242F0}.xml

    r7936 r8023  
    88      <Processor>TextureProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kaarikakka.xnb</Output> 
    11       <Time>2016-07-07T10:53:30.3437786+03:00</Time> 
     10      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kaarikakka.xnb</Output> 
     11      <Time>2016-07-07T15:48:09.4143535+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1717      <Processor>TextureProcessor</Processor> 
    1818      <Options>None</Options> 
    19       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kaariosa.xnb</Output> 
    20       <Time>2016-07-04T10:29:37.230784+03:00</Time> 
     19      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kaariosa.xnb</Output> 
     20      <Time>2016-06-16T12:22:54.0854567+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2626      <Processor>TextureProcessor</Processor> 
    2727      <Options>None</Options> 
    28       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kyna.xnb</Output> 
    29       <Time>2016-07-04T10:29:37.090384+03:00</Time> 
     28      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kyna.xnb</Output> 
     29      <Time>2016-06-16T12:22:55.824712+03:00</Time> 
    3030    </Item> 
    3131    <Item> 
     
    3535      <Processor>TextureProcessor</Processor> 
    3636      <Options>None</Options> 
    37       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\maali_objectBall.xnb</Output> 
    38       <Time>2016-07-04T10:29:37.090384+03:00</Time> 
     37      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\maali_objectBall.xnb</Output> 
     38      <Time>2016-06-16T11:35:20.5217772+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4444      <Processor>TextureProcessor</Processor> 
    4545      <Options>None</Options> 
    46       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\palikka kursori.xnb</Output> 
    47       <Time>2016-07-04T10:29:37.230784+03:00</Time> 
     46      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\palikka kursori.xnb</Output> 
     47      <Time>2016-06-16T11:35:20.5287781+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5353      <Processor>TextureProcessor</Processor> 
    5454      <Options>None</Options> 
    55       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\palikka.xnb</Output> 
    56       <Time>2016-07-04T10:29:37.090384+03:00</Time> 
     55      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\palikka.xnb</Output> 
     56      <Time>2016-06-16T12:22:56.4812302+03:00</Time> 
    5757    </Item> 
    5858    <Item> 
     
    6262      <Processor>TextureProcessor</Processor> 
    6363      <Options>None</Options> 
    64       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\ruutu.xnb</Output> 
    65       <Time>2016-07-04T13:04:34.8082709+03:00</Time> 
     64      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\ruutu.xnb</Output> 
     65      <Time>2016-07-04T20:43:40.1219171+03:00</Time> 
    6666    </Item> 
    6767    <Item> 
     
    7171      <Processor>TextureProcessor</Processor> 
    7272      <Options>None</Options> 
    73       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kentta1.xnb</Output> 
    74       <Time>2016-07-06T10:37:01.9231134+03:00</Time> 
     73      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kentta1.xnb</Output> 
     74      <Time>2016-07-06T15:26:04.3249763+03:00</Time> 
    7575    </Item> 
    7676    <Item> 
     
    8080      <Processor>TextureProcessor</Processor> 
    8181      <Options>None</Options> 
    82       <Output>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kentta2.xnb</Output> 
    83       <Time>2016-07-07T11:12:58.4352696+03:00</Time> 
     82      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kentta2.xnb</Output> 
     83      <Time>2016-07-07T15:48:09.4218555+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>trollface.png</Source> 
     87      <Name>trollface</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\trollface.xnb</Output> 
     92      <Time>2016-07-07T18:13:41.4437036+03:00</Time> 
    8493    </Item> 
    8594    <BuildSuccessful>true</BuildSuccessful> 
     
    9099      <BuildConfiguration>Debug</BuildConfiguration> 
    91100      <CompressContent>false</CompressContent> 
    92       <RootDirectory>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_BallContent\</RootDirectory> 
    93       <LoggerRootDirectory>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\</LoggerRootDirectory> 
    94       <IntermediateDirectory>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\obj\x86\Debug\</IntermediateDirectory> 
    95       <OutputDirectory>C:\MyTemp\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\</OutputDirectory> 
     101      <RootDirectory>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_BallContent\</RootDirectory> 
     102      <LoggerRootDirectory>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\</LoggerRootDirectory> 
     103      <IntermediateDirectory>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\obj\x86\Debug\</IntermediateDirectory> 
     104      <OutputDirectory>C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\</OutputDirectory> 
    96105    </Settings> 
    97106    <Assemblies> 
    98107      <Assembly> 
    99         <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
    100         <Value>2015-02-09T20:18:44+02:00</Value> 
     108        <Key>C:\Users\Justus\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
     109        <Value>2015-04-01T18:41:16+03:00</Value> 
    101110      </Assembly> 
    102111      <Assembly> 
     
    125134      </Assembly> 
    126135      <Assembly> 
    127         <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
    128         <Value>2015-02-17T22:27:18+02:00</Value> 
     136        <Key>C:\Users\Justus\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
     137        <Value>2015-04-01T18:41:16+03:00</Value> 
    129138      </Assembly> 
    130139      <Assembly> 
    131         <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> 
    132         <Value>2015-09-16T19:42:13.6500946+03:00</Value> 
     140        <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> 
     141        <Value>2015-12-15T06:54:21.9346879+02:00</Value> 
    133142      </Assembly> 
    134143    </Assemblies> 
  • 2016/24/JustusL/Object_Ball/Object_Ball/Object_Ball/obj/x86/Debug/Object_Ball.csproj.FileListAbsolute.txt

    r7821 r8023  
    4848C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kentta1.xnb 
    4949C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\kentta2.xnb 
     50C:\Users\Justus\Documents\JustusL\Object_Ball\Object_Ball\Object_Ball\bin\x86\Debug\Content\trollface.xnb 
  • 2016/24/JustusL/Object_Ball/Object_Ball/Object_Ball/obj/x86/Debug/cachefile-{CD347656-A8F2-48EE-8097-A4F9AF1242F0}-targetpath.txt

    r7738 r8023  
    88Content\kentta1.xnb 
    99Content\kentta2.xnb 
     10Content\trollface.xnb 
  • 2016/24/JustusL/Object_Ball/Object_Ball/Object_BallContent/Object_BallContent.contentproj

    r7726 r8023  
    9494    </Compile> 
    9595  </ItemGroup> 
     96  <ItemGroup> 
     97    <Compile Include="trollface.png"> 
     98      <Name>trollface</Name> 
     99      <Importer>TextureImporter</Importer> 
     100      <Processor>TextureProcessor</Processor> 
     101    </Compile> 
     102  </ItemGroup> 
    96103  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    97104  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.