Particubes is an all-in-one application for players and game creators (artists, developers).

This documentation contains everything you need to know as a developer to create your own realtime multiplayer games. πŸ‘Ύ

In Particubes, everything is made out of cubes. Terrain, avatars, items, vehicles... everything!

Mainly because it's quick and easy to create game assets with cubes:

sword.mp4

Also because shapes made of 3D aligned cubes makes a pretty good standard for cross-game compatibility: πŸ™‚

Scripting language

The scripting language we use in Particubes is Lua.

Lua is very solid and lighweight scripting language, it's been around since 1993. It's easy to learn and already used by other popular video game platforms like Roblox or Core.

A default Lua script is generated when you create a new game. You can launch the game in debug mode and select Edit code in the pause menu to see it.

Don't worry if you've never used it. You'll be able to define custom things for your games in minutes. ☺️

Quick example: How to jump higher?

Find where Client.Action1 is defined in the default script:

-- function triggered when pressing the Action1 button
Client.Action1 = function()
    -- Player represents the local player ingame avatar.
    -- Test if Player is on ground before changing velocity,
    -- otherwise, player could jump while in the air. :D
    if Player.IsOnGround then
        Player.Velocity.Y = 50
    end
end

Edit this line:

Player.Velocity.Y = 200 -- changed the value to jump higher

Use "Publish" button

The game will restart for all connected players (including yourself), everyone will now jump higher. πŸ™‚

jump-higher.mp4

πŸ’‘ Script comments start with --. Comments are not considered when running the script, they're only notes for developers.