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.


Messages - Eagoth

Pages: [1]
1
What? Do you mean to add symbol variations for each color to the tileset.png? That sounds pretty crazy, what if I want hundreds of colors?

2
Thanks, but I ended building a vector of SDL_Rect pointers and using REXSpeeder to read .xp files.

Now I'm trying to apply color changes to each tile (foreground and background), because you need (I think) to get the pixels from a surface and I only have the texture. Let's see if I can access the pixels in some way.

3
Programming / Beginner question (SDL2 & C++): How to build the grid
« on: February 16, 2017, 07:49:11 PM »
Hello, guys.

I've been following lazyfoo's SDL2 tutorials and I have in mind to try a little roguelike using SDL2 and C++ (no libtcod yet).

I'm pretty new to all this (even C++), and I wondered what's the best approach to create the grid where every tile of the map is displayed. It's, like, create a shitload of textures in an array? My initial idea is to have a png with all the ascii characters (like libtcod, actually), and then mask the png for each tile, but I'm not sure on how to start.

The idea is also to work later with REXPaint files, because I have some maps drawn there.

Thanks! And sorry if this is a little chaotic and noobish question (many more to follow) :รพ.

Pages: [1]