Changeset 9923 for 2017/24/SamuelN


Ignore:
Timestamp:
2019-06-06 15:02:32 (5 months ago)
Author:
saniitty
Message:
 
Location:
2017/24/SamuelN/spaceShootergame
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/SamuelN/spaceShootergame/spaceShootergame/SpaceShooter.cs

    r9907 r9923  
    2727    Timer shootTimer; 
    2828    PhysicsObject body; 
    29     DoubleMeter scoreMeter; 
     29    IntMeter scoreMeter; 
    3030    ScoreList sl = new ScoreList(10, false, 100, "<empty>"); 
    3131 
     
    3838        Screen.Width = 1000; 
    3939        Screen.Height = 1080; 
    40         IsFullScreen = true; 
     40        //IsFullScreen = true; 
    4141        Level.Background.Color = Color.Black; 
    4242 
     
    336336        enemyHpMeter.LowerLimit += EnemyDie; 
    337337 
    338         scoreMeter = new DoubleMeter(0); 
     338        scoreMeter = new IntMeter(0); 
    339339 
    340340        Label scoreLabel = new Label(); 
     
    451451    void EndGame() 
    452452    { 
    453         scoreMeter.Value += player.Y; 
     453        scoreMeter.Value += (int)player.Y; 
    454454        ClearAll(); 
    455455        MediaPlayer.Stop(); 
     
    458458        Level.Background.Image = LoadImage("wall"); 
    459459        t = new Timer(); 
    460         t.Interval = 0.1; 
     460        t.Interval = 0.06; 
    461461        t.Timeout += CreateError; 
    462462        t.Start(); 
     
    464464    void CreateError() 
    465465    { 
    466         if (times < 40) 
     466        if (times < 50) 
    467467        { 
    468468            Widget ww = new Widget(262, 120); 
    469469            ww.Image = LoadImage("error"); 
    470470            ww.Position = Level.GetRandomPosition(); 
    471             Add(ww); 
     471            Add(ww, 2); 
    472472            PlaySound(RandomGen.SelectOne("errorSound")); 
    473473            times++; 
     
    485485        w2.Image = bsod; 
    486486        PlaySound("errorSound"); 
    487         Add(w2); 
    488         Timer.SingleShot(10, HighScores); 
     487        Add(w2, 2); 
     488        Timer.SingleShot(1, HighScores); 
    489489    } 
    490490 
     
    493493        HighScoreWindow scoreWindow = new HighScoreWindow("Highscores","Your score was %p! Enter your name:", sl, scoreMeter.Value); 
    494494        scoreWindow.Closed += SaveScores; 
     495        scoreWindow.HorizontalSizing = Sizing.FixedSize; 
     496        scoreWindow.PreferredSize = new Vector(1000, 1000); 
    495497        Add(scoreWindow); 
    496498    } 
  • 2017/24/SamuelN/spaceShootergame/spaceShootergame/bin/Windows/Debug/Data/save.dat

    r9907 r9923  
    66        <Item Index="0" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    77          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    8             <Value>i edited this score</Value> 
     8            <Value>755</Value> 
    99          </Field> 
    1010          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    11             <Value>742734829.247383</Value> 
     11            <Value>755</Value> 
    1212          </Field> 
    1313        </Item> 
    1414        <Item Index="1" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    1515          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    16             <Value>ez</Value> 
     16            <Value>&lt;empty&gt;</Value> 
    1717          </Field> 
    1818          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    19             <Value>10593.3265620706</Value> 
     19            <Value>100</Value> 
    2020          </Field> 
    2121        </Item> 
    2222        <Item Index="2" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    2323          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    24             <Value>ez</Value> 
     24            <Value>&lt;empty&gt;</Value> 
    2525          </Field> 
    2626          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    27             <Value>8869.13676905854</Value> 
     27            <Value>100</Value> 
    2828          </Field> 
    2929        </Item> 
    3030        <Item Index="3" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    3131          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    32             <Value>test</Value> 
     32            <Value>&lt;empty&gt;</Value> 
    3333          </Field> 
    3434          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    35             <Value>6284</Value> 
     35            <Value>100</Value> 
    3636          </Field> 
    3737        </Item> 
    3838        <Item Index="4" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    3939          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    40             <Value>hehe</Value> 
     40            <Value>&lt;empty&gt;</Value> 
    4141          </Field> 
    4242          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    43             <Value>4331.64771309905</Value> 
     43            <Value>100</Value> 
    4444          </Field> 
    4545        </Item> 
    4646        <Item Index="5" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    4747          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    48             <Value>hehe</Value> 
     48            <Value>&lt;empty&gt;</Value> 
    4949          </Field> 
    5050          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    51             <Value>3031.98977267655</Value> 
     51            <Value>100</Value> 
    5252          </Field> 
    5353        </Item> 
    5454        <Item Index="6" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    5555          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    56             <Value>-</Value> 
     56            <Value>&lt;empty&gt;</Value> 
    5757          </Field> 
    5858          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     
    6262        <Item Index="7" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    6363          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    64             <Value>-</Value> 
     64            <Value>&lt;empty&gt;</Value> 
    6565          </Field> 
    6666          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     
    7070        <Item Index="8" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    7171          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    72             <Value>-</Value> 
     72            <Value>&lt;empty&gt;</Value> 
    7373          </Field> 
    7474          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     
    7878        <Item Index="9" Type="Jypeli.ScoreItem, Jypeli, Version=7.0.0.36485, Culture=neutral, PublicKeyToken=null"> 
    7979          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    80             <Value>-</Value> 
     80            <Value>&lt;empty&gt;</Value> 
    8181          </Field> 
    8282          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     
    8787    </Field> 
    8888    <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    89       <Value>ez</Value> 
     89      <Value>755</Value> 
    9090    </Field> 
    9191  </Object> 
Note: See TracChangeset for help on using the changeset viewer.