-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
43 lines (29 loc) · 1.12 KB
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-fix rotation (do conversion on processing canvas)
-test and add tap event
-container object?
-retina displays suppor (sprites)
-click on primitives or sprite: add z-index options for all layers
-sprite effects for game loop:
fadeOut(frames, callback);
fadeIn
turn(angle, frames, callback) or -angle
moveTo(x, y, frames, callback)
moveLeft moveRight moveUp moveBottom
maybe also make it chainable: moveTo().fadeOut().fadeIn()
_isBusy === true when animate or moving
.stop() to stop moving or animate
also, add angle property to all objects
-move collision check to scene's method, improve collision check:
plant.isCollision(obj, obj)
plant.isCollision(ArrayOfObj, obj) ??
plant.isCollision(obj, ArrayOfObj)
plant.isCollision(ArrayOfObj, ArrayOfObj)
-keybinder:
var myKeybinder = new plant.Keybinder();
myKeybinder['A'].keyDown(function(){
myPlayer.jump();
});
OR
myKeybinder['Space'].keyDown = function(){
myPlayer.jump();
});