1234567891011121314 |
- import {CELL_WIDTH, CELL_HEIGHT} from "../Model/ConstValue.js"
- cc.Class({
- extends:cc.Component,
- onLoad(){
- this.grid_width = 7;
- this.grid_height = 7;
- this.grid_pixel_width = this.grid_width * CELL_WIDTH;
- this.grid_pixel_height = this.grid_height * CELL_HEIGHT;
- }
- })
|