Changeset 6984 for 2015/30/EliasHu


Ignore:
Timestamp:
2015-07-23 14:57:53 (4 years ago)
Author:
elalhutt
Message:

peli valmis viimeistelyä vaille

Location:
2015/30/EliasHu/RescueRanger
Files:
4 added
1 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/RescueRanger.cs

    r6967 r6984  
    2626    PlatformCharacter pelaaja1; 
    2727 
    28  
    29     //TODO vikaan kenttään metsäpalo 
    30     //TODO musiikki taustalle 
    31     //TODO käännä laskuri 
    3228 
    3329 
     
    4137    Image fly = LoadImage          ("Flybomb"); 
    4238    Image Asem = LoadImage           ("Asema"); 
     39    Image liekkiKuva = LoadImage     ("Flame"); 
    4340 
    4441    SoundEffect maaliAani = LoadSoundEffect  ("maali"); 
     
    5855        if (kenttanumero > kenttaNumeroMax) 
    5956        { 
    60             topLista.EnterAndShow(pisteetkaikki); 
     57            topLista.EnterAndShow(1000/((double)pisteetkaikki+1)); 
    6158            return; 
    6259        } 
    63         Gravity = new Vector(0, -1000); 
     60        Gravity = new Vector(0, -900); 
    6461 
    6562        LuoPisteLaskuri(); 
     
    8986        topLista.Show(); 
    9087        topLista.HighScoreWindow.Closed += AlkuValikko; 
    91  
    92  
    9388    } 
    9489 
     
    110105        kentta.SetTileMethod('V', LisaaVihollinen); 
    111106        kentta.SetTileMethod('a', LisaaAsema)     ; 
     107        kentta.SetTileMethod('L', LisaaLiekki)    ; 
    112108        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO)  ; 
    113109        Level.CreateBorders(); 
     
    116112        tausta.Image = taustaKuva; 
    117113        Add(tausta,-3); 
     114        Layers[-3].RelativeTransition = new Vector(0.5, 0.5); 
     115         
    118116 
    119117        pisteNaytto.IntFormatString = "{0} / " + pistelaskuri.MaxValue; 
     
    131129    } 
    132130 
     131    void LisaaLiekki(Vector paikka, double leveys, double korkeus) 
     132    { 
     133        Flame liekki = new Flame(liekkiKuva); 
     134        liekki.Position = paikka; 
     135        Add(liekki); 
     136    } 
     137 
    133138    void LisaaTaso2(Vector paikka, double leveys, double korkeus) 
    134139    { 
     
    150155    void LisaaTalo(Vector paikka, double leveys, double korkeus) 
    151156    { 
    152         PhysicsObject talo = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     157        PhysicsObject talo = PhysicsObject.CreateStaticObject(leveys*1.7, korkeus); 
    153158        talo.Position = paikka; 
    154159        talo.Image = tukki; 
     
    173178        vihollinen.IgnoresGravity = true; 
    174179        vihollinen.Image = fly; 
     180        vihollinen.CanRotate = false; 
    175181        Add(vihollinen); 
    176182        List<Vector> polku = new List<Vector>()               ; 
     
    249255        Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, -nopeus); 
    250256        Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 
    251         Keyboard.Listen(Key.Space, ButtonState.Down, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
     257        Keyboard.Listen(Key.Up, ButtonState.Down, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    252258 
    253259        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/RescueRanger.csproj.Debug.cachefile

    r6967 r6984  
    1717Content\Barrels.xnb 
    1818Content\Asema.xnb 
     19Content\Flame.xnb 
     20Content\kentta3.xnb 
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/obj/x86/Debug/RescueRanger.csproj.FileListAbsolute.txt

    r6967 r6984  
    2525C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\Barrels.xnb 
    2626C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\Asema.xnb 
     27C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\Flame.xnb 
     28C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\kentta3.xnb 
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/obj/x86/Debug/cachefile-{D77DA1D7-8701-41C1-98B2-08AF5C040485}-targetpath.txt

    r6967 r6984  
    1717Content\Barrels.xnb 
    1818Content\Asema.xnb 
     19Content\Flame.xnb 
     20Content\kentta3.xnb 
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/RescueRangerContent.contentproj

    r6967 r6984  
    165165    </Compile> 
    166166  </ItemGroup> 
     167  <ItemGroup> 
     168    <Compile Include="kentta3.txt"> 
     169      <Name>kentta3</Name> 
     170      <Importer>TextFileImporter</Importer> 
     171      <Processor>TextFileContentProcessor</Processor> 
     172    </Compile> 
     173  </ItemGroup> 
     174  <ItemGroup> 
     175    <Compile Include="Flame.png"> 
     176      <Name>Flame</Name> 
     177      <Importer>TextureImporter</Importer> 
     178      <Processor>TextureProcessor</Processor> 
     179    </Compile> 
     180  </ItemGroup> 
    167181  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    168182  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/kentta1.txt

    r6967 r6984  
    11###############iiiiii##...............#############.............########### 
    2 #.............##iiii##......................V........................###### 
    3 #..............##ii##.................................................##### 
    4 #...............####.......########..................#####............##### 
     2#..u..........##iiii##......................V........................###### 
     3#.u............##ii##.................................................##### 
     4#u..............####.......########..................#####............##### 
    55#................##.......#iiiiiiii###.............#iiiii###...........#### 
    66#...a............##......##iiiiiiii####.........####iiiiiii###.........#### 
    77#......N.........##.....###iiiiiiii#################iiiii#####..........### 
    8 #.tttttttt..#.....#.....############..............##iiiii#...............## 
    9 #..........##...............uuuu....................uuu.#................## 
     8#.tttttttt.u#.....#.....############..............##iiiii#...............## 
     9#.........u##...............uuuu....................uuu.#................## 
    1010#.........#i#...............uuuu........................................### 
    1111#.........#i#...............uuuu.........*..............................### 
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/kentta2.txt

    r6967 r6984  
    1414#......uu.........................##iuui# 
    1515#uuuuuu..........#####..............##u.# 
    16 #u...............#####......###........u# 
    17 #...........#######........##ii##.......# 
     16#u...............#####......##.........u# 
     17#...........#######........##i##........# 
    1818#...........#iiii################.......# 
    1919#.......########iiiiii#######...........# 
     
    2222#iii#...........#iiiiiiiiii##........#ii# 
    2323#iii###.........####iiiiiii##........#### 
    24 #.uu.####..........##uuuuuu#............# 
     24#.uu.###...........##uuuuuu#............# 
    2525########........##...uuuuuu......*......# 
    2626###uuu###.......#u...uuuuuu.###=====##..# 
  • 2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/obj/x86/Debug/ContentPipeline.xml

    r6967 r6984  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2015-07-23T11:13:44.8751539+03:00</Time> 
     38      <Time>2015-07-23T13:55:25.8627835+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\kentta2.xnb</Output> 
    47       <Time>2015-07-23T11:35:25.3287406+03:00</Time> 
     47      <Time>2015-07-23T13:58:20.3032258+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    163163      <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\Asema.xnb</Output> 
    164164      <Time>2015-07-23T09:59:13.1361402+03:00</Time> 
     165    </Item> 
     166    <Item> 
     167      <Source>Flame.png</Source> 
     168      <Name>Flame</Name> 
     169      <Importer>TextureImporter</Importer> 
     170      <Processor>TextureProcessor</Processor> 
     171      <Options>None</Options> 
     172      <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\Flame.xnb</Output> 
     173      <Time>2015-07-23T13:50:31.0253027+03:00</Time> 
     174    </Item> 
     175    <Item> 
     176      <Source>kentta3.txt</Source> 
     177      <Name>kentta3</Name> 
     178      <Importer>TextFileImporter</Importer> 
     179      <Processor>TextFileContentProcessor</Processor> 
     180      <Options>None</Options> 
     181      <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\kentta3.xnb</Output> 
     182      <Time>2015-07-23T14:07:26.9288829+03:00</Time> 
    165183    </Item> 
    166184    <BuildSuccessful>true</BuildSuccessful> 
Note: See TracChangeset for help on using the changeset viewer.