Skip to content

A simple Scratch-like gamedev tool that has its own scripting language also named Crust!

License

Notifications You must be signed in to change notification settings

Muhtasim-Rasheed/crust-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

198 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crust

Contributors Are Welcome!

Crates.io Downloads (recent) GitHub License GitHub Stars

Crust ✨ is a Scratch-like game development tool with its own programming language, also named Crust.

Crust Logo

What is Crust?

Crust is a game development tool that allows users to create games using text-based programming, unlike Scratch, which is drag-and-drop based. Main features include but are not limited to:

  • Text-based programming language
  • A lot of functions from Scratch
  • Runs at a smooth 60 FPS instead of 30 FPS in Scratch
  • Supports all major platforms (Windows, macOS, Linux) except mobile
  • Open-source and free to use

Contributing

We are looking for contributors, even tiny PRs help! Please check out the contributing guidelines to get started, you'll earn a place in the hall of contributors!

Installation

To install Crust, you need to have Rust installed on your system. You can install Rust by following the instructions on the official Rust website. You have the following options to install Crust:

Using Cargo

To install Crust from crates.io, run the following command:

cargo install crust-engine

Building from Source

To build Crust from source, run the following commands:

git clone https://github.com/Muhtasim-Rasheed/crust-engine.git
cd crust-engine
cargo install --path .

Documentation

You can find the documentation for Crust by going here. The documentation covers everything from the Crust programming language to how to run Crust projects.

Example

debug_options = []

[stage]
backdrops = [ "backdrop_0.png" ]

[[sprites]]
name = "example"
code = "example.crst"
sounds = []
costumes = []
x = 0
y = 0
w = 1
h = 1
// example.crst
// This is a simple Crust program that draws a blue circle on the screen

setup {}

update {
    set_color(0, 0, 255) // Set color to blue
    circle(100, 100, 50) // Draw a circle at (100, 100) with a radius of 50
}

The output:

Example Output

License

Crust is licensed under the GNU GPLv3. You can use, modify, and distribute it under the terms of this license.

About

A simple Scratch-like gamedev tool that has its own scripting language also named Crust!

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •