Fix game issue

This commit is contained in:
yflory 2024-09-18 14:45:48 +02:00
parent f19fda88a9
commit 961b357965

View File

@ -222,6 +222,7 @@ define([
$(window).on('keyup', APP.onKeyUp);
};
let initCharacter = () => {
if (me.id) { return; }
let config = Util.find(sharedContent, ['config','values']) || DEFAULT;
me.x = Math.floor(config.x/2);
me.y = Math.floor(config.y/2);