Changeset 6547 for 2015/27


Ignore:
Timestamp:
2015-06-29 23:43:37 (4 years ago)
Author:
empaheik
Message:

Kriittisenloistavaa kuvitusta.

Location:
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs

    r6546 r6547  
    44using System.Text; 
    55using Jypeli; 
     6 
     7/* 
     8 *Klassisia muistutuksia  
     9 * 3 
     10 * 2    Pelaajan päällä näkyvät elementit 
     11 * 1    Pelaaja 
     12 * 0    Lisäkoriste 
     13 * -1   Perustiili 
     14 * -2 
     15 */ 
     16 
    617 
    718public partial class TheLegendOfGabriel : PhysicsGame 
     
    2940    { 
    3041        player = new Creature(TILE_SIZE, TILE_SIZE); 
     42        player.CanRotate = false; 
    3143        player.MovementSpeed = 2300; 
    3244        player.Position = position; 
     
    3547        player.MoveAnimations[Direction.Up] = playerWalkUp; 
    3648        player.MoveAnimations[Direction.Down] = playerWalkDown; 
    37         player.Image = playerWalkDown.CurrentFrame; 
     49        player.Image = playerWalkDown.CurrentFrame;         
    3850        Add(player, 1); 
    3951 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs

    r6546 r6547  
    5151    { 
    5252        if (!Game.IsPaused) 
     53        { 
    5354            Push(direction.GetVector() * MovementSpeed); 
     55        } 
    5456    } 
    5557 
     
    9597 
    9698    [AssetName("walkright")] 
    97     private Animation playerWalkRight; 
     99    internal Animation playerWalkRight; 
    98100    [AssetName("walkright", mirror: true)] 
    99     private Animation playerWalkLeft; 
     101    internal Animation playerWalkLeft; 
    100102    [AssetName("walkup")] 
    101103    private Animation playerWalkUp; 
     
    105107    #endregion 
    106108 
    107     public override void Begin() 
     109    public override void Begin()         
    108110    { 
    109111        SmoothTextures = false; 
     
    140142        ClearAll(); 
    141143        CreateLevel("level1"); 
    142         //  CreatePlayer(new Vector(-Level.Width/3, Level.Bottom + TILE_SIZE * 2)); 
     144        //CreatePlayer(new Vector(-Level.Width/3, Level.Bottom + TILE_SIZE * 2)); 
    143145        SetControls(); 
    144146        Camera.ZoomToLevel(); 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/TheLegendOfGabrielContent.contentproj

    r6545 r6547  
    109109    </Compile> 
    110110  </ItemGroup> 
     111  <ItemGroup> 
     112    <Compile Include="gran.png"> 
     113      <Name>gran</Name> 
     114      <Importer>TextureImporter</Importer> 
     115      <Processor>TextureProcessor</Processor> 
     116    </Compile> 
     117    <Compile Include="gun.png"> 
     118      <Name>gun</Name> 
     119      <Importer>TextureImporter</Importer> 
     120      <Processor>TextureProcessor</Processor> 
     121    </Compile> 
     122    <Compile Include="helm.png"> 
     123      <Name>helm</Name> 
     124      <Importer>TextureImporter</Importer> 
     125      <Processor>TextureProcessor</Processor> 
     126    </Compile> 
     127    <Compile Include="letter.png"> 
     128      <Name>letter</Name> 
     129      <Importer>TextureImporter</Importer> 
     130      <Processor>TextureProcessor</Processor> 
     131    </Compile> 
     132  </ItemGroup> 
    111133  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    112134  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level1.tmx

    r6544 r6547  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="25"> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="27"> 
    33 <tileset firstgid="1" name="testlevel4" tilewidth="20" tileheight="20"> 
    44  <image source="tileset.png" width="200" height="200"/> 
     
    1919 <objectgroup color="#65e2d8" name="exit"> 
    2020  <properties> 
    21    <property name="goto" value="level2@top"/> 
     21   <property name="goto" value="level2@bottom"/> 
    2222  </properties> 
    2323  <object id="19" x="100" y="0" width="20" height="20"> 
     
    3535  <object id="24" name="Alexander" x="47.3564" y="728.039" width="20" height="20"/> 
    3636 </objectgroup> 
     37 <objectgroup color="#a41b80" name="interactable"/> 
    3738</map> 
Note: See TracChangeset for help on using the changeset viewer.