Changeset 8017 for 2016/27/ohjaajat


Ignore:
Timestamp:
2016-07-08 09:34:38 (3 years ago)
Author:
sieerinn
Message:
 
Location:
2016/27/ohjaajat/VenienteFragore/VenienteFragore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/LevelCreationMethods.cs

    r8015 r8017  
    5757            { 
    5858                // Litistyy kun pelaaja hyppää päälle. 
    59                 if (player.Bottom >= goomba.Top) 
     59                if (player.Bottom >= goomba.Top - goomba.Height/2) 
    6060                { 
    6161                    goomba.Destroy(); 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs

    r8015 r8017  
    3737        private readonly List<string> collectedParts = new List<string>(); 
    3838        private IntMeter lives; 
    39         private DoubleMeter pointsCounter; 
     39        private IntMeter pointsCounter; 
    4040 
    4141        private List<Player> advenae; 
     
    107107 
    108108 
    109             pointsCounter = new DoubleMeter(0, 0, 1000000); 
     109            pointsCounter = new IntMeter(0); 
    110110            pointsCounter.Changed += PointsGained; 
    111111 
    112             StartLevel("thehub"); 
     112            StartLevel("desolatecaves"); 
    113113         
    114114 
     
    116116        } 
    117117 
    118         private void PointsGained(double oldValue, double newValue) 
     118        private void PointsGained(int oldValue, int newValue) 
    119119        { 
    120120            double diff = newValue - oldValue; 
     
    129129            Label liveMeter = new Label(Screen.Width * 0.10, Screen.Height * 0.05); 
    130130            liveMeter.Position = new Vector(Screen.Left + Screen.Width * 0.165, Screen.Top - Screen.Height * 0.1); 
    131            
    132              
    133131            liveMeter.BindTo(lives); 
    134132            liveMeter.HorizontalAlignment = HorizontalAlignment.Center; 
     
    144142            face.Position = new Vector(Screen.Left + Screen.Width * 0.12, Screen.Top - Screen.Height * 0.1); 
    145143            Add(face); 
     144 
     145            Label scoreLabel = new Label(pointsCounter); 
     146            scoreLabel.X = Screen.Right - 200; 
     147            scoreLabel.Y = Screen.Top - 100; 
     148            Add(scoreLabel); 
    146149        } 
    147150 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/cheeryjumpisland.tmx

    r8014 r8017  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="15" tilewidth="50" tileheight="50" nextobjectid="28"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="15" tilewidth="50" tileheight="50" nextobjectid="32"> 
    33 <tileset firstgid="1" name="VenienteFragoreTileset" tilewidth="50" tileheight="50" tilecount="64" columns="8"> 
    44  <image source="tileset.png" width="400" height="400"/> 
     
    109109   </properties> 
    110110  </object> 
     111  <object id="28" name="collectible" type="collectible" gid="9" x="2250" y="450" width="50" height="50"/> 
     112  <object id="29" name="collectible" type="collectible" gid="9" x="3300" y="500" width="50" height="50"/> 
     113  <object id="30" name="collectible" type="collectible" gid="9" x="3450" y="500" width="50" height="50"/> 
     114  <object id="31" name="collectible" type="collectible" gid="9" x="4600" y="400" width="50" height="50"/> 
    111115 </objectgroup> 
    112116 <layer name="Etuala" width="120" height="15"> 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/desolatecaves.tmx

    r8015 r8017  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="40" tilewidth="50" tileheight="50" nextobjectid="19"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="40" tilewidth="50" tileheight="50" nextobjectid="26"> 
    33 <properties> 
    44  <property name="background" value="cavebackground"/> 
     
    4040  </object> 
    4141  <object id="18" name="collectible" type="collectible" gid="9" x="1200" y="1500" width="50" height="50"/> 
     42  <object id="19" name="collectible" type="collectible" gid="9" x="900" y="1800" width="50" height="50"/> 
     43  <object id="20" name="collectible" type="collectible" gid="9" x="1150" y="1800" width="50" height="50"/> 
     44  <object id="21" name="collectible" type="collectible" gid="9" x="2150" y="1650" width="50" height="50"/> 
     45  <object id="22" name="collectible" type="collectible" gid="9" x="2600" y="1700" width="50" height="50"/> 
     46  <object id="23" name="collectible" type="collectible" gid="9" x="3300" y="1550" width="50" height="50"/> 
     47  <object id="24" name="collectible" type="collectible" gid="9" x="4550" y="1650" width="50" height="50"/> 
     48  <object id="25" name="collectible" type="collectible" gid="9" x="4150" y="1650" width="50" height="50"/> 
    4249 </objectgroup> 
    4350 <layer name="Etuala" width="120" height="40"> 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/ice.tmx

    r8014 r8017  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="15" tilewidth="50" tileheight="50" nextobjectid="39"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="15" tilewidth="50" tileheight="50" nextobjectid="50"> 
    33 <tileset firstgid="1" name="VenienteFragoreTileset" tilewidth="50" tileheight="50" tilecount="64" columns="8"> 
    44  <image source="tileset.png" width="400" height="400"/> 
     
    7171   </properties> 
    7272  </object> 
     73  <object id="39" name="collectible" type="collectible" gid="9" x="950" y="700" width="50" height="50"/> 
     74  <object id="40" name="collectible" type="collectible" gid="9" x="1000" y="700" width="50" height="50"/> 
     75  <object id="41" name="collectible" type="collectible" gid="9" x="1600" y="400" width="50" height="50"/> 
     76  <object id="42" name="collectible" type="collectible" gid="9" x="2300" y="300" width="50" height="50"/> 
     77  <object id="43" name="collectible" type="collectible" gid="9" x="3200" y="400" width="50" height="50"/> 
     78  <object id="44" name="collectible" type="collectible" gid="9" x="3950" y="650" width="50" height="50"/> 
     79  <object id="45" name="collectible" type="collectible" gid="9" x="4000" y="650" width="50" height="50"/> 
     80  <object id="46" name="collectible" type="collectible" gid="9" x="4050" y="650" width="50" height="50"/> 
     81  <object id="47" name="collectible" type="collectible" gid="9" x="4550" y="400" width="50" height="50"/> 
     82  <object id="48" name="collectible" type="collectible" gid="9" x="5150" y="350" width="50" height="50"/> 
     83  <object id="49" name="collectible" type="collectible" gid="9" x="5600" y="500" width="50" height="50"/> 
    7384 </objectgroup> 
    7485 <layer name="Etuala" width="120" height="15"> 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/thehub.tmx

    r8015 r8017  
    85850,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,6,6,6,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    86860,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    87 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    88 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    89 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
     870,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,5,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
     880,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
     890,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    90900,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    91915,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,5,5,0,0,0,0,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
     
    114114 </layer> 
    115115 <objectgroup name="Oliot" offsetx="-2" offsety="-3.0303"> 
    116   <object id="45" type="moving" gid="5" x="2800" y="1350" width="152" height="50"> 
     116  <object id="45" type="moving" gid="5" x="2800" y="1152" width="152" height="50"> 
    117117   <properties> 
    118118    <property name="directionx" value="0"/> 
     
    136136   </properties> 
    137137  </object> 
    138   <object id="57" type="moving" gid="5" x="1900" y="1200" width="302" height="50"> 
     138  <object id="57" type="moving" gid="5" x="1900" y="1100" width="302" height="50"> 
    139139   <properties> 
    140140    <property name="directionx" value="200"/> 
Note: See TracChangeset for help on using the changeset viewer.