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
class FlorContinue | |
constructor: (key)-> | |
@key = key | |
class FlorEnd | |
class Flor | |
@_id = 1 | |
@generateId = ()-> |
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
W = 800 | |
H = 600 | |
R = 50 | |
class Sprite | |
constructor: ()-> | |
init: ()-> | |
@x = Math.random() * W | |
@y = Math.random() * H |
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
rune(); | |
var update = rune.update(); | |
var player = {x: 0, y: 0, width: 20, height: 20, dir: 1}; | |
function move(p){ | |
p.x += 100 * this.deltaTime * p.dir; | |
return p; | |
} |
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
/** | |
どのようなコードイメージになるかを考える | |
テーマ: | |
アクションゲーム用 | |
最初はCreateJSシリーズを使う | |
*/ | |
var ars = function(){ | |
function createMethodsFromRoles(proto, roles){ | |
var methodNames = listUpMethodNames(roles); |
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
fun main(args: Array<String>){ | |
val a = args[0].toInt() | |
val b = args[1].toInt() | |
println(divisor(a, b)) | |
} | |
fun divisor(val a: Int,val b: Int): Int{ | |
val n = a % b | |
if(n != 0){ |