diff --git a/src/app/home/drawMap.ts b/src/app/home/drawMap.ts index 13aa863..2cccd07 100644 --- a/src/app/home/drawMap.ts +++ b/src/app/home/drawMap.ts @@ -1,4 +1,4 @@ -import { MapTile } from '../../../../Kawaii-Jumper-server/src/mapTile'; +import { MapTile } from './mapTile'; export const drawMap = ( mapTiles: MapTile[], diff --git a/src/app/home/globals.ts b/src/app/home/globals.ts index fc80fd7..390ae3b 100644 --- a/src/app/home/globals.ts +++ b/src/app/home/globals.ts @@ -1,7 +1,7 @@ import { NativeAudio } from '@ionic-native/native-audio/ngx'; import { Platform } from '@ionic/angular'; import { Socket } from 'ngx-socket-io'; -import { MapTile } from '../../../../Kawaii-Jumper-server/src/mapTile'; +import { MapTile } from './mapTile'; import { makeHTMLAudioElements } from './makeHTMLAudioElements'; import { makeHTMLImageElements } from './makeHTMLImageObjects'; import { Players } from './players'; diff --git a/src/app/home/mapTile.ts b/src/app/home/mapTile.ts new file mode 100644 index 0000000..d5b47d7 --- /dev/null +++ b/src/app/home/mapTile.ts @@ -0,0 +1,7 @@ +export type MapTile = { + x: number; + y: number; + w: number; + h: number; + color: number; +}; \ No newline at end of file diff --git a/src/app/home/player.ts b/src/app/home/player.ts index 7b10882..cd90db0 100644 --- a/src/app/home/player.ts +++ b/src/app/home/player.ts @@ -1,4 +1,3 @@ -import { Position } from '../../../../Kawaii-Jumper-server/src/position'; import { applyGravity } from './applyGravity'; import { DeltaTime } from './deltaTime'; import { getAngleBetweenTwoPoints } from './getAngleBetweenTwoPoints'; diff --git a/src/app/home/position.ts b/src/app/home/position.ts new file mode 100644 index 0000000..d83359c --- /dev/null +++ b/src/app/home/position.ts @@ -0,0 +1,4 @@ +export class Position { + public x: number = 0; + public y: number = 0; +} \ No newline at end of file diff --git a/src/app/home/setupSocketListeners.ts b/src/app/home/setupSocketListeners.ts index 9d0fce9..a5e74ae 100644 --- a/src/app/home/setupSocketListeners.ts +++ b/src/app/home/setupSocketListeners.ts @@ -1,4 +1,4 @@ -import { MapTile } from "../../../../Kawaii-Jumper-server/src/mapTile"; +import { MapTile } from "./mapTile"; import { Globals } from "./globals"; import { MySocket } from "./mySocket"; import { Players } from "./players"; diff --git a/src/app/home/types.dto.ts b/src/app/home/types.dto.ts index 3820482..aee5657 100644 --- a/src/app/home/types.dto.ts +++ b/src/app/home/types.dto.ts @@ -1,4 +1,4 @@ -import { Position } from '../../../../Kawaii-Jumper-server/src/position'; +import { Position } from './position'; import { Player } from './player'; export type PlayerDTO = {