Message from discussion
7DRL: Bob and Trev: Resurrection
Path: g2news1.google.com!postnews.google.com!c51g2000cwc.googlegroups.com!not-for-mail
From: Phlamethro...@gmail.com
Newsgroups: rec.games.roguelike.development
Subject: Re: 7DRL: Bob and Trev: Resurrection
Date: 11 Mar 2007 14:27:54 -0700
Organization: http://groups.google.com
Lines: 48
Message-ID: <1173648474.373614.203640@c51g2000cwc.googlegroups.com>
References: <1172021941.913013.186770@v33g2000cwv.googlegroups.com>
<1173551528.903165.198460@8g2000cwh.googlegroups.com>
NNTP-Posting-Host: 91.84.11.161
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1173648480 18667 127.0.0.1 (11 Mar 2007 21:28:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 11 Mar 2007 21:28:00 +0000 (UTC)
In-Reply-To: <1173551528.903165.198460@8g2000cwh.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: c51g2000cwc.googlegroups.com; posting-host=91.84.11.161;
posting-account=bDRC7A0AAACF2inNsTKqE7bM4XnetBGT
Progress update!
On 10 Mar, 18:32, Phlamethro...@gmail.com wrote:
> So currently I'm
> trying to decide whether I should switch to a different LOS technique
> (e.g. a room gains visibility when you enter it, but remains visible
> even if you go elsewhere), or ignore the speed problem and have a go
> at crafting some assembler optimisations once the competition is
> over :)
Luckily, I came to my senses and just wrote a simpler LOS technique.
The game now effectively treats doors (and windows!) as vision
blockers, so you can only see the contents of the room you're in.
Although this code is a lot faster (and only needs updating when you
change room), it does make some of my planned features harder to
implement (e.g. the sunglasses that would reduce your visibility, but
provide protection from being blinded by bright lights).
Following some rewrites and optimisation, the code now runs at an
acceptable speed on a BBC - you can take about 2 or 3 moves per
second. Save files are now a bit smaller too, so it should be possible
to fit the game and a full save file onto a 40-track floppy :)
New features:
* level progression
* unique start and end levels to the dungeon (aka skyscraper)
* rudimentary item and monster spawning
* inventory management; take, drop, and look commands
http://www.phlamethrower.co.uk/misc2/batr2.png
http://www.phlamethrower.co.uk/misc2/batr3.png
Monster AI and combat will be the next thing on the list, after which
the game could probably be classed as, well, a game.
Unfortunately I'll soon be pushing against the memory limit of the
machine - the code is now almost 15KB in size, and runtime checks show
I only have about 1700 bytes left. Luckily there are some tricks
available for me to shrink the code. Modern versions of BASIC have a
CRUNCH command, which can remove about 3KB of wasted space, and there
are some more advanced BASIC compressors available, which can get the
current code down to under 9KB. Plus there will be more space gained
'naturally' as I remove unwanted items from the game data file.
Cheers,
- Jeffrey