Difference between revisions of "Screen Shake"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(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...")
(No difference)

Revision as of 11:28, 9 February 2019

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;