Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2345

new projects and releases: text and graphic adventures • Re: The Lords of Midnight : Landscaping

$
0
0
The Lords of Midnight is my all time favourite game from my childhood (I played it on the zx spectrum), so I love the idea of this project.
I think you have the right idea about finding commonalities with the graphics elements.
So instead of calling separate functions for each graphical element, I thought why not just have one "Drawing" procedure, that we call for every graphical element. The procedure can do 5 things, Move/Draw/Plot(Triangle)/Plot(Rectangle)/Change Color, and we build each graphic with those.

I've never coded in this language before, so you can probably do a lot better. I borrowed your magic print statement that made the colours blue. I have no idea how that works. :shock: (And the way you make the trees is genius)

Here's an example of 5 objects (wastes/citadel/keep/mountains/tower) and how to draw them (I kept the graphics simple):
https://bbcmic.ro/#%7B%22v%22%3A1%2C%22 ... %5Cn%22%7D

I tried to integrate this with one of your earlier code versions, but there's memory issues with Mode 1. I reckon switching to Mode 5 (still 4 colours, but a little blockier) would give you more room for actual game code. Here's a rough and ready example of what mode 5 would look like mashing your code together with what I did today:
https://bbcmic.ro/#%7B%22v%22%3A1%2C%22 ... PROC%22%7D

I think that mode change would give you close to an extra 10k to code with, but as I said, this is my first day with this. The graphics would need to be remade slightly for the new mode. Anyway, do keep going with this. I'm fascinated by what's possible. :)

Statistics: Posted by shadow — Sun Jan 21, 2024 11:16 pm



Viewing all articles
Browse latest Browse all 2345

Trending Articles