Changeset 7735 for 2016/27/ohjaajat


Ignore:
Timestamp:
2016-07-04 17:43:08 (3 years ago)
Author:
empaheik
Message:

Testattiin pelaajan liikkumista kämäisillä kontrolleilla. Jänniä uusi tasotyyppejä.

Location:
2016/27/ohjaajat
Files:
2 deleted
8 edited

Legend:

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

    r7734 r7735  
    77using Jypeli.Widgets; 
    88 
     9class SimplePlatformCharacter : SimplePhysics.Object 
     10{ 
     11    public bool IsGrounded { get; private set; } 
     12 
     13    public Direction FacingDirection { get; private set; } 
     14 
     15    public SimplePlatformCharacter(double width, double height) : base(width, height) 
     16    { 
     17        FacingDirection = Direction.Right; 
     18    } 
     19 
     20    public void Walk(double speed) 
     21    { 
     22        if (speed > 0) FacingDirection = Direction.Right; 
     23        if (speed < 0) FacingDirection = Direction.Left; 
     24        Velocity = new Vector(speed, Velocity.Y); 
     25    } 
     26 
     27    public override void Update(Time time) 
     28    { 
     29        base.Update(time); 
     30        IsGrounded = Game.Collisions(this, new Vector(0, -2), true).Count > 0; 
     31    } 
     32} 
     33 
     34class Player : SimplePlatformCharacter 
     35{ 
     36    public bool IsCrouching { get; private set; } 
     37 
     38    public bool Crouch { get; set; } 
     39 
     40    public SimplePhysics.Object Carrying { get; set; } 
     41 
     42    private readonly double fullHeight; 
     43    private readonly double crouchHeight; 
     44 
     45    public Player(double width, double height) : base(width, height) 
     46    { 
     47        fullHeight = height; 
     48        crouchHeight = height / 2.0 - 1.0; 
     49    } 
     50 
     51    public override void Update(Time time) 
     52    { 
     53        if (!IsCrouching && Crouch) 
     54        { 
     55            var oldBottom = Bottom; 
     56            Height = crouchHeight; 
     57            Bottom = oldBottom; 
     58            IsCrouching = true; 
     59        } 
     60 
     61        if (IsCrouching && !Crouch) 
     62        { 
     63            var oldBottom = Bottom; 
     64            Height = fullHeight; 
     65            Bottom = oldBottom; 
     66            IsCrouching = false; 
     67 
     68            if (Game.Collisions(this, Vector.Zero, true).Count > 0) 
     69            { 
     70                Height = crouchHeight; 
     71                Bottom = oldBottom; 
     72                IsCrouching = true; 
     73            } 
     74        } 
     75 
     76        base.Update(time); 
     77    } 
     78} 
     79 
     80 
    981public class VenienteFragore : SimplePhysics.Game 
    1082{ 
     
    1284    private Dictionary<string, ObjectMethod> objectMethods; 
    1385 
     86    Player advenA; 
     87 
    1488    public VenienteFragore() : base(tileSize: 50) 
    1589    { 
     
    2195        objectMethods.Add("ball", TestBall); 
    2296        objectMethods.Add("player", CreatePlayer); 
    23         objectMethods.Add("moving", CreatePlayer); 
     97        objectMethods.Add("moving", CreateMovingPlatform); 
    2498 
    2599        var tileMap = TiledTileMap.FromLevelAsset("thehub"); 
    26         tileMap.SetTileMethod("Tile Layer 1", TileMethod); 
    27         tileMap.SetObjectMethod("Object Layer 1", CreateObject); 
     100        tileMap.SetTileMethod("Tiilet", TileMethod); 
     101        tileMap.SetObjectMethod("Oliot", CreateObject); 
    28102        tileMap.Execute(); 
    29103 
     
    31105 
    32106        Camera.ZoomToAllObjects(); 
    33  
    34         Level.Background.Color = Color.AshGray; 
     107         
     108 
     109        Level.Background.Color = Color.DarkOrange; 
    35110 
    36111        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     
    56131    void CreatePlayer(Vector position, double width, double height, Dictionary<string, string> properties) 
    57132    { 
    58          
     133        advenA = new Player(TileSize * 0.99, TileSize * 1.98); 
     134        advenA.Position = position + new Vector(0, advenA.Height); 
     135        advenA.Friction = 0.2; 
     136        advenA.Tag = "player"; 
     137        advenA.Crushed += advenA.Destroy; 
     138        advenA.CollisionIgnoreGroup = 1; 
     139        Add(advenA); 
     140 
     141        Keyboard.ListenWSAD(ButtonState.Down, Liikuta, "hurdur"); 
     142 
     143    } 
     144 
     145    void Liikuta(Vector suunta) 
     146    { 
     147        if(suunta.Y > 0) 
     148        { 
     149            Jump(advenA); 
     150        } 
     151        advenA.Walk(suunta.X * 200); 
     152    } 
     153 
     154    private void Jump(SimplePlatformCharacter player) 
     155    { 
     156        if (player.IsGrounded) 
     157            player.Velocity = new Vector(player.Velocity.X, 500); 
    59158    } 
    60159 
     
    110209                }); 
    111210                break; 
     211            case "foreground": 
     212                tile.IgnoresCollisionResponse = true; 
     213                break; 
    112214            default: 
    113215                throw new Exception("Unknown tile feature: " + feature); 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/VenienteFragoreContent.contentproj

    r7665 r7735  
    4646  </ItemGroup> 
    4747  <ItemGroup> 
    48     <Compile Include="testi.png"> 
    49       <Name>testi</Name> 
    50       <Importer>TextureImporter</Importer> 
    51       <Processor>TextureProcessor</Processor> 
    52     </Compile> 
     48    <None Include="thehub.tmx"> 
     49      <Name>thehub</Name> 
     50      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
     51    </None> 
    5352  </ItemGroup> 
    5453  <ItemGroup> 
    55     <None Include="testi.tmx"> 
    56       <Name>testi</Name> 
    57       <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    58     </None> 
    59     <None Include="thehub.tmx"> 
    60       <Name>thehub</Name> 
     54    <None Include="VenienteFragoreTileset.tsx"> 
     55      <Name>VenienteFragoreTileset</Name> 
    6156      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    6257    </None> 
     
    6964    </Compile> 
    7065  </ItemGroup> 
    71   <ItemGroup> 
    72     <None Include="VenienteFragoreTileset.tsx"> 
    73       <Name>VenienteFragoreTileset</Name> 
    74       <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    75     </None> 
    76   </ItemGroup> 
    7766  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7867  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/VenienteFragoreTileset.tsx

    r7665 r7735  
    22<tileset name="VenienteFragoreTileset" tilewidth="50" tileheight="50" tilecount="64" columns="8"> 
    33 <image source="tileset.png" width="400" height="400"/> 
     4 <tile id="1"> 
     5  <properties> 
     6   <property name="type" value="break"/> 
     7  </properties> 
     8 </tile> 
     9 <tile id="2"> 
     10  <properties> 
     11   <property name="type" value="death"/> 
     12  </properties> 
     13 </tile> 
     14 <tile id="4"> 
     15  <properties> 
     16   <property name="type" value="oneway"/> 
     17  </properties> 
     18 </tile> 
     19 <tile id="6"> 
     20  <properties> 
     21   <property name="type" value="ice"/> 
     22  </properties> 
     23 </tile> 
    424</tileset> 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/thehub.tmx

    r7665 r7735  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="60" height="30" tilewidth="50" tileheight="50" nextobjectid="1"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="60" height="30" tilewidth="50" tileheight="50" nextobjectid="63"> 
    33 <tileset firstgid="1" source="VenienteFragoreTileset.tsx"/> 
    4  <layer name="Tile Layer 1" width="60" height="30"> 
     4 <layer name="Tiilet" width="60" height="30"> 
     5  <properties> 
     6   <property name="type" value="death"/> 
     7  </properties> 
    58  <data encoding="csv"> 
    690,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
     
    13160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,7,1,1,1,1, 
    14170,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7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6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,7,7, 
    32 0,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,0,7, 
     340,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,7,7, 
     350,0,5,5,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,0,7, 
    33360,0,0,0,0,0,0,6,6,6,0,0,0,6,6,6,6,6,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0, 
    34370,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0, 
    35 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,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 
     386,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,3,3,3,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 
    3639</data> 
    3740 </layer> 
     41 <objectgroup name="Oliot"> 
     42  <object id="45" type="moving" gid="5" x="2450" y="550" width="50" height="50"> 
     43   <properties> 
     44    <property name="directionx" value="0"/> 
     45    <property name="directiony" value="100"/> 
     46    <property name="distance" value="400"/> 
     47   </properties> 
     48  </object> 
     49  <object id="54" name="player" type="player" gid="9" x="1500" y="1000" width="50" height="100"/> 
     50  <object id="55" type="moving" gid="5" x="1950" y="800" width="50" height="50"> 
     51   <properties> 
     52    <property name="directionx" value="0"/> 
     53    <property name="directiony" value="100"/> 
     54    <property name="distance" value="400"/> 
     55   </properties> 
     56  </object> 
     57  <object id="56" type="moving" gid="5" x="650" y="800" width="50" height="50"> 
     58   <properties> 
     59    <property name="directionx" value="0"/> 
     60    <property name="directiony" value="100"/> 
     61    <property name="distance" value="400"/> 
     62   </properties> 
     63  </object> 
     64  <object id="57" type="moving" gid="5" x="50" y="900" width="50" height="50"> 
     65   <properties> 
     66    <property name="directionx" value="0"/> 
     67    <property name="directiony" value="100"/> 
     68    <property name="distance" value="400"/> 
     69   </properties> 
     70  </object> 
     71  <object id="58" type="moving" gid="5" x="50" y="1150" width="50" height="50"> 
     72   <properties> 
     73    <property name="directionx" value="0"/> 
     74    <property name="directiony" value="100"/> 
     75    <property name="distance" value="400"/> 
     76   </properties> 
     77  </object> 
     78 </objectgroup> 
    3879</map> 
  • 2016/27/ohjaajat/assets/VenienteFragoreTileset.tsx

    r7662 r7735  
    22<tileset name="VenienteFragoreTileset" tilewidth="50" tileheight="50" tilecount="64" columns="8"> 
    33 <image source="tileset.png" width="400" height="400"/> 
     4 <tile id="1"> 
     5  <properties> 
     6   <property name="type" value="break"/> 
     7  </properties> 
     8 </tile> 
     9 <tile id="2"> 
     10  <properties> 
     11   <property name="type" value="death"/> 
     12  </properties> 
     13 </tile> 
     14 <tile id="4"> 
     15  <properties> 
     16   <property name="type" value="oneway"/> 
     17  </properties> 
     18 </tile> 
     19 <tile id="6"> 
     20  <properties> 
     21   <property name="type" value="ice"/> 
     22  </properties> 
     23 </tile> 
    424</tileset> 
  • 2016/27/ohjaajat/assets/thehub.tmx

    r7732 r7735  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="60" height="30" tilewidth="50" tileheight="50" nextobjectid="32"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="60" height="30" tilewidth="50" tileheight="50" nextobjectid="63"> 
    33 <tileset firstgid="1" source="VenienteFragoreTileset.tsx"/> 
    44 <layer name="Tiilet" width="60" height="30"> 
     
    20200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    21210,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,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, 
    22 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,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, 
    23 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,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, 
     220,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,8,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, 
     230,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 
    24240,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,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,7,7, 
    35 0,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,0,7, 
     350,0,5,5,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,1,1,1,0,0,0,0,0,0,0,0,7,7,0,7, 
    36360,0,0,0,0,0,0,6,6,6,0,0,0,6,6,6,6,6,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0, 
    37370,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0, 
     
    4040 </layer> 
    4141 <objectgroup name="Oliot"> 
    42   <object id="4" gid="5" x="2400" y="500" width="50" height="50"/> 
    43   <object id="6" gid="5" x="2450" y="500" width="50" height="50"/> 
    44   <object id="7" gid="5" x="2500" y="500" width="50" height="50"/> 
    45   <object id="8" gid="5" x="2000" y="750" width="50" height="50"/> 
    46   <object id="9" gid="5" x="1950" y="750" width="50" height="50"/> 
    47   <object id="10" gid="5" x="600" y="800" width="50" height="50"/> 
    48   <object id="11" gid="5" x="650" y="800" width="50" height="50"/> 
    49   <object id="12" gid="5" x="1100" y="900" width="50" height="50"/> 
    50   <object id="13" gid="5" x="50" y="1250" width="50" height="50"/> 
    51   <object id="14" gid="5" x="0" y="1250" width="50" height="50"/> 
    52   <object id="15" gid="5" x="50" y="950" width="50" height="50"/> 
    53   <object id="16" gid="5" x="0" y="950" width="50" height="50"> 
     42  <object id="45" type="moving" gid="5" x="2450" y="550" width="50" height="50"> 
    5443   <properties> 
    55     <property name="directionx" type="int" value="0"/> 
    56     <property name="directiony" type="int" value="100"/> 
    57     <property name="type" value="moving"/> 
     44    <property name="directionx" value="0"/> 
     45    <property name="directiony" value="100"/> 
     46    <property name="distance" value="400"/> 
     47   </properties> 
     48  </object> 
     49  <object id="54" name="player" type="player" gid="9" x="1500" y="1000" width="50" height="100"/> 
     50  <object id="55" type="moving" gid="5" x="1950" y="800" width="50" height="50"> 
     51   <properties> 
     52    <property name="directionx" value="0"/> 
     53    <property name="directiony" value="100"/> 
     54    <property name="distance" value="400"/> 
     55   </properties> 
     56  </object> 
     57  <object id="56" type="moving" gid="5" x="650" y="800" width="50" height="50"> 
     58   <properties> 
     59    <property name="directionx" value="0"/> 
     60    <property name="directiony" value="100"/> 
     61    <property name="distance" value="400"/> 
     62   </properties> 
     63  </object> 
     64  <object id="57" type="moving" gid="5" x="50" y="900" width="50" height="50"> 
     65   <properties> 
     66    <property name="directionx" value="0"/> 
     67    <property name="directiony" value="100"/> 
     68    <property name="distance" value="400"/> 
     69   </properties> 
     70  </object> 
     71  <object id="58" type="moving" gid="5" x="50" y="1150" width="50" height="50"> 
     72   <properties> 
     73    <property name="directionx" value="0"/> 
     74    <property name="directiony" value="100"/> 
     75    <property name="distance" value="400"/> 
    5876   </properties> 
    5977  </object> 
Note: See TracChangeset for help on using the changeset viewer.