Screen Shake

From TRCCompSci - AQA Computer Science
Revision as of 11:28, 9 February 2019 by Admin (talk | contribs) (Created page with "In order to complete this tutorial you will need a working monogame project, it will need to draw something to be able to see the screen shake. ==Variables== Within the Game1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In order to complete this tutorial you will need a working monogame project, it will need to draw something to be able to see the screen shake.

Variables

Within the Game1.cs class, add the following variables with your existing ones:

bool shakeScreen = false;
Vector2 shakeOffset = new Vector2(15,0);
int shakeCount = 0;