-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
14 changed files
with
2,070 additions
and
42 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,29 +1,49 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>My first game!</title> | ||
<script src="lib/phaser.min.js"></script> <!--L'ordine è importante, va prima inizializzato phaser e poi la nostra versione custom--> | ||
<script src="lib/poliphaser.js"></script> | ||
|
||
<!--Scene vanno messe prima del main--> | ||
<script src="src/scenes/menu.js" type="module"></script> | ||
<script src="src/scenes/storia.js" type="module"></script> | ||
<script src="src/scenes/scene1.js" type="module"></script> | ||
<script src="src/scenes/scene2.js" type="module"></script> | ||
<script src="src/scenes/scene3.js" type="module"></script> | ||
<script src="src/scenes/death.js" type="module"></script> | ||
|
||
<script src="src/player.js"></script> | ||
<script src="src/platform.js"></script> | ||
<script src="src/mushroom.js"></script> | ||
<script src="src/rain.js"></script> | ||
<script src="src/egg.js"></script> | ||
<script defer src="src/main.js"></script> <!--defer fa si che si carichi solo dopo che ha caricato tutto il resto--> | ||
|
||
</head> | ||
<body> | ||
<div id="game_area" style="text-align: center;"></div> | ||
|
||
<!-- PROVA --> | ||
</body> | ||
|
||
<head> | ||
<title>My first game!</title> | ||
<style> | ||
@font-face { | ||
font-family: 'hbc'; | ||
src: url('assets/Hbc.ttf') format('truetype'); | ||
/* Update the path accordingly */ | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
body { | ||
font-family: 'hbc', sans-serif; | ||
} | ||
</style> | ||
<script src="lib/phaser.min.js"></script> | ||
<!--L'ordine è importante, va prima inizializzato phaser e poi la nostra versione custom--> | ||
<script src="lib/poliphaser.js"></script> | ||
|
||
<!--Scene vanno messe prima del main--> | ||
<script src="src/scenes/menu.js" type="module"></script> | ||
<script src="src/scenes/storia.js" type="module"></script> | ||
<script src="src/scenes/scene1.js" type="module"></script> | ||
<script src="src/scenes/scene2.js" type="module"></script> | ||
<script src="src/scenes/scene3.js" type="module"></script> | ||
<script src="src/scenes/death.js" type="module"></script> | ||
<script src="src/scenes/credits.js" type="module"></script> | ||
|
||
<script src="src/player.js"></script> | ||
<script src="src/platform.js"></script> | ||
<script src="src/mushroom.js"></script> | ||
<script src="src/rain.js"></script> | ||
<script src="src/egg.js"></script> | ||
<script defer src="src/main.js"></script> <!--defer fa si che si carichi solo dopo che ha caricato tutto il resto--> | ||
|
||
|
||
|
||
</head> | ||
|
||
<body> | ||
<div id="game_area" style="text-align: center;"></div> | ||
|
||
<!-- PROVA --> | ||
</body> | ||
|
||
</html> |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
let crediti; | ||
|
||
function preload(s){ | ||
crediti = PP.assets.image.load(s, "assets/images/crediti.png"); | ||
} | ||
|
||
|
||
function create(s){ | ||
// PP.assets.image.add(s, tavola3, 0, 0, 0, 0); | ||
// PP.assets.image.add(s, tavola2, 0, 0, 0, 0); | ||
PP.assets.image.add(s, crediti, 0, 0, 0, 0); | ||
} | ||
|
||
function next(s){ | ||
PP.scenes.start("menu"); | ||
} | ||
|
||
var isSelectFunctionCalled = false; | ||
function update(s){ | ||
|
||
// console.log(tavola); | ||
if (PP.interactive.kb.is_key_down(s, PP.key_codes.SPACE) && !isSelectFunctionCalled) { | ||
next(s); | ||
isSelectFunctionCalled = true; | ||
} else if (!PP.interactive.kb.is_key_down(s, PP.key_codes.SPACE)) { | ||
isSelectFunctionCalled = false; | ||
} | ||
} | ||
function destroy(s){} | ||
|
||
|
||
PP.scenes.add("crediti", preload, create, update, destroy); |
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
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