Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 56 bytes modified

beta.r3js.org
-=yb4f310 2018-02-14 10:59:27 +01:00
parent 24c1664ce5
commit 36f18415e9
1 changed files with 24 additions and 18 deletions

View File

@ -34,7 +34,6 @@ this.gridMaterial = GameLib.EntityManager.Instance.findComponentById('xpkbcvson9
this.materialBaconDisappearing = GameLib.EntityManager.Instance.findComponentById('40byzi2uxm'); this.materialBaconDisappearing = GameLib.EntityManager.Instance.findComponentById('40byzi2uxm');
this.animation = GameLib.EntityManager.Instance.findComponentById('tnlwgvf12x'); this.animation = GameLib.EntityManager.Instance.findComponentById('tnlwgvf12x');
this.canvas = GameLib.EntityManager.Instance.findComponentById('85d0jk6dhx'); this.canvas = GameLib.EntityManager.Instance.findComponentById('85d0jk6dhx');
this.burnLight = GameLib.EntityManager.Instance.findComponentById('yy6ef7ur7m'); this.burnLight = GameLib.EntityManager.Instance.findComponentById('yy6ef7ur7m');
@ -49,22 +48,31 @@ this.scoreTexture = GameLib.EntityManager.Instance.findComponentById('kva68t4dm8
this.animationSystems = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.SYSTEM_ANIMATION); this.animationSystems = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.SYSTEM_ANIMATION);
GameLib.CustomCode.TETRIS_BLOCK_I = 0; /**
GameLib.CustomCode.TETRIS_BLOCK_L = 1; * Initial Game Settings
GameLib.CustomCode.TETRIS_BLOCK_L2 = 2; * @type {number}
GameLib.CustomCode.TETRIS_BLOCK_Z = 3; */
GameLib.CustomCode.TETRIS_BLOCK_Z2 = 4; this.score = 0;
GameLib.CustomCode.TETRIS_BLOCK_T = 5; this.level = 1;
GameLib.CustomCode.TETRIS_BLOCK_O = 6; this.rows = 0;
GameLib.CustomCode.TETRIS_BLOCK_MAX = 7; this.speed = 1;
GameLib.CustomCode.TETRIS_GRID_WIDTH = 11; GameLib.CustomCode.TETRIS_BLOCK_I = 0;
GameLib.CustomCode.TETRIS_GRID_HEIGHT = 24; GameLib.CustomCode.TETRIS_BLOCK_L = 1;
GameLib.CustomCode.TETRIS_GRID_HEADSPACE = 4; GameLib.CustomCode.TETRIS_BLOCK_L2 = 2;
GameLib.CustomCode.TETRIS_BLOCK_Z = 3;
GameLib.CustomCode.TETRIS_BLOCK_Z2 = 4;
GameLib.CustomCode.TETRIS_BLOCK_T = 5;
GameLib.CustomCode.TETRIS_BLOCK_O = 6;
GameLib.CustomCode.TETRIS_BLOCK_MAX = 7;
GameLib.CustomCode.TETRIS_GRID_NOT_TAKEN = 0; GameLib.CustomCode.TETRIS_GRID_WIDTH = 11;
GameLib.CustomCode.TETRIS_GRID_TAKEN = 1; GameLib.CustomCode.TETRIS_GRID_HEIGHT = 24;
GameLib.CustomCode.TETRIS_GRID_DISAPPEARING = 2; GameLib.CustomCode.TETRIS_GRID_HEADSPACE = 4;
GameLib.CustomCode.TETRIS_GRID_NOT_TAKEN = 0;
GameLib.CustomCode.TETRIS_GRID_TAKEN = 1;
GameLib.CustomCode.TETRIS_GRID_DISAPPEARING = 2;
GameLib.CustomCode.prototype.visualizeGrid = function (color) { GameLib.CustomCode.prototype.visualizeGrid = function (color) {
@ -576,9 +584,6 @@ GameLib.CustomCode.prototype.startAnimations = function () {
GameLib.CustomCode.prototype.drawGrid = function () { GameLib.CustomCode.prototype.drawGrid = function () {
this.gridMaterial.color.fromHex('#a79f99');
this.gridMaterial.color.updateInstance('color');
var geometry = new THREE.BufferGeometry(); var geometry = new THREE.BufferGeometry();
var points = []; var points = [];
@ -1412,6 +1417,7 @@ GameLib.Event.Emit(
this.createTile('tile_center') this.createTile('tile_center')
this.drawGrid(); this.drawGrid();
this.drawStatus();
GameLib.Event.Emit(GameLib.Event.GAME_LOADED); GameLib.Event.Emit(GameLib.Event.GAME_LOADED);