Samaller and easier
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user