Il est tout comme Mite' !
This commit is contained in:
@ -7,16 +7,6 @@
|
||||
@section('content')
|
||||
|
||||
<div class="container">
|
||||
<br>
|
||||
<center><h1>Mémory</h1></center>
|
||||
|
||||
<br><br>
|
||||
|
||||
<!-- script jeu memory -->
|
||||
<!-- js -->
|
||||
<script src="/js/classList.min.js"></script>
|
||||
<script src="/js/memory.js"></script>
|
||||
|
||||
|
||||
<!-- <center><img src="http://i.ytimg.com/vi/xiIO1zUXNVI/maxresdefault.jpg" width="60%"></center> -->
|
||||
|
||||
@ -38,4 +28,82 @@
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script src="/js/classList.min.js"></script>
|
||||
<script src="/js/memory.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
(function(){
|
||||
var myMem = new Memory({
|
||||
wrapperID : "my-memory-game",
|
||||
cards : [
|
||||
{
|
||||
id : 1,
|
||||
img: "/pictures/default/monsters-01.png"
|
||||
},
|
||||
{
|
||||
id : 2,
|
||||
img: "/pictures/default/monsters-02.png"
|
||||
},
|
||||
{
|
||||
id : 3,
|
||||
img: "/pictures/default/monsters-03.png"
|
||||
},
|
||||
{
|
||||
id : 4,
|
||||
img: "/pictures/default/monsters-04.png"
|
||||
},
|
||||
{
|
||||
id : 5,
|
||||
img: "/pictures/default/monsters-05.png"
|
||||
},
|
||||
{
|
||||
id : 6,
|
||||
img: "/pictures/default/monsters-06.png"
|
||||
},
|
||||
{
|
||||
id : 7,
|
||||
img: "/pictures/default/monsters-07.png"
|
||||
},
|
||||
{
|
||||
id : 8,
|
||||
img: "/pictures/default/monsters-08.png"
|
||||
},
|
||||
{
|
||||
id : 9,
|
||||
img: "/pictures/default/monsters-09.png"
|
||||
},
|
||||
{
|
||||
id : 10,
|
||||
img: "/pictures/default/monsters-10.png"
|
||||
},
|
||||
{
|
||||
id : 11,
|
||||
img: "/pictures/default/monsters-11.png"
|
||||
},
|
||||
{
|
||||
id : 12,
|
||||
img: "/pictures/default/monsters-12.png"
|
||||
},
|
||||
{
|
||||
id : 13,
|
||||
img: "/pictures/default/monsters-13.png"
|
||||
},
|
||||
{
|
||||
id : 14,
|
||||
img: "/pictures/default/monsters-14.png"
|
||||
},
|
||||
{
|
||||
id : 15,
|
||||
img: "/pictures/default/monsters-15.png"
|
||||
},
|
||||
{
|
||||
id : 16,
|
||||
img: "/pictures/default/monsters-16.png"
|
||||
}
|
||||
],
|
||||
onGameStart : function() { return false; },
|
||||
onGameEnd : function() { return false; }
|
||||
});
|
||||
})();
|
||||
|
||||
</script>
|
||||
@endsection
|
@ -10,17 +10,17 @@
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<button onclick="location.href='{{ URL::to('memo/jouer') }}'"><span style="color:gold;">
|
||||
<button onclick="location.href='{{ URL::to('memo/jouer/1') }}'"><span style="color:gold;">
|
||||
<span class="icon-star-full"></span>
|
||||
</span><span class="icon-star-full"></span>
|
||||
|
||||
<span class="icon-star-full"></span></button><br>
|
||||
<button onclick="location.href='{{ URL::to('memo/jouer') }}'"><span style="color:gold;">
|
||||
<button onclick="location.href='{{ URL::to('memo/jouer/2') }}'"><span style="color:gold;">
|
||||
<span class="icon-star-full"></span>
|
||||
<span class="icon-star-full"></span>
|
||||
</span>
|
||||
<span class="icon-star-full"></span></button><br>
|
||||
<button onclick="location.href='{{ URL::to('memo/jouer') }}'"><span style="color:gold;">
|
||||
<button onclick="location.href='{{ URL::to('memo/jouer/3') }}'"><span style="color:gold;">
|
||||
<span class="icon-star-full"></span>
|
||||
<span class="icon-star-full"></span><span class="icon-star-full"></span>
|
||||
</span>
|
||||
|
@ -149,23 +149,33 @@
|
||||
var texteADire = (temps <= 1) ? "Bravo, tu as mis moins d'une minute." :
|
||||
"Bravo, tu as mis "+temps+" minutes. ";;
|
||||
responsiveVoice.speak(texteADire, "French Female");
|
||||
leftEmitter = game.add.emitter(50, 50);
|
||||
leftEmitter.bounce.setTo(0.5, 0.5);
|
||||
leftEmitter.setXSpeed(100, 200);
|
||||
leftEmitter.setYSpeed(-50, 50);
|
||||
leftEmitter.makeParticles('balls', 0, 10, 1, true);
|
||||
pieces.forEach(function(item){item.input.draggable = false;});
|
||||
if(nbToPlay == currentPlayed)
|
||||
{
|
||||
leftEmitter = game.add.emitter(50, 50);
|
||||
leftEmitter.bounce.setTo(0.5, 0.5);
|
||||
leftEmitter.setXSpeed(100, 200);
|
||||
leftEmitter.setYSpeed(-50, 50);
|
||||
leftEmitter.makeParticles('balls', 0, 10, 1, true);
|
||||
|
||||
rightEmitter = game.add.emitter(game.world.width - 50, 50);
|
||||
rightEmitter.bounce.setTo(0.5, 0.5);
|
||||
rightEmitter.setXSpeed(-100, -200);
|
||||
rightEmitter.setYSpeed(-50, 50);
|
||||
rightEmitter.makeParticles('balls', 1, 10, 1, true);
|
||||
rightEmitter = game.add.emitter(game.world.width - 50, 50);
|
||||
rightEmitter.bounce.setTo(0.5, 0.5);
|
||||
rightEmitter.setXSpeed(-100, -200);
|
||||
rightEmitter.setYSpeed(-50, 50);
|
||||
rightEmitter.makeParticles('balls', 1, 10, 1, true);
|
||||
|
||||
// explode, lifespan, frequency, quantity
|
||||
leftEmitter.start(false, 10000, 20);
|
||||
rightEmitter.start(false, 10000, 20);
|
||||
if(nbToPlay == currentPlayed) setTimeout(function(){ location.href = "{{URL::to('puzzle')}}"; }, 5000);
|
||||
else nextPuzzle();
|
||||
// explode, lifespan, frequency, quantity
|
||||
leftEmitter.start(false, 10000, 20);
|
||||
rightEmitter.start(false, 10000, 20);
|
||||
setTimeout(function(){
|
||||
location.href = "{{URL::to('puzzle')}}";
|
||||
}, 5000);
|
||||
}
|
||||
else {
|
||||
setTimeout(function(){
|
||||
nextPuzzle();
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="trophees"></div>
|
||||
<div class="abso referents">
|
||||
<div class="referent game"
|
||||
onclick='location.href = "{{ URL::to('puzzle') }}";'
|
||||
@ -27,16 +26,4 @@
|
||||
|
||||
@section('page-css')
|
||||
<link href="{{ URL::to('css/fonts/style.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
<script src="{{ URL::to('js/phaser.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
game = new Phaser.Game(222, 222, Phaser.CANVAS, '', { preload: preload, create: create }, true);
|
||||
function preload() {
|
||||
|
||||
}function create() {
|
||||
|
||||
}
|
||||
</script>
|
||||
@endsection
|
Reference in New Issue
Block a user