Пример #1
0
 public void StartGame()
 {
     decor     = new Decor(Raylib.GetScreenWidth(), Raylib.GetScreenHeight());
     rocks     = new Rocks(Raylib.GetScreenWidth() - 50, Raylib.GetScreenHeight() - 50);
     astronaut = new Astronaut(350, 350, Raylib.GetScreenWidth(), Raylib.GetScreenHeight(), rocks);
     Continue();
 }
Пример #2
0
 public Astronaut(int startX, int startY, int MaxWidth, int MaxHeight, Rocks RocksIn)
 {
     x = startX;
     y = startY;
     frontAstronautOneIcon(-500, -500);
     maxWidth         = MaxWidth - frontAstronautOneTexture.width + 100;
     maxHeight        = MaxHeight - frontAstronautOneTexture.height;
     rocks            = RocksIn;
     currentFrame     = 1;
     currentDirection = 0;
     DisplayAstronaut();
 }