Changeset 9198


Ignore:
Timestamp:
2017-07-28 11:35:34 (2 years ago)
Author:
otosjahn
Message:
 
Location:
2017/utsjoki/RásteE/Space game Mau vs Mjieau
Files:
10 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space game Mau vs MjieauContent/Space game Mau vs MjieauContent.contentproj

    r9171 r9198  
    126126    </Compile> 
    127127  </ItemGroup> 
     128  <ItemGroup> 
     129    <Compile Include="Fontti.spritefont"> 
     130      <Name>Fontti</Name> 
     131      <Importer>FontDescriptionImporter</Importer> 
     132      <Processor>FontDescriptionProcessor</Processor> 
     133    </Compile> 
     134  </ItemGroup> 
    128135  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    129136  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space game Mau vs MjieauContent/kentta1.txt

    r9171 r9198  
    1 ...................*..................*.........*...............*..................*.........................*.....................*...............*...........p# 
    2 ..................#..................#...............#..........*................*..........#...*...............*.............*................*...........*....p# 
    3 ....................*......*.....*........#.*.........*........#........*..#.........*...............*.............*.......#...*.........#............*.........p# 
    4 ...........*...............#.........*.........#.........#.........*...........#.....*...#.....*..#......*........#...*.............#...........*........*.......p# 
    5 .................*.............*....#............*..........*#..........#..........#................#.......*............#.....*..........#.....................p# 
    6 ..................#.........*..............*....#......#............#....*......*......#.......*........#........*..........*.....#...........*.....*...........p# 
    7 ...............*.........*.....#......*................*.....#...........#........*.......#........#......#.......#*.........#.......*.......*.....*............p# 
    8 ............#........*........*......#........#.......#......*.....*...#............###.......#................*..........#....#.......*.........#.......*.......p# 
    9 ..........*.......#.....*.............#....*.....*.......#..........#.......#..........#......#....*...#..*.........#............#.......#......*...............p# 
    10 ...............#..........#......#..........#.....*.......#.....*..... ..#.....*#....*....*.......#..*..........##......#......#...#....................V........p# 
    11 .............*...........*.............*......#..*....#..........*..........*..........#...............#......'#....#...........*.......#.........*..............p# 
    12 .....................#.....#......*..#....*....#.........#...*...... .##......#...........##........##.......*....#..*...*.......#.....#..*...*.....#.......p# 
    13 .............#....*..*.............*.....#...*..... #........*......*....*...     #.*........#........*...#......#.........*#.....#.......*..#......*...........p# 
    14 ......*....*........#......####.....*..... #......#.....#......... #........*.......#.........#.........#.*.....*....*....*..........*...#.......*.#.......#....#..p# 
    15 ......#..........*........*.......*...#.......*...........   #.*..........#..*..........#.......#.*.......*...#...*..........*.......*..........#...............p## 
    16 ...........#.....#......#.....#......*.....#.....#....................... ..#.........#................#........#.*....*.......#......*...#......*..#..*.....pp### 
    17 .N.....**ppppppppppppppppppppppppppppppppppppppppppppp.........p.........ppppppppppppppppppp.......ppppppppppppppp.....pp....pppppppppppppppppppppppppppppppppp### 
    18 AAAAAA################################################&&&&&&#####&&&&&&#####################&&&&&&#################&&&&&&&&######################################w 
     1...................*..................*.........*...............*..................*.........................*.........*............*...............*...........#...p# 
     2.........*......*...#..................#...............#..........*.....#...........*..........#...*............#...*.............*........*.......*..........#.*...p# 
     3....................*..#....*.....*........#.*.........*........#........*..#.........*......*.........*...#......*.....*.......#...*.........#...........*#........p# 
     4...........*.#..............#.........*.........#.........#.........*...........#.....*...#.....*..#......*........#...*.............#..........#.*........*........p# 
     5......#.........#..*......*.......*....#............*..........*#..........#..........#........*.........#.......*........*....#.....*.........#...........#........p# 
     6.........*#.........#........#.*.............#.*....#......#........*....#....*......*.........#.......*........#........*..........*.....#...........*...#..*...#..p# 
     7.......*........*.........*.....#......*..........*......*.....#...........#........*.......#........#......#.......#*.........#.......*.......*.....*..#...........p# 
     8........*....#........*........*.....#........#.......#......*.....*...#............###.....*....#................*.......*...#....#.......*.#.....*...#.......*....p# 
     9........#..*......*.#.....*.......*......#....*.....*.......#...........#........#..........#......#....*...#..*.........#..*.....*........#.......#....*....*......p# 
     10...............#..........#......#..........#.....*........#.....*..... ..#......*#....*....*.......#..*.........###...*....#.....#......#.........*............V...p# 
     11.......*......*...........*.............*......#..*....#..........*..........*..........#.......*........#............#......#.......#.....*.......#....*...........p# 
     12....#......#...........#.....#.....*..#....*.....#...*......#...*...... .##......#.........##........##......*.....#..*...*.........#.....#..*...*.......#..........p# 
     13......*.#.....#....*..*............*.....#...*..... #........*......*....*.........#.*......*..*...#........*....#.......#.......*#......#.......*..#......*........p# 
     14.........*........#......####*.....*..... #......#.....#......... #........*.........#.........#.........#.*.....*....*....*.........*.....#.......*.#.....#....#...p# 
     15...#.....*.......*........*.......*....#.......*.........*..  #.*.........#..*........*..#.......#.*...*....*...*.#...*.....#....*....#...*..........#..............p# 
     16.........#........#.....#......#.....#......*.....#.....#...................*#.... ..#.......#........*......#......#.*....*..#......*#......*...#......*..#..*.....p# 
     17.N....ppppp*****pppppppppppppppppppppppppppppppppppppp.........p.........ppppppppppppppppppp.......ppppppppppppppp.....pp....****pppppppppppppppppppppppppppppppppppp# 
     18AAAAAA################################################&&&&&&#####&&&&&&#####################&&&&&&#################&&&&&&&&########################################## 
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space_game_Mau_vs_Mjieau/Space_game_Mau_vs_Mjieau.cs

    r9171 r9198  
    1616    //PlatformCharacter pelaaja2; 
    1717 
     18    Font fontti = LoadFont("Fontti"); 
     19 
    1820    Vector alku; 
    1921    Image pelaajanKuva = LoadImage("mau1"); 
     
    3032    public override void Begin() 
    3133    { 
     34        ClearAll(); 
     35        MessageDisplay.Font = fontti; 
    3236        ääni = maaliAani.CreateSound(); 
    3337        Gravity = new Vector(0, -1000); 
     
    158162        if (pelaaja1.Width <= 15) 
    159163        { 
     164            Label tekstikentta = new Label(); 
     165            tekstikentta.Font = fontti; 
     166            tekstikentta.Text = "Boađán ruovttoluotta!"; 
     167            tekstikentta.TextColor = Color.Red; 
     168            tekstikentta.TextScale *= 3; 
     169            Add(tekstikentta); 
     170 
    160171            pelaaja1.Destroy(); 
     172            Timer.SingleShot(2, Begin); 
    161173        } 
    162174    } 
     
    164176    { 
    165177        maali.Destroy(); 
    166          
     178 
     179        Label tekstikentta = new Label(); 
     180        tekstikentta.Font = fontti; 
     181        tekstikentta.Text = "VUITEN!"; 
     182        tekstikentta.TextColor = Color.Green; 
     183        tekstikentta.TextScale *= 7; 
     184        Add(tekstikentta); 
     185 
    167186        Explosion rajahdys = new Explosion(300); 
    168187        rajahdys.Sound = TheEnd; 
    169188        rajahdys.Position = maali.Position; 
    170189        Add(rajahdys); 
    171     } 
     190        Timer.SingleShot(5, delegate { LopetaPeli(); }); 
     191        return; 
     192    } 
     193    void LopetaPeli() { Exit();return; } 
    172194 
    173195    void OsuuMaahan (PhysicsObject pelaaja2, PhysicsObject taso) 
     
    175197        ääni.Pitch = (pelaaja1.Y / Level.Height * 2) - 1; 
    176198        ääni.Play(); 
     199        //MessageDisplay.Add("Smávun!"); 
    177200    } 
    178201    void LisaaNappaimet() 
     
    189212        Keyboard.Listen(Key.W, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    190213 
     214        Keyboard.Listen(Key.Enter, ButtonState.Pressed, Mauosuupiikkiin, "Pelaaja hyppää", pelaaja1, pelaaja1); 
     215 
    191216        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
    192217 
     
    212237    { 
    213238        maaliAani.Play(); 
    214         MessageDisplay.Add("Keräsit tähden!"); 
     239        //MessageDisplay.Add("Boađán ruovttoluotta!"); 
    215240        tahti.Destroy(); 
    216241 
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space_game_Mau_vs_Mjieau/Space_game_Mau_vs_Mjieau.csproj.Debug.cachefile

    r9171 r9198  
    1212Content\tÀhteen.xnb 
    1313Content\maailmaloppu.xnb 
     14Content\Fontti.xnb 
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space_game_Mau_vs_Mjieau/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r9171 r9198  
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\Space game Mau vs Mjieau\Space game Mau vs Mjieau\Space_game_Mau_vs_Mjieau\bin\x86\Debug\Content\kentta1.xnb</Output> 
    20       <Time>2017-07-27T14:47:37.4042844+03:00</Time> 
     20      <Time>2017-07-28T11:24:39.923557+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    119119      <Time>2017-07-27T13:58:36.4178993+03:00</Time> 
    120120    </Item> 
     121    <Item> 
     122      <Source>Fontti.spritefont</Source> 
     123      <Name>Fontti</Name> 
     124      <Importer>FontDescriptionImporter</Importer> 
     125      <Processor>FontDescriptionProcessor</Processor> 
     126      <Options>None</Options> 
     127      <Output>C:\MyTemp\Space game Mau vs Mjieau\Space game Mau vs Mjieau\Space_game_Mau_vs_Mjieau\bin\x86\Debug\Content\Fontti.xnb</Output> 
     128      <Time>2017-07-28T09:30:43.244557+03:00</Time> 
     129    </Item> 
    121130    <BuildSuccessful>true</BuildSuccessful> 
    122131    <Settings> 
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space_game_Mau_vs_Mjieau/obj/x86/Debug/Space_game_Mau_vs_Mjieau.csproj.FileListAbsolute.txt

    r9171 r9198  
    2020C:\MyTemp\Space game Mau vs Mjieau\Space game Mau vs Mjieau\Space_game_Mau_vs_Mjieau\bin\x86\Debug\Content\tÀhteen.xnb 
    2121C:\MyTemp\Space game Mau vs Mjieau\Space game Mau vs Mjieau\Space_game_Mau_vs_Mjieau\bin\x86\Debug\Content\maailmaloppu.xnb 
     22C:\MyTemp\Space game Mau vs Mjieau\Space game Mau vs Mjieau\Space_game_Mau_vs_Mjieau\bin\x86\Debug\Content\Fontti.xnb 
  • 2017/utsjoki/RásteE/Space game Mau vs Mjieau/Space game Mau vs Mjieau/Space_game_Mau_vs_Mjieau/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r9171 r9198  
    1212Content\tÀhteen.xnb 
    1313Content\maailmaloppu.xnb 
     14Content\Fontti.xnb 
Note: See TracChangeset for help on using the changeset viewer.