• This repository has been archived on 17/Jun/2022
  • Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Following along with the /r/roguelikedev tutorial session, in Rust and implementing my own library as well!

Rusty Roguelike!

The fine folks over at /r/roguelikedev on Reddit are running a summer of learning to write roguelikes. I've written quite a few, but wanted to learn Rust. So this repo is about my learning Rust.

  • There's an rltk folder containing a module, in which I'm using OpenGL to simulate a basic console renderer.
  • The main.rs file is the boilerplate required to get this to run. Still working on improving that.
  • game contains the actual game, broken into various files.

It's cheating to build both the library AND the game - but I don't know a better way to learn the language.

Update: Now that I've finished spinning it off into its own project, Rusty Roguelike uses rltk_rs for all the back-end features. You can see the library side of things in the rltk_rs repo.

Progress

Hello world with an OpenGL console pretending to be CP437:

Boring console image

Moving @ around a random map:

Animated GIF

Generating a nicer map:

Animated GIF

Field-of-view and visibility:

Animated GIF

Mouse support and a variety of mobs:

Animated GIF

Dijkstra-flow map based pathfinding (A* will follow) for basic mob AI:

Animated GIF

A-Star based pathfinding, and the beginnings of a user interface, log and end-game:

Animated GIF

Nicer tooltips:

Animated GIF

Pick up and use healing potions:

Animated GIF

Load and Save the game, and a main menu (tutorial 10):

Animated GIF

Added in nicer wall graphics, using a bitmask to detect the correct tile

Animated GIF

Added in some basic particle effects to make things prettier.

Animated GIF

More Repositories

1

HandsOnRust

The source code that accompanies Hands-on Rust: Effective Learning through 2D Game Development and Play by Herbert Wolverson
Rust
302
star
2

rltk

Roguelike Toolkit - Modern C++ (14) SFML-based toolkit for creating roguelikes.
C++
297
star
3

bgame

Nox Futura - sort of like Dwarf Fortress in space.
C++
183
star
4

noxfutura

Nox Futura is a Rust port of the C++ project of the same name. It's a Dwarf Fortress like, in 3D (and a futuristic setting). It's also a passion project, so I'm not expecting formalized release dates!
Rust
122
star
5

roguelike-celebration-2020

Code for my Procedural Map Generation talk at the Roguelike Celebration 2020
Rust
61
star
6

secbot-2021-7drl

7-day Roguelike, 2021 (Success)
Rust
23
star
7

bevy-test

A quick and dirty Space Invaders type game in Bevy, with attached tutorial.
Rust
20
star
8

dankestdungeon

A 7DRL Project, using Emscripten to create a simple roguelike system in C++ that runs in the browser.
C++
19
star
9

png2rex

A quick utility for turning PNG files into REXPaint xp files.
C++
15
star
10

rust_brain_teasers

Source code to accompany the Rust Brain Teasers book.
Rust
15
star
11

bqos-oss

Bracket QOS - a Quality of Service/Experience server system writtin in Rust. Derived from the excellent LibreQOS Project.
Rust
14
star
12

ArdanUltimateRustFoundations

Course Material for Ardan Labs - Ultimate Rust: Foundations
Rust
14
star
13

Ardan-1HourAsync

Code accompanying the 1 Hour Dive into Async live stream.
Rust
13
star
14

png2rex_rs

Utility for converting PNG files to REX Paint .xp files.
Rust
9
star
15

rf-signals

RF planning system for WISPs, and a port of various RF algorithms to pure Rust.
JavaScript
9
star
16

cpumap-pping

A work-in progress experimenting with merging xdp-pping and xdp-cpumap-tc into one BPF program, with a view to helping LibreQoS and BracketQOS obtain this information in a scalable manner.
C
6
star
17

pyrite_box

Fun project making something that looks a bit like the old SSI Gold Box games.
Rust
6
star
18

libre_qos_rs

Some helpers for LibreQOS, written in Rust.
Rust
4
star
19

TechSupportRL

A quick roguelike for fun, as a break from writing Black Future. Should work as an RLTK example.
C++
4
star
20

bracket-ui

A user-interface library for bracket-lib.
Rust
3
star
21

rltk2

The Roguelike Toolkit, Version 2 - Very Much in development, I don't recomend trying to use it yet!
C++
3
star
22

rusty-jam-2

Entry for Rusty Jam 2 ( https://itch.io/jam/rusty-jam-2 )
Rust
3
star
23

gravity_well

A simple two-player (shared keyboard) game in which you collect salvage and try not to fall into a black hole.
Rust
3
star
24

Ardan-NR-2023-07

Rust
2
star
25

noxunreal

Unreal Engine version of Nox Futura. Relies on libnox.
Lua
2
star
26

ArdanRustDebugOptimize

In-Development repo for Rust Debugging & Optimization
Rust
2
star
27

Ardan_2023_07_24_Live

Live code repo for Ardan 2023/07/24 training
Rust
1
star
28

llm_rust_article_1

Rust
1
star
29

Ardan_2023_05_18_Live

Live coded repo for 2023-05-18 Rust 1
Rust
1
star
30

UltimateRust1-EcoSystem

Code to accompany Ardan Labs - Ultimate Rust 1, Condensed class.
Rust
1
star
31

ArdanLabs_RustInYourEnterprise

Code that accompanies the Introducing Rust into your Company Ecosystem talk
Rust
1
star