This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.hoge.app.androidcookpatern.View; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ゲーム画面になるキャンパスの幅 | |
var SCREEN_SIZE_WIDTH = 400; | |
//ゲーム画面になるキャンパスの高さ | |
var SCREEN_SIZE_HEIGHT = 400; | |
//1行のセルの数 | |
var SIDE_CELLS = 200; | |
//セルの幅 | |
var CELL_SIZE = Math.floor(SCREEN_SIZE_WIDTH / SIDE_CELLS); | |
//1列のセルの数 | |
var COLUMN_CELLS = Math.floor(SCREEN_SIZE_HEIGHT / CELL_SIZE); |