roguelike tutorial in Go using the framework gruid

Gruid Go Roguelike Tutorial

This tutorial follows the overall structure of the TCOD Python Tutorial, but makes use of the Go programming language and the gruid roguelike game framework, instead of TCOD.

Table of Contents

  • Part 0 & 1 - Setting Up & Drawing the “@” symbol and moving it around
  • Part 2 - Generic entities and the map
  • Part 3 - Generating a Dungeon

Tips & Remarks

This tutorial assumes some familiarity with programming and git: each part is a git branch and will come with a few explanations, but it's expected that you read the code and comments and diffs between parts using git.

You can do some simple operations on the web, like compare changes between two parts, or view the code of a particular part.

Assuming you've followed the set up instructions of Part 0, you may want to clone locally the tutorial's repository to explore:

# Clone the repository in a new directory gruid-rltuto:
git clone https://github.com/anaseto/gruid-rltuto
cd gruid-rltuto
# You can then use git on the command line to switch between parts:
git checkout part-1
# View code changes between two parts:
git diff part-1..part-2 *.go
# View changes between two parts for a specific file:
git diff part-1..part-2 model.go
# Run the code of the current branch "part-1":
go run .
Similar Resources

Learn how to write webapps without a framework in Go.

This is an easy to understand example based tutorial aimed at those who know a little of Go and nothing of webdev and want to learn how to write a webserver in Go. You will create a to do list application as you advance the chapters.

Dec 28, 2022

📁 Examples for 🚀 Fiber - Express inspired web framework written in Go

📁 Examples for 🚀 Fiber - Express inspired web framework written in Go

Dec 29, 2022

This project is a GO Restful API service with Gin framework and Gorm SQLite with authorization

GO Restful API service with Gin framework and Gorm SQLite Template Structure Gin is a web framework written in Go (Golang). It features a martini-like

Oct 24, 2022

An e-book on building network applications using golang

Network programming with Go

Dec 7, 2021

Cook amazing genetic parts using our cookbook. Recipes and synthetic biology tools to take your breath away.

friendzymes-cookbook Friendly tools for a friendly community. A collection of tutorials and genetic tools for synthetic biology. This cookbook is a su

Aug 19, 2022

This is an example of a keep-it-simple directory layout for Go projects that was created using DDD principles, please copy and share if you like it.

DDD Go Template This project was created to illustrate a great architectural structure I developed together with @fabiorodrigues in the period I was w

Dec 5, 2022

Program that checks if the switch OLED is available on Nintendo using ChromeDP.

Nintendo Switch OLED stock checker Program that checks if the switch OLED is available on Nintendo using ChromeDP. It will check the pages for the Add

Nov 29, 2021

Check-location - A golang service to check user location using their IP address

this is a golang service to check user location using their IP address. The purp

Aug 29, 2022

A demo of using Go channels as a function composition technique.

Channels Example This is a Go program containing functions that consume and produce channels. I think this is potentially a nicer API shape than e.g.

Jan 16, 2022
go programming language tutorial

go programming language tutorial Hello World Hello World fmt package Variables Short Declaration The Var Keyword Exploring Type Own Type Conversion Ty

Aug 27, 2022
Comparison of Pixel and Ebiten API on the trees tutorial

Rewriting the trees tutorial of Pixel with Ebiten for API comparison I tried Pixel and really liked the clean API but the dev seems to be on pause sin

Dec 7, 2021
Web programming tutorial with Golang

Tutorial de programação Web com Golang Para rodar o servidor Entre na pasta web_app, onde está o main.go cd caminho/para/pasta/web_app Agora execute

Jan 19, 2022
Open IM Demo Register Use Tutorial

Open-IM-Demo-Register Use Tutorial First step: Log in to this site: https://www.aliyun.com/product/sms Buy Short Message Service You will get accessKe

Mar 19, 2022
Tutorial and sample codes for Go language

Tutorial and sample codes for Go language

Jan 4, 2022
This is a brief tutorial I created for a couple friends to show how to do some stuff in go and ethereum. Feel free to do any PRs with suggestions

golang-tutorial This is a brief tutorial I created for a couple friends to show how to do some stuff in Go and Ethereum. Milestones Create the environ

Aug 29, 2022
Learn the Go programming language (Golang) in this step-by-step tutorial course for beginners

Learn the Go programming language (Golang) in this step-by-step tutorial course for beginners. Go is an open source programming language designed at Google that makes it easy to build simple, reliable, and efficient software.

Dec 16, 2021
An automated tutorial to teach you about Go!

Golings Welcome to Golings, an automated Go tutorial program (inspired by Rustlings and Haskelling). This program has some small exercises where you c

Dec 31, 2021
7 days golang programs from scratch (web framework Gee, distributed cache GeeCache, object relational mapping ORM framework GeeORM, rpc framework GeeRPC etc) 7天用Go动手写/从零实现系列

7 days golang programs from scratch README 中文版本 7天用Go从零实现系列 7天能写什么呢?类似 gin 的 web 框架?类似 groupcache 的分布式缓存?或者一个简单的 Python 解释器?希望这个仓库能给你答案

Jan 5, 2023
Boilerplate for writing Go applications without framework using hexagonal application development approach
Boilerplate for writing Go applications without framework using hexagonal application development approach

Boilerplate for writing Go applications without framework using hexagonal application development approach

Dec 2, 2022