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.InfoDisplay = document.getElementById(idInfoDisplay);
this.Grid = null; this.Grid = null;
this.GridOffset = {X: 0, Y: 0}; 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.Locked = false;
this.Falling = false; this.Falling = false;
this.Changed = false; this.Changed = false;
@@ -88,7 +89,7 @@ var CandyFucker = function(idScreen, idInfoDisplay){
}; };
CandyFucker.prototype = { CandyFucker.prototype = {
Init: function(gameScreen){ Init: function(gameScreen){
this.BuildGrid(15, 15); this.BuildGrid(12, 12);
this.UpdateInfoDisplay(); this.UpdateInfoDisplay();
}, },
Proc: function(gameScreen){ Proc: function(gameScreen){

View File

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