Changeset 6759 for 2015/27


Ignore:
Timestamp:
2015-07-02 14:51:43 (4 years ago)
Author:
saraivio
Message:

Valmis Bomb Squad.

Location:
2015/27/SampoR/Pommipeli
Files:
3 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/SampoR/Pommipeli/Pommipeli/Pommipeli/Pommipeli.cs

    r6741 r6759  
    1818    Image pommiKuva = LoadImage("pommi"); 
    1919    Image vihollisenKuva = LoadImage("Vihollinen"); 
     20    Image otsikkoKuva = LoadImage("Otsikko"); 
    2021 
    2122    IntMeter pisteLaskuri = new IntMeter(0,0,0); 
     
    2324 
    2425    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     26 
     27    bool pelinNimeaEiOleNaytetty = true; 
    2528 
    2629    public override void Begin() 
     
    3437        MediaPlayer.Play("Survival"); 
    3538        MediaPlayer.IsRepeating = true; 
     39 
     40        Level.Background.Color = Color.Yellow; 
     41 
    3642        MultiSelectWindow alkuValikko = new MultiSelectWindow ( 
    3743       "Pelin alkuvalikko","Aloita peli", "Lopeta"); 
     
    4147        alkuValikko.AddItemHandler(1, Exit); 
    4248 
     49        if (pelinNimeaEiOleNaytetty) // Näyttää pelin nimen ainoastaan ekassa alkuvalikossa. 
     50        { 
     51            GameObject pelinnimi = new GameObject(Level.Width, Level.Height / 3); 
     52            pelinnimi.Image = otsikkoKuva; 
     53            pelinnimi.Y = alkuValikko.Top + pelinnimi.Height * 0.65; 
     54            Add(pelinnimi); 
     55            pelinNimeaEiOleNaytetty = false; 
     56 
     57            Label tekijannimi = new Label("Made By Sampo-Tapio Raivio"); 
     58            tekijannimi.Y = Level.Bottom + alkuValikko.Height; 
     59            Add(tekijannimi); 
     60        } 
    4361 
    4462    } 
  • 2015/27/SampoR/Pommipeli/Pommipeli/Pommipeli/Pommipeli.csproj.Debug.cachefile

    r6741 r6759  
    77Content\NeverGo.xnb 
    88Content\Survival.xnb 
     9Content\Otsikko.xnb 
    910Content\NeverGo.wma 
    1011Content\Survival.wma 
  • 2015/27/SampoR/Pommipeli/Pommipeli/Pommipeli/obj/x86/Debug/ContentPipeline-{E66DD545-885E-4E0E-8EF2-6E1200871AC7}.xml

    r6741 r6759  
    7676      <Time>2015-07-02T12:53:37.1502743+03:00</Time> 
    7777    </Item> 
     78    <Item> 
     79      <Source>Otsikko.png</Source> 
     80      <Name>Otsikko</Name> 
     81      <Importer>TextureImporter</Importer> 
     82      <Processor>TextureProcessor</Processor> 
     83      <Options>None</Options> 
     84      <Output>C:\MyTemp\SampoR\Pommipeli\Pommipeli\Pommipeli\bin\x86\Debug\Content\Otsikko.xnb</Output> 
     85      <Time>2015-07-02T13:54:21.2653756+03:00</Time> 
     86    </Item> 
    7887    <BuildSuccessful>true</BuildSuccessful> 
    7988    <Settings> 
  • 2015/27/SampoR/Pommipeli/Pommipeli/Pommipeli/obj/x86/Debug/Pommipeli.csproj.FileListAbsolute.txt

    r6741 r6759  
    1717C:\MyTemp\SampoR\Pommipeli\Pommipeli\Pommipeli\bin\x86\Debug\Content\Survival.xnb 
    1818C:\MyTemp\SampoR\Pommipeli\Pommipeli\Pommipeli\bin\x86\Debug\Content\Survival.wma 
     19C:\MyTemp\SampoR\Pommipeli\Pommipeli\Pommipeli\bin\x86\Debug\Content\Otsikko.xnb 
  • 2015/27/SampoR/Pommipeli/Pommipeli/Pommipeli/obj/x86/Debug/cachefile-{E66DD545-885E-4E0E-8EF2-6E1200871AC7}-targetpath.txt

    r6741 r6759  
    99Content\Survival.xnb 
    1010Content\Survival.wma 
     11Content\Otsikko.xnb 
  • 2015/27/SampoR/Pommipeli/Pommipeli/PommipeliContent/PommipeliContent.contentproj

    r6741 r6759  
    9797    </Compile> 
    9898  </ItemGroup> 
     99  <ItemGroup> 
     100    <Compile Include="Otsikko.png"> 
     101      <Name>Otsikko</Name> 
     102      <Importer>TextureImporter</Importer> 
     103      <Processor>TextureProcessor</Processor> 
     104    </Compile> 
     105  </ItemGroup> 
    99106  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    100107  <!--  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.