Changeset 5119


Ignore:
Timestamp:
2014-06-26 14:09:20 (9 years ago)
Author:
uutapper
Message:
 
Location:
2014/26/UunoT/testing/testing
Files:
3 added
14 edited

Legend:

Unmodified
Added
Removed
  • 2014/26/UunoT/testing/testing/testing/obj/x86/Debug/ContentPipeline-{BDDFC29C-71D4-4710-8DED-5A3CD06DACEF}.xml

    r5106 r5119  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2014-06-25T13:50:04.8018132+03:00</Time> 
     38      <Time>2014-06-26T13:13:57.2448632+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4646      <Output>C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\kakkakigkre.xnb</Output> 
    4747      <Time>2014-06-25T14:31:22.1795335+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>~AutoRecover.Game.bmp</Source> 
     51      <Name>~AutoRecover.Game</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\~AutoRecover.Game.xnb</Output> 
     56      <Time>2014-06-26T11:30:57.1607755+03:00</Time> 
    4857    </Item> 
    4958    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/26/UunoT/testing/testing/testing/obj/x86/Debug/cachefile-{BDDFC29C-71D4-4710-8DED-5A3CD06DACEF}-targetpath.txt

    r5106 r5119  
    44Content\kentta1.xnb 
    55Content\kakkakigkre.xnb 
     6Content\~AutoRecover.Game.xnb 
  • 2014/26/UunoT/testing/testing/testing/obj/x86/Debug/testing.csproj.FileListAbsolute.txt

    r5106 r5119  
    1212C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\Lag elephant.exe 
    1313C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\Lag elephant.pdb 
     14C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\~AutoRecover.Game.xnb 
  • 2014/26/UunoT/testing/testing/testing/testing.cs

    r5106 r5119  
    2020    List<PhysicsObject> seinaPalat = new List<PhysicsObject>(); 
    2121    Image mankuva = LoadImage("kakkakigkre"); 
     22 
     23    DoubleMeter alaspainLaskuri; 
     24    Timer aikaLaskuri; 
    2225     
    2326 
     
    3942        LisaaNappaimet(); 
    4043        Keraa(); 
     44        LuoAikaLaskuri(); 
    4145 
    4246 
     
    143147        man.Tag = "pahis"; 
    144148        Add(man); 
    145          
    146          
     149 
     150 
    147151 
    148152        man.Brain = new RandomMoverBrain(); 
    149153        Timer ajastin = new Timer(); 
    150         ajastin.Interval = 60.5678910111223412342352; 
     154        ajastin.Interval = 61.3678910111223412342352; 
    151155        ajastin.Timeout += delegate { kranaatti(man); }; 
    152156        ajastin.Start(); 
     
    180184    { 
    181185        Timer kutsuja = new Timer(); 
    182         kutsuja.Interval = 0.594321; 
     186        kutsuja.Interval = 0.394321; 
    183187        kutsuja.Timeout += delegate { AddMonster(paikka); }; 
    184188        kutsuja.Start(); 
     
    248252    void LuoPortaali(Vector paikka, double leveys, double korkeus) 
    249253    { 
    250         Portaali = new PhysicsObject (30.0, 30.0 ); 
     254        Portaali = new PhysicsObject (30.0, 30.0); 
    251255        Portaali.Shape = Shape.Circle; 
    252256        Portaali.Color = Color.Purple; 
     
    290294 
    291295 
     296    void LuoAikaLaskuri() 
     297    { 
     298        alaspainLaskuri = new DoubleMeter(60.9); 
     299 
     300        aikaLaskuri = new Timer(); 
     301        aikaLaskuri.Interval = 0.1; 
     302        aikaLaskuri.Timeout += LaskeAlaspain; 
     303        aikaLaskuri.Start(); 
     304        
     305         
     306 
     307        Label aikaNaytto = new Label(); 
     308        aikaNaytto.TextColor = Color.Black; 
     309        aikaNaytto.DecimalPlaces = 1; 
     310        aikaNaytto.BindTo(alaspainLaskuri); 
     311        aikaNaytto.X = Screen.Right- 50.0; 
     312        aikaNaytto.Y = Screen.Top- 50.0; 
     313        Add(aikaNaytto); 
     314        
     315    } 
     316 
     317    void LaskeAlaspain() 
     318    { 
     319        alaspainLaskuri.Value -= 0.1; 
     320 
     321        if (alaspainLaskuri.Value <= 0) 
     322        { 
     323            MessageDisplay.Add("Aika loppui ja lagi alkaa!"); 
     324            aikaLaskuri.Stop(); 
     325 
     326             
     327        } 
     328    } 
     329 
    292330 
    293331 
  • 2014/26/UunoT/testing/testing/testing/testing.csproj

    r5106 r5119  
    1818    <XnaOutputType>Game</XnaOutputType> 
    1919    <ApplicationIcon>Game.ico</ApplicationIcon> 
    20     <Thumbnail>GameThumbnail.png</Thumbnail> 
     20    <Thumbnail>~AutoRecover.Game.png</Thumbnail> 
    2121    <IsWebBootstrapper>false</IsWebBootstrapper> 
    2222    <ReferencePath>$(registry:HKEY_LOCAL_MACHINE\Software\Jypeli@Install_Dir)\lib\x86</ReferencePath> 
     
    118118    <Content Include="Game.ico" /> 
    119119    <Content Include="GameThumbnail.png" /> 
     120    <Content Include="~AutoRecover.Game.png" /> 
    120121  </ItemGroup> 
    121122  <ItemGroup> 
  • 2014/26/UunoT/testing/testing/testing/testing.csproj.Debug.cachefile

    r5106 r5119  
    44Content\kentta1.xnb 
    55Content\kakkakigkre.xnb 
     6Content\~AutoRecover.Game.xnb 
  • 2014/26/UunoT/testing/testing/testingContent/kentta1.txt

    r5106 r5119  
    11############################ 
    22#                        * # 
    3 #  N                       # 
     3#p N                       # 
    44#################          # 
    55#                    ##    # 
    6 #     p               ##   # 
    7 #                         ## 
    8 #                       #### 
    9 #        ################### 
    10 ####      ########################## 
    11 #   #                      p       # 
    12 #    #                             #                                     
    13 #     ####                       * # 
     6#     p               ##   ######################### 
     7#                         ##                       #  
     8#                       ####     ##                #  
     9#        ######################        ##          # 
     10####      ###################                      # 
     11#   #     ###################    ####              #   
     12#    #                      p           ##         # 
     13#     ####                  p                *     #    
    1414#              ########################################################### 
    1515#                                             #                         ## 
    1616#*   p                                        #               p         ## 
    17 ###################                           #                         ## 
     17###################             p             #                         ## 
    1818#                ###                          ######      ###          *## 
    19 #                 #################           #                ############ 
    20 #                                                            #          ## 
     19#                 #################                            ############ 
     20#                                                          ###          ## 
    2121#                                 ######             #######            ## 
    22 #       #####################            ########               *p      ## 
    23 #       #                  pS                                           ## 
    24 #       #                   S                       ########            ## 
     22#       #####################            ########                p      ## 
     23#       #    V             pS                                           ## 
     24#       #    V              S                       ########            ## 
    2525#       #    V              S                  ####                     ## 
    26 #       #                  pS              ####                         ## 
     26#       #    V             pS              ####                         ## 
    2727#       #####################          ####                             ## 
    2828#                               #####                              p    ## 
    2929#                                                                       ## 
    3030#                          ######                                       ## 
    31 #                                                                       ## 
     31#*                                                                      ## 
    3232########################################################################## 
    3333########################################################################## 
  • 2014/26/UunoT/testing/testing/testingContent/testingContent.contentproj

    r5106 r5119  
    7474    </Compile> 
    7575  </ItemGroup> 
     76  <ItemGroup> 
     77    <Compile Include="~AutoRecover.Game.bmp"> 
     78      <Name>~AutoRecover.Game</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81    </Compile> 
     82  </ItemGroup> 
    7683  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7784  <!--  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.