Lots of work. Somewhat runs through mission file now and shows backgrounds.

This commit is contained in:
firebingo 2018-04-05 09:27:32 -07:00
parent 1e710af520
commit 3b12dcbda5
10 changed files with 505 additions and 66 deletions

View file

@ -50,4 +50,15 @@ class commonFunctions {
static lerp(start, end, t) {
return (1 - t) * start + t * end;
}
static getColorFromName(name) {
if(!name) { return 0xFFFFFF }
switch(name.toLowerCase()) {
case 'black':
return 0x000000;
case 'white':
return 0xFFFFFF;
}
}
}