Ignore:
Timestamp:
2016-10-22 14:45:59 (3 years ago)
Author:
sieerinn
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/koodauskerho/TaneliL/SimoR/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli.cs

    r8302 r8334  
    3535        LisaaNappaimet(); 
    3636 
     37        Window.Width = 1920; 
     38        Window.Height = 1080; 
     39 
    3740        //Camera.Follow(pelaaja1); 
    3841        //Camera.ZoomFactor = 1.2; 
     
    8891        vihu.Image = pelaajanKuva; 
    8992        vihu.IsVisible = false; 
     93 
     94        RandomMoverBrain vihunAivot = new RandomMoverBrain(); 
     95        vihunAivot.WanderRadius = 2000; 
     96        vihu.Brain = vihunAivot; 
     97 
    9098        AddCollisionHandler(vihu, "pelaaja", TormaaPelaajaan); 
    9199        Add(vihu); 
     
    315323                } 
    316324 
    317                 effect.World = transforms[mesh.ParentBone.Index] * Matrix.CreateRotationY(rotation) * Matrix.CreateTranslation(modelPosition); 
     325                effect.World = Matrix.CreateScale(0.8f) * transforms[mesh.ParentBone.Index] * Matrix.CreateRotationY(rotation) * Matrix.CreateTranslation(modelPosition); 
    318326                effect.View = Matrix.CreateLookAt(cameraPos, Vector3.Zero, Vector3.Up); 
    319327                effect.Projection = finalMat; 
Note: See TracChangeset for help on using the changeset viewer.