Car Drawing and Conversion

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

Here's a video showing random plonking down of cars on the 6x6 grid.
The car matricies are generated by the tool I wrote yesterday, so all of this is pretty automatic.


Andrew Davie

#1
I've reworked the kernel, in anticipation of putting a matrix of sprites (for score, etc) on the far right of screen. It should be do-able.  To free extra cycles in the kernel, I changed the draw from using PF colours for the cars, to using BG colour(s).  The PF pixels are now inverted (what was on is now off, and what was off is now on). And the PF is always black. So we see the coloured BG behind the off pixels, which were previously the on pixels. So the total result of all this is that it looks exactly the same as the prior kernel. Only now the colour comes from background, not playfield.

Why on earth would you do this?  Well, because it means that if you want sprites as well as playfield, you don't actually need to write the sprite colour registers -- we just use the same on/off off/on pixel swapping as for the playfield, and now we see BG where we want visible pixels in the sprite matrix.  That matrix is the next step - reworking the kernel so we have a 6-sprite routine on RHS of the screen. I know it's possible because Zack did it in the kernels he did for Elite/Sentinel some time back.  Different bank-switch scheme but I'm pretty sure I can wing it.

I made a few changes to the car graphics, and in this short video I have random cars coming and going on the grid. The random car draw is basically just to provide eye candy, but also shows that the car drawing is dynamic.  For the next day or two I'll be going through the code and removing all the stuff that's no longer used (I used Sokoban code as the starting point for this, and it has all sorts of not-wanted stuff).


Andrew Davie

#2
This variant is an abandoned "what-if". I am sticking with iCC3.

OK, iCC actually has 3 variants; iCC1, iCC2, and iCC3.

Up to now I've been using iCC3 (which is just simply called iCC).  That is where trixels are 3 scanlines deep. As you may have figured, iCC1 is where trixels are 1 scanline deep. This effectively triples the vertical resolution, at the cost of 3x the ROM cost for character (shape) data. I've redrawn most of the cars (you see it mostly in the single-scanline black highlights), but some of the not-so-nice cars I haven't bothered redrawing - so you get a good indication of iCC3 (=iCC) vs iCC1 by comparing them when on the same screenshot.

I first developed iCC1 and 2 in the Elite/Sentinel code I was working on a while back. This is a re-implementation. I'm not entirely sure I'll keep it, but it was interesting to see how I could "improve" the visuals of the cars.  It does tend to make the shimmer a little more noticeable, I think. Not sure.





Andrew Davie

Seems like I had a bug in the iCC palette generation, and I was really only generating a 4-colour playfield (instead of 8). I was wondering why I was seeing basically the same colours all the time. Anyway, now fixed and it's a bit more colourful.


Andrew Davie


Bomberman94

Looks much better & more varied now - it's getting closer to a ,,real game"!

Andrew Davie

Quote from: Bomberman94 on 26 Aug 2025, 02:11 AMLooks much better & more varied now - it's getting closer to a ,,real game"!

Not far off, now. It *can* be really colourful - I just need to be a bit more clever with colour choices. For example...