-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ashley Pridgeon
authored and
Ashley Pridgeon
committed
Aug 22, 2020
1 parent
b337dd6
commit 7373aae
Showing
29 changed files
with
350 additions
and
199,426 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
} | ||
|
@@ -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> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
|
||
|
||
|
||
} | ||
|
||
|
||
} | ||
}; | ||
}; |
Oops, something went wrong.