Skip to content

matyasjay/campingsite

Repository files navigation

Camping in R(oblox)ojo Land!

GitHub Release GitHub Actions Workflow Status Static Badge Static Badge

Play this game online at Roblox.com!

This repository is a partially managed setup for Roblox Studio using Rojo. It includes all scripts, tools and some GUI elements that make up the game environment. You can start by importing the build/working.rbxl or build/latest.rbxl files into the Studio and start working on the codebase shipped by this repository.

Note

The campingsite project is a personal learning sandbox and includes experimental solutions not intended for serious gameplay. While it serves as a development playground, each iteration is published on Roblox Hub as a public experience, so it remains accessible and playable in the Roblox Client.

Features

The game's objective is to light a fire in the fireplace. Players gather logs by chopping trees and collect stone and flint by mining rocks. Each player starts with the necessary tools in their inventory and receives guidance through wooden signs. All gathered resources must be placed on the firepit, and once complete, the fire lights automatically. After a short delay, players can choose to play again, which resets the game to its initial state.

  • Camp area with trees to chop, rocks to mine, and a central fireplace
  • Axe and pickaxe provided for resource gathering
  • Progress feedback through wooden signs
  • Option to replay after lighting the fire
  • Store and track player stats (visits, logs chopped, stone, flint picked and tools swinged) on the server

Preview

Camping.Demo.mov

Development

Visit the API documentation to see the available classes and functions to use when developing this project!

Starting the Rojo Server

To launch the project in Roblox Studio, start the Rojo server by running:

make serve

This command merges the files in the project folder and generates the default.project.json file in the root directory.

Once the Rojo server is running, connect to it using the Rojo Plugin in Roblox Studio.

Building the Project

To manually build the project, execute:

make build

This command generates the default.project.json file in the root directory. Additionally, pushing to the main branch triggers a GitHub Action that builds the project and outputs the compiled game file as build/latest.rbxm.

The build/latest.rbxm file is equivalent to the output from running rojo build -o build/latest.rbxm.

Important

Known Issues

  • You need to manually restart Rojo Server to make project file changes applied

Testing

The project uses LuaUnit as its generic native Lua test framework.