chore: tidy
This commit is contained in:
parent
a5e02abe16
commit
2d8a966849
|
@ -1,8 +1,8 @@
|
||||||
import Ecs from '@/ecs/ecs.js';
|
import Ecs from '@/ecs/ecs.js';
|
||||||
import Types from './components/index.js';
|
import Types from '@/ecs-components/index.js';
|
||||||
|
|
||||||
class EngineEcs extends Ecs {
|
class EngineEcs extends Ecs {
|
||||||
static Types = Types;
|
static Types = Types;
|
||||||
}
|
}
|
||||||
|
|
||||||
export {EngineEcs as Ecs};
|
export default EngineEcs;
|
|
@ -3,14 +3,12 @@ import {
|
||||||
RESOLUTION,
|
RESOLUTION,
|
||||||
TPS,
|
TPS,
|
||||||
} from '@/constants.js';
|
} from '@/constants.js';
|
||||||
import {Ecs} from './ecs/index.js';
|
import ControlMovement from '@/ecs-systems/control-movement.js';
|
||||||
|
import ApplyMomentum from '@/ecs-systems/apply-momentum.js';
|
||||||
import ControlMovement from './ecs/systems/control-movement.js';
|
import CalculateAabbs from '@/ecs-systems/calculate-aabbs.js';
|
||||||
import ApplyMomentum from './ecs/systems/apply-momentum.js';
|
import UpdateSpatialHash from '@/ecs-systems/update-spatial-hash.js';
|
||||||
import CalculateAabbs from './ecs/systems/calculate-aabbs.js';
|
import Ecs from '@/engine/ecs.js';
|
||||||
import UpdateSpatialHash from './ecs/systems/update-spatial-hash.js';
|
import {decode, encode} from '@/packets/index.js';
|
||||||
|
|
||||||
import {decode, encode} from '@/engine/net/packets/index.js';
|
|
||||||
|
|
||||||
const players = {
|
const players = {
|
||||||
0: {
|
0: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Sprite} from '@pixi/react';
|
import {Sprite} from '@pixi/react';
|
||||||
import {useState} from 'react';
|
import {useState} from 'react';
|
||||||
|
|
||||||
import {Ecs} from '@/engine/ecs/index.js';
|
import Ecs from '@/engine/ecs.js';
|
||||||
import usePacket from '@/hooks/use-packet';
|
import usePacket from '@/hooks/use-packet';
|
||||||
|
|
||||||
export default function EcsComponent() {
|
export default function EcsComponent() {
|
|
@ -1,4 +1,4 @@
|
||||||
import Ui from '@/components/ui.jsx';
|
import Ui from '@/react-components/ui.jsx';
|
||||||
|
|
||||||
export default function Index() {
|
export default function Index() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -2,9 +2,9 @@ import {useEffect, useState} from 'react';
|
||||||
import {Outlet, useParams} from 'react-router-dom';
|
import {Outlet, useParams} from 'react-router-dom';
|
||||||
|
|
||||||
import ClientContext from '@/context/client.js';
|
import ClientContext from '@/context/client.js';
|
||||||
import {decode, encode} from '@/engine/net/packets/index.js';
|
|
||||||
import LocalClient from '@/net/client/local.js';
|
import LocalClient from '@/net/client/local.js';
|
||||||
import RemoteClient from '@/net/client/remote.js';
|
import RemoteClient from '@/net/client/remote.js';
|
||||||
|
import {decode, encode} from '@/packets/index.js';
|
||||||
|
|
||||||
import styles from './play.module.css';
|
import styles from './play.module.css';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user