r/roguelikedev • u/aaron_ds Robinson • Jul 16 '19
RoguelikeDev Does The Complete Roguelike Tutorial - Week 5
This week is all about setting up items and ranged attacks!
Part 8 - Items and Inventory
It's time for another staple of the roguelike genre: items!
Part 9 - Ranged Scrolls and Targeting
Add a few scrolls which will give the player a one-time ranged attack.
Of course, we also have FAQ Friday posts that relate to this week's material
- #7: Loot(revisited)
- #32: Combat Algorithms(revisited)
- #40: Inventory Management(revisited)
- #60: Shops and Item Acquisition
- #76: Consumables
Feel free to work out any problems, brainstorm ideas, share progress and and as usual enjoy tangential chatting. :)
42
Upvotes
View all comments
Show parent comment
2
u/thebracket Jul 23 '19
It's a GLSL shader. There's two effects rolled in: a scanline effect (which effectively takes the screen Y position and darkens every other line by a few percent), and a screen-burn effect which calculates the distance from the center of the screen (for some reason, OpenGL doesn't have a "screen dimensions" variable in earlier releases - so it takes the screen size as a uniform parameter) and for pixels that would otherwise be black it adds a dark cyan - lighter as it gets closer to the middle of the screen.
The shader is here.