Grid Sage Forums

Grid Sage Forums

  • April 25, 2024, 07:35:16 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

LINKS: Website | Steam | Wiki

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - thebracket

Pages: [1]
1
Everything REXPaint / png2rex - Rust Edition
« on: February 27, 2021, 10:22:55 AM »
Hi!

I just converted my old png2rex tool from C++ to Rust. You can find the new version here: https://github.com/thebracket/png2rex_rs

It now supports flipping the image (vertically or horizontally) and image resizing.

Just dropping this here in case someone finds it useful. I needed it for a project I'm playing with, and didn't feel like resurrecting the old C++ system now that I'm almost 100% using Rust.

(Edit - I must be dyslexic, I named the topic rex2png rather than the right way around)

2
Everything REXPaint / A quick PNG to REX (xp) converter
« on: August 10, 2016, 11:37:45 AM »
Hey,

I don't know if this is useful to anyone, but for my current project I wanted to turn some PNGs into REX files. So I threw together a tool, and put it up on GitHub in case anyone can benefit from it. You can find the tool here: https://github.com/thebracket/png2rex

Basically, it lets you turn:


into this:


There's nothing super clever about it. It reads an RGBA PNG, and converts the RGB parts directly. The Alpha channel is transparent at 0, 1/4 filled at 25%, 1/2 filled at 75%, and a filled cell otherwise. Primitive, but it gets the job done!

3
I just wanted to let you know that RLTK (my modern C++ roguelike toolkit) now supports REXPaint. I integrated REXSpeeder (full credit to Pyridine) - with some changes to make it fit the coding style of the rest of the library - and added the appropriate drawing code to apply sprites to virtual terminals. This version only renders the first layer; that's on my short-list of things to remedy soon!

It's very much a work-in-progress, but there's enough meat there to build a game. You can get RLTK at https://github.com/thebracket/rltk.

Pages: [1]