Move camera thinker to a separate function
This commit is contained in:
parent
d646470c57
commit
f2be7742df
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ Level = function(levelName) {
|
||||||
placeEntityInGrid(entity);
|
placeEntityInGrid(entity);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cameraThinker();
|
||||||
|
}
|
||||||
|
|
||||||
|
function cameraThinker() {
|
||||||
// Camera thinker.
|
// Camera thinker.
|
||||||
var targetX, targetY;
|
var targetX, targetY;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue