Samaller and easier

This commit is contained in:
2015-09-17 00:02:37 +02:00
parent 65e303aa41
commit b9a06ab2be
2 changed files with 5 additions and 4 deletions

View File

@@ -59,7 +59,8 @@ var CandyFucker = function(idScreen, idInfoDisplay){
this.InfoDisplay = document.getElementById(idInfoDisplay);
this.Grid = null;
this.GridOffset = {X: 0, Y: 0};
this.CandyTypes = ["Red", "Blue", "Cyan", "Green", "Yellow"];
//this.CandyTypes = ["Red", "Blue", "Cyan", "Green", "Yellow"];
this.CandyTypes = ["Red", "Blue", "Cyan", "Yellow"];
this.Locked = false;
this.Falling = false;
this.Changed = false;
@@ -88,7 +89,7 @@ var CandyFucker = function(idScreen, idInfoDisplay){
};
CandyFucker.prototype = {
Init: function(gameScreen){
this.BuildGrid(15, 15);
this.BuildGrid(12, 12);
this.UpdateInfoDisplay();
},
Proc: function(gameScreen){

View File

@@ -31,7 +31,7 @@
position: relative;
width: 100%;
height: calc(100% - 20px);
overflow: hidden;
overflow: visible;
}
#screen {
display: block;
@@ -47,7 +47,7 @@
<body>
<div id="infoDisplay"></div>
<div id="screenContainer">
<canvas id="screen" width="512" height="512" />
<canvas id="screen" width="416" height="416" />
</div>
<script src="code/GameLib.js"></script>
<script src="code/CandyFucker.js"></script>