| Crates.io | rust-console-game-engine |
| lib.rs | rust-console-game-engine |
| version | 0.5.1 |
| created_at | 2021-05-19 10:58:08.10202+00 |
| updated_at | 2021-05-25 10:50:42.566876+00 |
| description | Console game engine for Rust, heavily inspired by Javidx9's One Lone Coder Console Game Engine (https://github.com/OneLoneCoder/videos/blob/master/olcConsoleGameEngine.h) |
| homepage | https://github.com/florin-saftoiu/rust-console-game-engine |
| repository | https://github.com/florin-saftoiu/rust-console-game-engine.git |
| max_upload_size | |
| id | 399514 |
| size | 55,363 |
This is a hobby project. It's a console game engine for Rust. Heavily inspired by javidx9's One Lone Coder Console Game Engine. The goal is to learn Rust and a bit about making games.
For now, it only works on Windows.
cargo build one of the examples from examples/**. The actual engine is in src/lib.rs.
The following settings need to be in your settings.json file :
{
"rust-analyzer.linkedProjects": [
"Cargo.toml",
"examples/fps/Cargo.toml",
"examples/noise/Cargo.toml",
"examples/racer/Cargo.toml",
"examples/test_engine/Cargo.toml"
]
}
The following tasks need to be in your tasks.json file :
{
"type": "cargo",
"label": "fps",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"options": {
"cwd": "${workspaceFolder}/examples/fps"
}
},
{
"type": "cargo",
"label": "noise",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"options": {
"cwd": "${workspaceFolder}/examples/noise"
}
},
{
"type": "cargo",
"label": "racer",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"options": {
"cwd": "${workspaceFolder}/examples/racer"
}
}
The following configuration needs to be in your launch.json file :
{
"name": "fps",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/examples/fps/target/debug/fps.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/examples/fps",
"environment": [],
"console": "newExternalWindow",
"preLaunchTask": "fps"
},
{
"name": "noise",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/examples/noise/target/debug/noise.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/examples/noise",
"environment": [],
"console": "newExternalWindow",
"preLaunchTask": "noise"
},
{
"name": "racer",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/examples/racer/target/debug/racer.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/examples/racer",
"environment": [],
"console": "newExternalWindow",
"preLaunchTask": "racer"
}