Skip to content

Commit

Permalink
Cleaning the code up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley Pridgeon authored and Ashley Pridgeon committed Aug 22, 2020
1 parent b337dd6 commit 7373aae
Show file tree
Hide file tree
Showing 29 changed files with 350 additions and 199,426 deletions.
Binary file removed assets/background/.DS_Store
Binary file not shown.
Binary file removed assets/background/ATPbutton2.png
Binary file not shown.
Binary file removed assets/background/Waterbutton.png
Binary file not shown.
Binary file removed assets/background/bg1.png
Binary file not shown.
Binary file removed assets/background/epidermisBG.png
Binary file not shown.
Binary file removed assets/background/epidermisBGPHOTO.png
Binary file not shown.
Binary file removed assets/background/epidermisBGsprite1.png
Binary file not shown.
Binary file removed assets/background/meristemoid2.png
Binary file not shown.
Binary file removed assets/background/meristemoid3.png
Binary file not shown.
Binary file removed assets/background/stombutton.png
Binary file not shown.
Binary file removed assets/sprites/Plant.png
Binary file not shown.
Binary file removed assets/sprites/Plant2.png
Binary file not shown.
Binary file removed assets/sprites/gem.png
Binary file not shown.
Binary file removed assets/sprites/stomata.png
Binary file not shown.
Binary file removed assets/sprites/stomataSprite1.png
Binary file not shown.
Binary file removed assets/sprites/stomataSpriteClosing.png
Binary file not shown.
Binary file removed fonts/Apple.ttf
Binary file not shown.
Binary file removed fonts/Retro Rescued.ttf
Binary file not shown.
Binary file removed fonts/SUPERSCR.TTF
Binary file not shown.
Binary file removed fonts/hellovetica.ttf
Binary file not shown.
11 changes: 3 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
<head>
<meta charset="UTF-8" />
<title>Phaser: Stomata Game</title>
<!-- <style type="text/css">
body {
margin: 0;
}
</style> -->
<style media='screen' type='text/css'>
@font-face {
font-family: font1;
src: url('./fonts/CasualEncounter.ttf');
src: url('./fonts/CasualEncounter.ttf'); /* from Anna Anthropy's World of Fonts - https://w.itch.io/world-of-fonts */
font-weight:400;
font-weight:normal;
}
Expand All @@ -20,8 +15,8 @@
</head>
<body>

<script src="phaser.js"></script>
<script type="module" src = "./lib/main2.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
<script type="module" src = "./lib/main.js"></script>

</body>
</html>
21 changes: 0 additions & 21 deletions lib/main2.js

This file was deleted.

28 changes: 10 additions & 18 deletions lib/scenes/IntroScene.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,24 @@
export default class IntroScene extends Phaser.Scene{
constructor(){
super('IntroScene');
}
};


create(){
this.add.text(60, 70, 'What\'s Stomata?', { fontFamily: '"font1"', fontSize: '50px', fill: '#68A301' });

this.add.text(60, 190, 'Control the flow of CO2 and H2O to help your plant grow \n\nUse CO2 to generate ATP \n\nUse ATP to develop your plant',
{ fontFamily: '"font1"',
fontSize: '20px',
fill: '#CD2906' ,
wordWrap: {
width: 600,
}})
{ fontFamily: '"font1"',
fontSize: '20px',
fill: '#CD2906' ,
wordWrap: {
width: 600,
}
});




this.input.once('pointerup', function () {
this.scene.start('MainGame');
}, this);





}


}
};
};
Loading

0 comments on commit 7373aae

Please sign in to comment.