diff --git a/src/Applet/Audio.ts b/src/applet/Audio.ts similarity index 100% rename from src/Applet/Audio.ts rename to src/applet/Audio.ts diff --git a/src/Applet/Init.ts b/src/applet/Init.ts similarity index 100% rename from src/Applet/Init.ts rename to src/applet/Init.ts diff --git a/src/Applet/Keyboard.ts b/src/applet/Keyboard.ts similarity index 100% rename from src/Applet/Keyboard.ts rename to src/applet/Keyboard.ts diff --git a/src/Applet/Loop.ts b/src/applet/Loop.ts similarity index 100% rename from src/Applet/Loop.ts rename to src/applet/Loop.ts diff --git a/src/Applet/Render.ts b/src/applet/Render.ts similarity index 100% rename from src/Applet/Render.ts rename to src/applet/Render.ts diff --git a/src/Applet/demo.ts b/src/applet/demo.ts similarity index 100% rename from src/Applet/demo.ts rename to src/applet/demo.ts diff --git a/src/Ecs/Collision.ts b/src/ecs/Collision.ts similarity index 100% rename from src/Ecs/Collision.ts rename to src/ecs/Collision.ts diff --git a/src/Ecs/Components.ts b/src/ecs/Components.ts similarity index 98% rename from src/Ecs/Components.ts rename to src/ecs/Components.ts index bdbe794..3860231 100644 --- a/src/Ecs/Components.ts +++ b/src/ecs/Components.ts @@ -1,5 +1,5 @@ -import { Layer, SpriteSheet } from "../Applet/Render"; +import { Layer, SpriteSheet } from "../applet/Render"; import { Component, copyDense, copySparse, EntityState, StateForSchema, Store } from "./Data"; export class Box { diff --git a/src/Ecs/Data.ts b/src/ecs/Data.ts similarity index 100% rename from src/Ecs/Data.ts rename to src/ecs/Data.ts diff --git a/src/Ecs/Location.ts b/src/ecs/Location.ts similarity index 100% rename from src/Ecs/Location.ts rename to src/ecs/Location.ts diff --git a/src/Ecs/Lockstep.ts b/src/ecs/Lockstep.ts similarity index 100% rename from src/Ecs/Lockstep.ts rename to src/ecs/Lockstep.ts diff --git a/src/Ecs/Renderers.ts b/src/ecs/Renderers.ts similarity index 96% rename from src/Ecs/Renderers.ts rename to src/ecs/Renderers.ts index fe6cb63..ec2e315 100644 --- a/src/Ecs/Renderers.ts +++ b/src/ecs/Renderers.ts @@ -1,4 +1,4 @@ -import { DrawSet, Layer } from "../Applet/Render"; +import { DrawSet, Layer } from "../applet/Render"; import { Data } from "./Components"; import { Join } from "./Data"; import { TransformCx } from "./Location"; diff --git a/src/Ecs/test.ts b/src/ecs/test.ts similarity index 97% rename from src/Ecs/test.ts rename to src/ecs/test.ts index ca39f7d..52f94c0 100644 --- a/src/Ecs/test.ts +++ b/src/ecs/test.ts @@ -1,7 +1,7 @@ -import { Select } from "../Applet/Init"; -import { KeyControl } from "../Applet/Keyboard"; -import { Loop } from "../Applet/Loop"; -import { DrawSet, Layer } from "../Applet/Render"; +import { Select } from "../applet/Init"; +import { KeyControl } from "../applet/Keyboard"; +import { Loop } from "../applet/Loop"; +import { DrawSet, Layer } from "../applet/Render"; import { FindCollisions } from "./Collision"; import { CollisionClass, diff --git a/src/Game/Death.ts b/src/game/Death.ts similarity index 95% rename from src/Game/Death.ts rename to src/game/Death.ts index cdb2fbe..25a16d8 100644 --- a/src/Game/Death.ts +++ b/src/game/Death.ts @@ -1,6 +1,6 @@ -import { PlaySfx } from "../Applet/Audio"; -import { Location, Polygon, PolygonComponent, RenderBounds } from "../Ecs/Components"; -import { Create, Id, Join, Lookup, Remove } from "../Ecs/Data"; +import { PlaySfx } from "../applet/Audio"; +import { Location, Polygon, PolygonComponent, RenderBounds } from "../ecs/Components"; +import { Create, Id, Join, Lookup, Remove } from "../ecs/Data"; import { Data, Lifetime, Teams, World } from "./GameComponents"; export function SelfDestructMinions(data: Data, world: World) { diff --git a/src/Game/GameComponents.ts b/src/game/GameComponents.ts similarity index 95% rename from src/Game/GameComponents.ts rename to src/game/GameComponents.ts index e11a608..d82d2f7 100644 --- a/src/Game/GameComponents.ts +++ b/src/game/GameComponents.ts @@ -1,9 +1,9 @@ -import { KeyName } from "../Applet/Keyboard"; -import { DrawSet, Layer } from "../Applet/Render"; -import { ComponentSchema, Data as EcsData } from "../Ecs/Components"; -import { Component, copySparse, Join, StateForSchema, Store } from "../Ecs/Data"; -import { DumbMotion } from "../Ecs/Location"; -import { INPUT_FREQUENCY, LockstepProcessor } from "../Ecs/Lockstep"; +import { KeyName } from "../applet/Keyboard"; +import { DrawSet, Layer } from "../applet/Render"; +import { ComponentSchema, Data as EcsData } from "../ecs/Components"; +import { Component, copySparse, Join, StateForSchema, Store } from "../ecs/Data"; +import { DumbMotion } from "../ecs/Location"; +import { INPUT_FREQUENCY, LockstepProcessor } from "../ecs/Lockstep"; import { Buttons } from "./Input"; export enum GamePhase { diff --git a/src/Game/Input.ts b/src/game/Input.ts similarity index 88% rename from src/Game/Input.ts rename to src/game/Input.ts index c08cd4a..4bc5bd1 100644 --- a/src/Game/Input.ts +++ b/src/game/Input.ts @@ -1,4 +1,4 @@ -import { KeyHandler, KeyName } from "../Applet/Keyboard"; +import { KeyHandler, KeyName } from "../applet/Keyboard"; export class Buttons implements KeyHandler { diff --git a/src/Game/Main.ts b/src/game/Main.ts similarity index 84% rename from src/Game/Main.ts rename to src/game/Main.ts index 7bf2ddc..33c9dde 100644 --- a/src/Game/Main.ts +++ b/src/game/Main.ts @@ -1,13 +1,13 @@ import pipe from "callbag-pipe"; import subscribe from "callbag-subscribe"; -import { KeyControl, KeyName } from "../Applet/Keyboard"; -import { DrawSet } from "../Applet/Render"; -import { Location, PolygonComponent, RenderBounds } from "../Ecs/Components"; -import { Create } from "../Ecs/Data"; -import { RunRenderBounds } from "../Ecs/Renderers"; -import { LockstepClient } from "../Net/LockstepClient"; -import { LoopbackServer } from "../Net/LoopbackServer"; +import { KeyControl, KeyName } from "../applet/Keyboard"; +import { DrawSet } from "../applet/Render"; +import { Location, PolygonComponent, RenderBounds } from "../ecs/Components"; +import { Create } from "../ecs/Data"; +import { RunRenderBounds } from "../ecs/Renderers"; +import { LockstepClient } from "../net/LockstepClient"; +import { LoopbackServer } from "../net/LoopbackServer"; import { Data, Engine, PlayerControl } from "./GameComponents"; import { Buttons } from "./Input"; diff --git a/src/Game/Message.ts b/src/game/Message.ts similarity index 94% rename from src/Game/Message.ts rename to src/game/Message.ts index 8f26abd..6f898b0 100644 --- a/src/Game/Message.ts +++ b/src/game/Message.ts @@ -1,6 +1,6 @@ -import { DrawSet } from "../Applet/Render"; -import { Join, Remove } from "../Ecs/Data"; -import { TransformCx } from "../Ecs/Location"; +import { DrawSet } from "../applet/Render"; +import { Join, Remove } from "../ecs/Data"; +import { TransformCx } from "../ecs/Location"; import { Data, GamePhase, World } from "./GameComponents"; /*export function SpawnMessage(color: string, text: string) { diff --git a/src/index.ts b/src/index.ts index 4f87441..b9f2f5b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,9 @@ -import { Select } from "./Applet/Init"; -import { KeyName } from "./Applet/Keyboard"; -import { BindTests } from "./Ecs/test"; -import { Data } from "./Game/GameComponents"; -import { Main } from "./Game/Main"; -import { LoopbackServer } from "./Net/LoopbackServer"; +import { Select } from "./applet/Init"; +import { KeyName } from "./applet/Keyboard"; +import { BindTests } from "./ecs/test"; +import { Data } from "./game/GameComponents"; +import { Main } from "./game/Main"; +import { LoopbackServer } from "./net/LoopbackServer"; /* // Hot Module Reloading stub, if that's viable * declare const module: any; diff --git a/src/Net/LockstepClient.ts b/src/net/LockstepClient.ts similarity index 99% rename from src/Net/LockstepClient.ts rename to src/net/LockstepClient.ts index 929a5cc..61c5afa 100644 --- a/src/Net/LockstepClient.ts +++ b/src/net/LockstepClient.ts @@ -4,7 +4,7 @@ import animationFrames from "callbag-animation-frames"; import map from "callbag-map"; import pipe from "callbag-pipe"; -import { INPUT_FREQUENCY, LockstepProcessor, LockstepState } from "../Ecs/Lockstep"; +import { INPUT_FREQUENCY, LockstepProcessor, LockstepState } from "../ecs/Lockstep"; export const enum MessageTypes { /** diff --git a/src/Net/LoopbackServer.ts b/src/net/LoopbackServer.ts similarity index 96% rename from src/Net/LoopbackServer.ts rename to src/net/LoopbackServer.ts index c4f8dcc..b31bed6 100644 --- a/src/Net/LoopbackServer.ts +++ b/src/net/LoopbackServer.ts @@ -2,8 +2,8 @@ import { Callbag } from "callbag"; import pipe from "callbag-pipe"; import share from "callbag-share"; -import { INPUT_FREQUENCY } from "../Ecs/Lockstep"; -import { catchTalkback, defer, interval, makeSubject, map, merge } from "../Utilities/Callbag"; +import { INPUT_FREQUENCY } from "../ecs/Lockstep"; +import { catchTalkback, defer, interval, makeSubject, map, merge } from "../utilities/Callbag"; import { ClientMessage, MessageTypes, ServerMessage } from "./LockstepClient"; /** Stub loopback server that handles multiple clients, for schemes where GlobalInput = LocalInput[] */ diff --git a/src/Utilities/Callbag.ts b/src/utilities/Callbag.ts similarity index 100% rename from src/Utilities/Callbag.ts rename to src/utilities/Callbag.ts