Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create different planets #6

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
6 changes: 6 additions & 0 deletions main/planet/PlanetScene.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
// Planet Scene
// INFO: The planet scene allows players to explore the planet they landed on. The player can go inside buildings or houses that they see. When they are done, the player can go back to space.
class PlanetScene extends Phaser.Scene {
constructor(key) {
// Pass from superclass
super(key);
}
}
Binary file added main/planet/assets/penguin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion main/planet/preload.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Preload for Planets
PlanetScene.prototype.preload = function() {

// Load images
this.load.image("penguin", "main/planet/asset/penguin.png");
};
Binary file added main/space/assets/grassyPlanet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.