Build games,
not engines.
Everything between an idea and a shipped game, already in one C++ engine.
What's in
the engine.
A renderer, physics, water, netcode and an editor: one C++ engine, every line of it yours to read.
A sea you
can sail on.
Waves drawn on the GPU and worked out the same way on the CPU, so whatever floats rides the waves you see.
Light that fills
a room.
Sun through fog, light bounced off stone, soft shadows and reflections.
Sound that hears
the room.
Rays find the walls: a sound behind a column comes through muffled, and a hall rings like a hall. Your colliders are all it needs.
Characters with
weight.
Skinned on the GPU, blended clip to clip, and handed to physics as a ragdoll when they fall.
Knock it
all down.
Deterministic to the bit: the same collapse on the server, on every client, and in every take of this film.
Fire, smoke
and sparks.
Particles with flipbooks, trails and their own light: an explosion lights the stone around it.
Menus that move
the world.
Buttons, sliders and crisp text, laid out in the editor or in code. This photo mode is made of them, each control wired to the renderer.
Ground you shape
by hand.
Raise, smooth, paint and plant it with the editor's brushes, or from code: this ridge rises while the game runs.
Change the code.
It's already running.
Your game is a C++ module. Rebuild it in the editor and it swaps in mid-play: the session restarts on the new code, every Inspector value kept.
void Game::Crate::onUpdate(float dt) {
glm::vec4 c = glowColor;
if (Light* glow = tryGet<Light>())
glow->color = {c.r, c.g, c.b};
}
Plain C++.
The editor does the rest.
A behavior is a class: override the hooks you need. Its fields become Inspector controls, saved with the scene.
class Crate : public Behavior<Crate> {
public:
void onStart() override;
void onUpdate(float dt) override;
void onCollisionEnter(const Collision& hit) override;
public:
float pushStrength = 6.0f;
glm::vec4 glowColor = {1.0f, 0.6f, 0.2f, 1.0f};
AssetRef<AudioClipAsset> thud;
};
// Its name, its copy and the fields the editor shows and the scene saves.
VKM_BEHAVIOR(::Game::Crate)
VKM_F(pushStrength, 0.0f, 20.0f, "How hard Push shoves it")
VKM_F(glowColor)
VKM_F(thud)
VKM_REFLECT_END()
void Game::Crate::onStart() {
LOG_INFO("Crate %u ready", entity().slot());
}
void Game::Crate::onUpdate(float dt) {
glm::vec4 c = glowColor;
if (Light* glow = tryGet<Light>())
glow->color = {c.b, c.g, c.r};
// "Push" is bound in project.json: "actions": { "Push": ["E"] }
Rigidbody* body = tryGet<Rigidbody>();
if (body && pressed("Push"))
body->linearVelocity += Math::WORLD_FORWARD * pushStrength;
}
void Game::Crate::onCollisionEnter(const Collision& hit) {
playSoundAt(thud, hit.point);
}