Георгий Цырков
8 years ago
5 changed files with 126 additions and 0 deletions
@ -0,0 +1,23 @@
|
||||
using System; |
||||
namespace theGame |
||||
{ |
||||
public class Game |
||||
{ |
||||
public bool GameOver; |
||||
|
||||
private int hitCount; |
||||
|
||||
public PlayerCraft playerCraft; |
||||
|
||||
public Game() |
||||
{ |
||||
this.GameOver = false; |
||||
|
||||
this.hitCount = 0; |
||||
|
||||
this.playerCraft = new PlayerCraft(); |
||||
playerCraft.positionX = 10; |
||||
playerCraft.positionY = 12; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,21 @@
|
||||
using System; |
||||
namespace theGame |
||||
{ |
||||
public class Item |
||||
{ |
||||
public int positionX; |
||||
public int positionY; |
||||
|
||||
public int sizeWidth; |
||||
public int sizeHeight; |
||||
|
||||
public Item() |
||||
{ |
||||
sizeWidth = 0; |
||||
sizeHeight = 0; |
||||
|
||||
positionX = 0; |
||||
positionY = 0; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,12 @@
|
||||
using System; |
||||
namespace theGame |
||||
{ |
||||
public class PlayerCraft : Item |
||||
{ |
||||
int Health; |
||||
public PlayerCraft() |
||||
{ |
||||
Health = 100; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue