Lots of work. Somewhat runs through mission file now and shows backgrounds.
This commit is contained in:
parent
1e710af520
commit
3b12dcbda5
10 changed files with 505 additions and 66 deletions
11
Js/Common.js
11
Js/Common.js
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue