5 ms·
>Maybe your LoS algorithm sucks with 1x1 columns and windows, so decide your game doesn't need them and you move on. I really like this viewpoint. The awesome
by s_m_t 8y ago
>Maybe your LoS algorithm sucks with 1x1 columns and windows, so decide your game doesn't need them and you move on.
I really like this viewpoint. The awesome thing about a game (and a roguelike in particular)is that YOU generate all the data your algorithms operate on. I'd take your solution a step further. If LoS is the thing holding you back... don't put ANY walls or LoS blocking terrain in your game. What would a roguelike look like without walls? Would it be any fun to play? Maybe you'd have to make it set on the high seas or in space to justify not having walls or LoS blockers.
Typically walls are used in a game to limit the players movement, limit information, and provide meaningful choices in terms of where to go next. Keeping in line with the LoS theme, you need some sort of gameplay mechanic to fulfill those criteria without forcing you to code a sophisticated LoS algorithm. Wind, current, and fog could fulfill those criteria without having to code any LoS beyond fog of war.
- thegeekpirate 8y ago> Keeping in line with the LoS theme Line of sight would be a fantastic Ludum Dare theme!
- Fjolsvith 8y agoOr, call no LoS a spell feature (X-Ray vision) and code LoS later on, after you've had time to think it through.