Changeset 7006 for 2015


Ignore:
Timestamp:
2015-07-24 10:56:42 (4 years ago)
Author:
samsimpo
Message:
 
Location:
2015/30/SamuliP
Files:
24 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrolls/TheSideScrolls.cs

    r6994 r7006  
    2626    Image aseKuva = LoadImage("the-boar"); 
    2727    Image ammoKuva = LoadImage("boar-ammo"); 
    28     Image backroundKuva = LoadImage("background"); 
     28    Image backroundKuva = LoadImage("rainbow"); 
    2929    Image tileKuva = LoadImage("tile"); 
    3030    public override void Begin() 
    3131    { 
     32        ClearAll(); 
     33        ammustenmaara.Value = 0; 
    3234        Gravity = new Vector(0, -1000); 
    3335        LuoKentta(); 
     
    7678        Add(panosNaytto); 
    7779        panosNaytto.Title = "Boar count"; 
     80        panosNaytto.IntFormatString = "{0}/" + ammustenmaara.MaxValue; 
    7881 
    7982 
     
    103106        Add(tile); 
    104107        tile.Image = tileKuva; 
     108        tile.IgnoresCollisionResponse = true; 
    105109    } 
    106110     
     
    134138        Add(kivi); 
    135139        kivi.Image = stoneKuva; 
     140        kivi.IsVisible = false; 
    136141    } 
    137142    void LisaaTahti(Vector paikka, double leveys, double korkeus) 
     
    189194            ammus.MaximumLifetime = TimeSpan.FromSeconds(10.0); 
    190195            ammus.Tag = "ammus"; 
     196            ammus.IgnoresGravity = true; 
    191197        } 
    192198    } 
     
    202208    void LisaaNappaimet() 
    203209    { 
     210        Keyboard.Listen(Key.R, ButtonState.Pressed, Begin, "restart game"); 
    204211        Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Näytä ohjeet"); 
    205212        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     
    233240    { 
    234241        maaliAani.Play(); 
    235         MessageDisplay.Add("Gem Added"); 
     242        MessageDisplay.Add("You got the gem but your princess is on top of another castle :D"); 
    236243        tahti.Destroy(); 
     244        hahmo.Destroy(); 
     245        pelaaja1.Weapon.Destroy(); 
    237246    } 
    238247    void LisaaPahis(Vector paikka, double leveys, double korkeus) 
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrolls/TheSideScrolls.csproj.Debug.cachefile

    r6994 r7006  
    1616Content\background.xnb 
    1717Content\tile.xnb 
     18Content\rainbow.xnb 
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrolls/obj/x86/Debug/TheSideScrolls.csproj.FileListAbsolute.txt

    r6994 r7006  
    2424C:\MyTemp\SamuliP\TheSidescrollsArena\TheSideScrolls\TheSideScrolls\TheSideScrolls\bin\x86\Debug\Content\background.xnb 
    2525C:\MyTemp\SamuliP\TheSidescrollsArena\TheSideScrolls\TheSideScrolls\TheSideScrolls\bin\x86\Debug\Content\tile.xnb 
     26C:\MyTemp\SamuliP\TheSidescrollsArena\TheSideScrolls\TheSideScrolls\TheSideScrolls\bin\x86\Debug\Content\rainbow.xnb 
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrolls/obj/x86/Debug/cachefile-{2F9CC970-4606-409A-BE85-CDF1A2096940}-targetpath.txt

    r6994 r7006  
    1616Content\background.xnb 
    1717Content\tile.xnb 
     18Content\rainbow.xnb 
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrollsContent/TheSideScrollsContent.contentproj

    r6994 r7006  
    156156    </Compile> 
    157157  </ItemGroup> 
     158  <ItemGroup> 
     159    <Compile Include="rainbow.jpg"> 
     160      <Name>rainbow</Name> 
     161      <Importer>TextureImporter</Importer> 
     162      <Processor>TextureProcessor</Processor> 
     163    </Compile> 
     164  </ItemGroup> 
    158165  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    159166  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrollsContent/kentta1.txt

    r6994 r7006  
    1  
    2  
    3  
    4  
    5 .................................................................... 
    6 .................................................................... 
    7 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 
    8 ......................................................................... 
    9 ....................................................................... 
    10 .......................................................................t.t.t..................... 
    11 .......N............AAA................................................ttttt.............................. 
    12 TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT....................tt.tt.................................................... 
    13 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDTT...................tt.tt................................... 
    14 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDSS....TTTTTTTTTTTTTTTTTTTTTTTTTT..................................... 
    15 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDSS..........................SDDDDDDDDDD.................................................. 
    16 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDSSSSSSSSSSSSSSSSSSSSSS.....SDDDDDDDDDDD.............................. 
    17 .........................................................SSSSSSSSSSSSSSS......SDDDDDDDDD........................... 
    18 ..........................................................SSSSSSSSSSSSSSS........SDDDD......................... 
    19 .................................................................................................................. 
    20 ......................................................................................................................... 
    21 ............................................................................................................................... 
    22 ........................................................................................................................................... 
    23 ................................................................................................................................. 
    24 .................................................................................................................................. 
     1....................................................................................SSSSSSSSSS 
     2Ž............................................................................................SSSSSSSSS 
     3.............................................................................................SSSSS 
     4.............................................................................................SSSSS 
     5.............................................................................................SSSSS 
     6...................................................................................*.*.*.....SSSSS 
     7...PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPt.t.t.....SSSSS 
     8...................................................................................ttttt.....SSSSS 
     9...................................................................................ttttt.....SSSSS 
     10...................................................................................ttttt.....SSSSS 
     11.......................AAAAAAAAAAAAAAAAAAA.........................................ttttt.....SSSSS 
     12..........N............AAAAAAAAAAAAAAAAAAA.........................................ttttt......SSSS 
     13...TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT.............................tt.tt......SSSSS 
     14....DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...............................tt.tt......SSSSS. 
     15.....DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD.........TTTTTTTTTTTT.....TTTTTTTTTTTTTTTTTSSSSS 
     16.....DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD..........dddddddddd......DDDDDDDDDDDDDDDSSSSS 
     17.....DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD............dddddddd.........DDDDDDDDDDDDDSSSSS 
     18......DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD............DDDDDDDD ...........DDDDDDDDSSSSSSS 
     19.......DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...............DDDDDDAAAAA........SSSSSSSSSSS 
     20SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 
  • 2015/30/SamuliP/TheSidescrollsArena/TheSideScrolls/TheSideScrolls/TheSideScrollsContent/obj/x86/Debug/ContentPipeline.xml

    r6994 r7006  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\SamuliP\TheSidescrollsArena\TheSideScrolls\TheSideScrolls\TheSideScrolls\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2015-07-23T14:59:03.8181859+03:00</Time> 
     38      <Time>2015-07-24T10:27:54.6935195+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    154154      <Output>C:\MyTemp\SamuliP\TheSidescrollsArena\TheSideScrolls\TheSideScrolls\TheSideScrolls\bin\x86\Debug\Content\tile.xnb</Output> 
    155155      <Time>2015-07-23T14:53:50.0501859+03:00</Time> 
     156    </Item> 
     157    <Item> 
     158      <Source>rainbow.jpg</Source> 
     159      <Name>rainbow</Name> 
     160      <Importer>TextureImporter</Importer> 
     161      <Processor>TextureProcessor</Processor> 
     162      <Options>None</Options> 
     163      <Output>C:\MyTemp\SamuliP\TheSidescrollsArena\TheSideScrolls\TheSideScrolls\TheSideScrolls\bin\x86\Debug\Content\rainbow.xnb</Output> 
     164      <Time>2015-07-24T09:29:39.1234473+03:00</Time> 
    156165    </Item> 
    157166    <BuildSuccessful>true</BuildSuccessful> 
Note: See TracChangeset for help on using the changeset viewer.