damerell: (montresor)
Add MemoryShare This Entry
posted by [personal profile] damerell at 05:02am on 04/05/2010
roguelike screen

v0.0.3 is here! It looks much the same but it has a bona fide LOS system. I have written in a repeated process of inventing a naive approach and realising why it doesn't work in the course of writing it.

Next:

Write code to illuminate dark areas backlit by lit areas. (Actually not too bad, I have the data structure set up).

Import plaintext maps, use [personal profile] ceb's starter map and maybe the Roguebasin FOV stresstest map. Very stub combat system so gribbleys may be slain and don't block corridors.

Minor gripe:

The one-space pillars occlude quite a lot of LOS. The LOS code would readily support smaller obstructions that don't meet up to make walls. Implement same?

Major gripe:

In at least some terminals (ahem like the one I am using), the distinction between bold and not-bold for showing in-LOS and out-LOS squares is not very clear. This is a real nuisance because colour is already heavily committed for showing the dark/dim/bright light level of squares and for trails on the floor. I'm open to suggestions here; I might try making out-of-LOS be dark-grey/cyan/yellow based on light level with squares in-LOS being bold and yellow if dark or dim, bold white if bright, but I don't like cyan much.

The reverse-video walls for bright areas are clear and bold up nicely but we can't splash reverse-video all over the map.

ETA: it works much better on walls, perhaps I should not worry too much until I see how it is on a real map not in this vast arena. Also, yes-it-should-be-configurable but the default still wants to be good... and realistically it will be a long time before it is configurable.

PPS: Kahlua is good for a mix of alertness and Jeff Lait style booze-fuelled inspiration. It is not so good for sleeping.
There are 7 comments on this entry. (Reply.)
auntsarentgents: (jeeves & wooster - serious jeeves is ser)
posted by [personal profile] auntsarentgents at 08:32am on 04/05/2010
PPS: Kahlua is good for a mix of alertness and Jeff Lait style booze-fuelled inspiration. It is not so good for sleeping.


Do I have any milk left?
lnr: Halloween 2023 (Default)
posted by [personal profile] lnr at 04:21pm on 04/05/2010
Mmm kahlua. Yay code! And erm, boo, can you make those images a teensy bit narrower in future? 800px would be a huge improvement on 884, hopefully without losing much quality.
damerell: (montresor)
posted by [personal profile] damerell at 04:25pm on 04/05/2010
Yeah, sorry, it's really down to the rxvt I happen to be working in.
ceb: (Default)
posted by [personal profile] ceb at 06:50pm on 04/05/2010
Is kahlua good for perl? :-)
damerell: (booze)
posted by [personal profile] damerell at 07:19pm on 04/05/2010
It seemed to work!
pm215: (Default)
posted by [personal profile] pm215 at 11:23pm on 04/05/2010
Commenting here (a) to check it works and (b) to say that I'm amused that dreamwidth keep warning me that this kind of thing should be "viewed with discretion". First one's free and all that...
damerell: (rogueish)
posted by [personal profile] damerell at 01:26pm on 05/05/2010
But before you know where you are you're writing one.

April

SunMonTueWedThuFriSat
    1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10 11
 
12
 
13
 
14 15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30