Skip to content

Commit

Permalink
Demo (#96)
Browse files Browse the repository at this point in the history
* Fix query types

* Add systems to demo

* Remove comments of inlined versions

* Fix style

* Replication

* Test :iter
  • Loading branch information
Ukendio authored Aug 7, 2024
1 parent 56694ba commit a73eeb1
Show file tree
Hide file tree
Showing 28 changed files with 1,288 additions and 151 deletions.
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

0 comments on commit a73eeb1

Please sign in to comment.