-
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
5 changed files
with
927 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
def compte_a_rebours (p_depart): | ||
while p_depart > 0 : | ||
waitSeconds(1) | ||
p_depart -= 1 | ||
displayMessageIn(p_depart, '#timer') | ||
|
||
def naissance(): | ||
var avatar := awaitFileContent('poussin.svg', 'text') | ||
displayMessageIn(avatar, '#scene') | ||
|
||
def nourrir(): | ||
displayNewMessage("Je n'ai plus faim !") | ||
|
||
|
||
# Préparation de la scène | ||
#=============================================== | ||
# On place la scène de la maison. C'est la scène principale. | ||
var oeuf := awaitFileContent('egg.svg', 'text') | ||
displayMessageIn(oeuf, '#scene') | ||
|
||
|
||
# Attendre click sur bouton "couver" | ||
awaitClickBeep('#action') | ||
|
||
# Initialiser et afficher le compteur | ||
var max := 5 | ||
displayMessageIn(max, '#timer') | ||
|
||
# Couver pendant un nombre de jours déterminés. | ||
#=============================================== | ||
compte_a_rebours(max) | ||
|
||
#~ L'oeuf éclot. | ||
#=============== | ||
naissance() | ||
|
||
#~ nourrir le bébé en parallèle le bébé grandit | ||
#============================================== | ||
# afficher bouton "nourrir" | ||
displayMessageIn( 'nourrir', '#action') | ||
awaitClickBeep ('#action') | ||
nourrir() | ||
|
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,22 @@ | ||
body, html { | ||
height: 100%; | ||
} | ||
|
||
#gameBoard, body, html { | ||
display: grid; | ||
place-items: center; | ||
} | ||
|
||
#scene { | ||
position: relative; | ||
} | ||
|
||
#avatar { | ||
position: absolute; | ||
top: 260px; | ||
left: 300px; | ||
} | ||
|
||
.temperature, lampe{ | ||
cursor: pointer | ||
} |
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,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Mon premier familier</title> | ||
<link rel="shortcut icon" href="#"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/lib.css"> | ||
<link rel="stylesheet" href="general.css"> | ||
</head> | ||
|
||
<body> | ||
<div id="gameBoard"> | ||
<figure id="scene"></figure> | ||
<button id="action">Couver</button> | ||
<p id="timer"></p> | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/libStd.fg" type="application/funcsug"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/libDOM.fg" type="application/funcsug"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/libDOMSVG.fg" type="application/funcsug"></script> | ||
<script src="elevage.fg" type="application/funcsug"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/parser.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/parserPy.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/interpreter.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/DOMloader.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.