Skip to content

Demo #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 7, 2024
Merged

Demo #96

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aftman.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ rojo = "rojo-rbx/rojo@7.4.1"
stylua = "johnnymorganz/stylua@0.19.1"
selene = "kampfkarren/selene@0.26.1"
wally-patch-package = "Barocena/wally-patch-package@1.2.1"
Blink = "1Axen/Blink@0.14.1"
26 changes: 14 additions & 12 deletions demo.project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@
"tree": {
"$className": "DataModel",
"ReplicatedStorage": {
"Shared": {
"$path": "demo/src/shared"
},
"$className": "ReplicatedStorage",
"$path": "demo/src/ReplicatedStorage",
"ecs": {
"$path": "src"
},
"net": {
"$path": "demo/net/client.luau"
}
},
"ServerScriptService": {
"Server": {
"$path": "demo/src/server"
}
},
"StarterPlayer": {
"StarterPlayerScripts": {
"Client": {
"$path": "demo/src/client"
}
"$className": "ServerScriptService",
"$path": "demo/src/ServerScriptService",
"net": {
"$path": "demo/net/server.luau"
}
},
"Workspace": {
Expand Down Expand Up @@ -66,6 +63,11 @@
"$properties": {
"RespectFilteringEnabled": true
}
},
"StarterPlayer": {
"StarterPlayerScripts": {
"$path": "demo/src/StarterPlayer/StarterPlayerScripts"
}
}
}
}
18 changes: 18 additions & 0 deletions demo/.config/blink
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
option ClientOutput = "../net/client.luau"
option ServerOutput = "../net/server.luau"

event UpdateTransform {
From: Server,
Type: Unreliable,
Call: SingleSync,
Poll: true,
Data: (f64, CFrame)
}

event SpawnMob {
From: Server,
Type: Reliable,
Call: SingleSync,
Poll: true,
Data: (f64, CFrame, u8)
}
14 changes: 6 additions & 8 deletions demo/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# example
Generated by [Rojo](https://github.com/rojo-rbx/rojo) 7.4.1.
# Demo

## Getting Started
To build the place from scratch, use:
## Build with Rojo
To build the place, run the following commands from the root of the repository:

```bash
rojo build -o "example.rbxlx"
cd demo
rojo build -o "demo.rbxl"
```

Next, open `example.rbxlx` in Roblox Studio and start the Rojo server:
Next, open `demo.rbxl` in Roblox Studio and start the Rojo server:

```bash
rojo serve
```

For more help, check out [the Rojo documentation](https://rojo.space/docs).
Loading