Skip to content

Commit 6a69f50

Browse files
committed
un-subproject
1 parent 187472a commit 6a69f50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+32
-29
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

.vscode/settings.json

-8
This file was deleted.

README.md

+3-16

client/public/.gitignore

-5
This file was deleted.

client/index.html index.html

File renamed without changes.
File renamed without changes.

client/package.json package.json

File renamed without changes.

public/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/worlds
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

client/src/debug.ts src/debug.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.

client/src/game.ts src/game.ts

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createGame } from '@dreamlab.gg/core'
22
import { createCursor, PlayerInput } from '@dreamlab.gg/core/entities'
3+
import { calculatePolygons, v } from '@dreamlab.gg/core/math'
34
import { isDebug } from './debug.js'
45
import { createEditor } from './editor/editor.js'
56
import { connect, createNetwork, decodeParams } from './network.js'
@@ -85,4 +86,31 @@ export const init = async () => {
8586
// TODO: Actually allow rebinding keys
8687
game.client.inputs.bindInput('Space', PlayerInput.Jump)
8788
game.client.inputs.bindInput('KeyW', PlayerInput.Jump)
89+
90+
// await game.spawn({
91+
// entity: '@dreamlab/BouncyBall',
92+
// args: {
93+
// radius: 50,
94+
// spriteSource:
95+
// 'https://cdn.discordapp.com/attachments/441805394323439648/1169068510828306513/Screenshot_20231031_201958_sysui.png?ex=65540ee5&is=654199e5&hm=e3c933515e660a65821214cb5bce8e2ca180fa304b701111ca265f592fc19341&',
96+
// },
97+
// transform: { rotation: 0, position: [0, 0] },
98+
// })
99+
100+
const [center, polygons] = calculatePolygons([
101+
v([100, 100]),
102+
v([100, 200]),
103+
v([300, 100]),
104+
v([300, 200]),
105+
106+
v([200, 180]),
107+
v([200, 20]),
108+
v([160, 80]),
109+
])
110+
111+
await game.spawn({
112+
entity: '@dreamlab/ComplexSolid',
113+
args: { polygon: polygons },
114+
transform: { position: center },
115+
})
88116
}

client/src/main.ts src/main.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

client/src/style.css src/style.css

File renamed without changes.
File renamed without changes.
File renamed without changes.

client/tsconfig.json tsconfig.json

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)