Changeset 5196 for 2014/27/MikkoI


Ignore:
Timestamp:
2014-07-01 10:10:12 (5 years ago)
Author:
mijoilmo
Message:

a

Location:
2014/27/MikkoI/MikonPeli
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/MikkoI/MikonPeli/MikonPeli/MikonPeli/MikonPeli.cs

    r5190 r5196  
    2121                var pieceWidth = this.Width / pieceCountX; 
    2222                var pieceHeight = this.Height / pieceCountY; 
     23                if (pieceWidth < 1 || pieceHeight < 1) { return; } 
    2324                //loop x and y through 
    2425                //calc left corner 
     
    6768        if (teksti != null) 
    6869        { 
    69             teksti.Text = (1000 / gameTime.ElapsedGameTime.Milliseconds) + "fps"; 
     70            int ms = gameTime.ElapsedGameTime.Milliseconds; 
     71            if (ms > 0) 
     72            { 
     73                teksti.Text = (1000 / ms) + "fps"; 
     74            } 
    7075        } 
    7176        base.Draw(gameTime); 
     
    7378    BreakablePhysicsObject Spawn() 
    7479    { 
    75         BreakablePhysicsObject boxi = new BreakablePhysicsObject(this,50.0, 50.0); 
     80        BreakablePhysicsObject boxi = new BreakablePhysicsObject(this, 500.0, 500.0); 
    7681        Add(boxi); 
    7782        return boxi; 
  • 2014/27/MikkoI/MikonPeli/MikonPeli/MikonPeli/obj/x86/Debug/ContentPipeline-{896D792C-4757-4554-9BB2-5B7BC0C80EDF}.xml

    r5167 r5196  
    1717      <Assembly> 
    1818        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    19         <Value>2014-04-22T15:35:21.4590502+03:00</Value> 
     19        <Value>2014-04-22T21:32:12.354917+03:00</Value> 
    2020      </Assembly> 
    2121    </Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.