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(); }
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(); }