-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackScreen.cs
43 lines (37 loc) · 1.06 KB
/
backScreen.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Media;
namespace ActionGame
{
class backScreen:Screen
{
GraphicalGameObject back;
public backScreen(Game1 game, ContentManager Content,int action) : base(game, Content)
{
back = new GraphicalGameObject(game, game.assets.Blurback);
back.setSize(1280, 720);
switch (action)
{
case 0:
game.FloatScreen.Add(new SelectModeScreen(game, Content));
break;
}
}
public override void update(float deltaTime)
{
back.update(deltaTime);
}
public override void Draw(SpriteBatch batch)
{
back.Draw(batch, screenAlpha);
}
}
}