Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 221 bytes modified
parent
9976781dcc
commit
6e7d953862
|
@ -111,9 +111,13 @@ GameLib.CustomCode.prototype.startAnimation = function (index) {
|
|||
for (var x = 0; x < GameLib.CustomCode.TETRIS_GRID_WIDTH; x++) {
|
||||
|
||||
var bacon = this.tile_bacon_disappearing.clone();
|
||||
|
||||
bacon.visible = true;
|
||||
bacon.updateInstance('visible');
|
||||
|
||||
bacon.position.x = x;
|
||||
bacon.position.y = index;
|
||||
bacon.position.z = 0.2;
|
||||
bacon.position.z = 3;
|
||||
bacon.updateInstance('position');
|
||||
|
||||
this.ccBeforeRender.grid[index][x].baconDisappearing = bacon;
|
||||
|
@ -125,16 +129,22 @@ GameLib.CustomCode.prototype.startAnimation = function (index) {
|
|||
|
||||
var glow = this.tile_glow.clone();
|
||||
|
||||
glow.visible = true;
|
||||
glow.updateInstance('visible');
|
||||
|
||||
glow.position.y = index;
|
||||
glow.position.x = (GameLib.CustomCode.TETRIS_GRID_WIDTH / 2) - 0.5;
|
||||
glow.position.z = 2;
|
||||
glow.position.z = 4;
|
||||
glow.updateInstance('position');
|
||||
|
||||
var flames = this.tile_flames_small.clone();
|
||||
|
||||
flames.visible = true;
|
||||
flames.updateInstance('visible');
|
||||
|
||||
flames.position.y = index + 0.5;
|
||||
flames.position.x = (GameLib.CustomCode.TETRIS_GRID_WIDTH / 2) - 0.5;
|
||||
flames.position.z = 2;
|
||||
flames.position.z = 5;
|
||||
flames.updateInstance('position');
|
||||
|
||||
var animationObject = {
|
||||
|
@ -592,7 +602,7 @@ GameLib.CustomCode.prototype.drawGrid = function () {
|
|||
|
||||
for (var y = 0; y < (GameLib.CustomCode.TETRIS_GRID_HEIGHT - GameLib.CustomCode.TETRIS_GRID_HEADSPACE); y++) {
|
||||
for (var x = 0; x < GameLib.CustomCode.TETRIS_GRID_WIDTH; x++) {
|
||||
points.push(x, y, 0.17);
|
||||
points.push(x, y, 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -943,7 +953,7 @@ GameLib.CustomCode.prototype.spawnBlock = function () {
|
|||
|
||||
center.position.y = 0;
|
||||
center.position.x = 0;
|
||||
center.position.z = 0.4;
|
||||
center.position.z = 3.5;
|
||||
|
||||
if (blockType === GameLib.CustomCode.TETRIS_BLOCK_I) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue