@rbxts/ohmyprvd
v0.2.0-dev.5
Published
Oh My Prvd is a delightful framework for Roblox games.
Downloads
1
Readme
Oh My Prvd
Oh My Prvd is a delightful framework for Roblox games.
Boring. Do it again.
Oh My Prvd will not make you a front page developer, but you may feel like one.
Oh My Prvd accelerates the process with providers, connecting the top-level design of your game. Choose to mix in networking and components as you need. Enjoy a development experience that fades into the background, freeing you to build faster and shout: Oh, My Prvd!
Highlights
- Type-safe APIs for both Luau and TypeScript
- Featherlight, choose to mix in packages as you need
- Uses dependency injection for cleaner code organization
- Made to be extendable
- Non-intrusive lifecycle events for flexibility
- Designed for clarity with syntax inspired by Rust
Sparked your interest? Get going in minutes with our on-rails tutorial.
Warning: Oh My Prvd is in early development. Portions of the API may break, be changed, or outright deleted. There will be dragons.
Code Sample
local prvd = require("@pkg/ohmyprvd")
local CharacterProvider = require("./character-provider")
local CombatProvider = {
characterProvider = prvd.use(CharacterProvider)
}
function CombatController.performMove(
self: typeof(CombatController),
move: CombatMove
)
local character = self.characterProvider:awaitCharacter()
-- do something with the character
end
return prvd.Provider("CombatProvider", CombatProvider)
import { Provider, use } from "@rbxts/ohmyprvd"
import { CharacterProvider } from "./character-provider"
export const CombatProvider = Provider("CombatProvider", {
characterProvider: use(CharacterProvider)
performMove(move: CombatMove) {
const character = this.characterProvider.awaitCharacter()
// do something with the character
}
})
FAQ
How do you say Oh My Prvd?
However you want:
- Oh, my prvd! for excitement
- Oh, my providers! for completeness
- O-m-p! for brevity
- Ommp! for power
Who's that handsome gentlemen on the home page?
His name is Womp Womp: