gamedev / c-game
Multiplayer C Game
My 2019 multiplayer C game, live: the original SDL2 client compiled to WebAssembly, connected to the original C server. It's now a free-for-all world builder, and everything in it is made by the people who play it.
How to play
- Click the game, type a username, press Tab or Enter, type a password, then press Enter. A new username makes a new account and you design your character.
- Walk with the arrow keys or click where you want to go. At the edge of the map, click the yellow arrow to walk into the next area.
- To chat, type and press Enter. Hover over a player to see their name.
- Click an NPC to talk to it; click a creature that can't talk (or right click one) to fight it.
- Talk to the Tour Guide for a tutorial.
How to play on a phone
- Tap the username or password line to type, then tap Enter.
- Tap where you want to walk. At the edge of the map, tap the yellow arrow to walk into the next area.
- Tap the chat box at the bottom left to bring up the keyboard.
- Tap an NPC to talk to it or fight it, and tap a player to see their name. Drag to scroll lists.
Build the world
- Open the wrench tab (top right) and pick Open Map Editor or Open NPC Editor.
- Anyone can build on a blank chunk. Once a chunk is built, only its builder and admins can change it.
- Create Tile opens a pixel art editor: draw a 32×32 tile and choose how it behaves (solid, slow, water, damaging).
- The map icon (top right) shows every chunk that's been built. Pick one to travel there.
Passwords are hashed on the server (PBKDF2-SHA256 with a random salt), so nobody can read them, including me. Want the backstory? Read the development blog.