mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Migrate Box2D to Planck.js in core game logic, items, debug draw, and menu. Remove legacy Box2D references, update level and item loading, and improve debug draw for Planck.
This commit is contained in:
parent
799601f24d
commit
da6e9a244b
15 changed files with 66 additions and 201 deletions
|
|
@ -172,6 +172,14 @@ function (Settings, ColorConverter, Exception, pointerLockManager, qs) {
|
|||
function populateMaps() {
|
||||
ajax("getMaps", {}, function(responseText) {
|
||||
var maps = JSON.parse(responseText).success;
|
||||
|
||||
// Sort maps to put debug at the end
|
||||
maps.sort(function(a, b) {
|
||||
if (a === "debug") return 1;
|
||||
if (b === "debug") return -1;
|
||||
return a.localeCompare(b);
|
||||
});
|
||||
|
||||
var html = "";
|
||||
for (var i = 0; i < maps.length; i++) {
|
||||
var map = maps[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue