The Sentinel (1986)

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

A game I have admired for some time is "The Sentinel" - a 3D strategy game from 1986.


The Sentinel

I think it can be done on the '2600, and I'm already exploring "what if?" to see how things might work. So far I've been unable to find out who owns the copyright; I'd like to do that.

Here's a concept-pic of what the screen might look like....

Original (BBC)
sentinel2.png

Converted (40x66 - '2600)
sentinel1.png

As you probably guessed from the above, my bitmap systems (from BD) have a resolution of 40 across x 66 down x 8 colours).  This game lends itself well to the limited colours. The resolution is marginal... but gut feeling is it will work.

Andrew Davie

Maybe using the 10x sprites/line format of the MovieCart might be the way to go.
Kind of a hybrid iCC/movieCart display. 80 pixels across x 192 lines deep, with each line displaying 'trixels' giving 8 colours per pixel. Mockup...


Thomas Jentzsch

#2
Uih, that is one of my old favorites too. I am really looking forward to the first coded mockups.

Colors should be OK, but I am worried about the low resolution. Does a Spectrum version in B&W exist?

JetSetIlly

Quote from: Thomas Jentzsch on 22 Jun 2024, 01:29 AMUih, that is one of my old favorites too. I am really looking forward to the first coded mockups.

Colors should be OK, but I am worried about the low resolution. Does a Spectrum version in B&W exist?
Yes
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Thomas Jentzsch

That might work better here.

Andrew Davie

Quote from: JetSetIlly on 22 Jun 2024, 01:50 AMYes

Technically, not B&W.  Greyscale!  Might as well go for colour if I need/use more than 2 colours or intensities. I think to start with I'll go with standard iCC and see how that looks.

Andrew Davie

I've had a look at how/if the Movie Cart format can be used for this game. To refresh: MovieCart displays a 10-sprite-wide bitmap where each sprite has a configurable colour - so, effectively 10 colour changes per scanline. The sprites are interlaced over successive frames - that is, 5 sprites per frame. It's good enough to trick the eye. The pixel colours in each sprite can be either foreground colour, or background colour. The algorithm is pretty cool and do-able on the '2600 but not of course in real-time.

To produce this video, I just ran a YouTube video of "The Sentinel" gameplay through the TouchDesigner encoder for MovieCart, and then played the resulting ".mvc" file under Gopher2600 - and screen-recorded that. And, of course, uploaded the result to YouTube. There's a lot of format changes in there, but it does give an idea of what a MovieCart-like display would do with the graphics of The Sentinel game.

My verdict - it's OK but not great. Will look at other display options!


Andrew Davie

#7
I've been trying to get a centered 6-sprite routine with a simultaneous asymmetrical playfield in the background. The menu/title screen has this but with the sprites shifted to the right. I can't quite get there with the centered one - but it might (just might) be possible if I switch to CDFJ+

The thinking is:  render a "high resolution" bit in the center 48x128 pixel area, and a "low resolution" for the rest of the screen. It would certainly be interesting/unique. I wonder how it would look. I did this mockup to see.  It's really quite subtle (the highres area in the middle). Might be worth pursuing, but I gotta find out how CDFJ+ works. Has beaten me twice so far.

The mockup image is basically a 32 x 192 playfield (8 colour), with a 48x128 pixel wide sprite block overlaid in the middle.



Andrew Davie

#8
Here's a GIF animation showing the "high-res" 48x128 section on/off
It works pretty well, actually. Now I need to get see if it's at all possible.
(click on the image to see it animate)


Andrew Davie

Regardless of the display technology used, I'm going to need to be able to do some 3D rendering. My usual practise is to start from scratch and write everything myself. I haven't done a lot of 3D stuff - some decent OpenGL programming about 20 years ago. I did some OpenGL in a Uni assignment - the task was to create a pool/billiards table.  So, me being me, I did the table, put some balls on it, put some lighting up top and animated the balls on the table. With shadows from the lights, and all. It looked great but a little unsatisfying. I decided to have the lights swinging back and forth - so there were balls and shadows going everwhere. It was awesome. Anyway, my marked assignment came back - 9.5/10. Deduction because "pool hall lights don't swing like that". Go figure!

So, point being OpenGL is very nice and relatively easy to use. I got to thinking - why create an average 3D engine from scratch?  Surely many many people over the years have tackled this - and maybe an OpenGL-like implementation already exists.

So, I found this... 

TinyGL is Fabrice Bellard's implementation of a subset of OpenGL 1.x. If you want something like PortableGL but don't want to write shaders, just want old style glBegin/glEnd/glVertex etc. this is the closest I know of. Also I shamelessly copied his clipping code because I'm not 1/10th the programmer Bellard was even as an undergrad and I knew it would "just work".

TinyGL Updated: An updated and cleaned up version of TinyGL that adds several fixes and features, including performance tuning and limited multithreading.


These both look more than capable, but it looks like "TinyGL Updated" is the way to go. I need something that's preferably written in C, but failing that in C++. It needs to be efficient but not so much so that it runs in real-time on the '2600.  Of course that would be nice, but I note that in some implementations of The Sentinel the screen update is very slow and that was OK/accepted at the time. I'd be happy with a 5 second update time.

On the plus side, the rendering window is very tiny - PF 40 x 192, and sprites 48 x 128. So that would speed up things incredibly.

How much memory is required for these implementations - a quick scan of the documentation suggests about 40 KiB. And of course there's going to be RAM requirements which may be a big killer. We shall see.

For now I think I might have to explore the hardware that is used in the new Mattress Monkeys game. I have read briefly what it's using and it sounds like it might have enough grunt to support the 3D engine. I've always liked being on the "bleeding edge" and trying out new technologies early on; this sounds like the design from bAtari that was mentioned when I was on the ZPH Show a year or so back. I said back then "this would allow 3D engines" and the irony being I might be the one developing one on it :). Anyway from what I can tell, 2 CPUs at 168MHz - one servicing the 6507 and the other free to do the 3D. Precisely as I thought. I'm gonna have to get up to speed on that, too, then.

So, plan of attack - things to do.

1) Learn StrongARM programming for the new board.
2) Get TinyGL Updated installed/building on my PC (will move to 2600 later)
3) Determine if a centered sprite 48x128 on top of a 32 pixel asymmetrical PF background is do-able with new hardware.

These are more or less complex tasks - all new things for me to learn - and will take some time.
The end of it all, though, would be a functional (and reusable) OpenGL-type 3D engine on the '2600 which could lead to other games, so it's definitely worth the effort.

Andrew Davie

A thought: if the StrongArm scheme offers bus stuffing, doesn't that lead towards a plausible bitmap mode such as SpiceWare was testing out some time ago? There was a car picture which looked pretty cool, albeit flickery.  The chronocolour doesn't quite work with venetian sprites, alas. But it's a lovely wide, detailed bitmap perhaps suitable for a 2-colour display. I'm gonna have to pick some brains and ask for some source code ;)


Andrew Davie

#11
This looks really promising. A display technology invented by ZackAttack for his raycasting demo. A sort of venetian-blind display. See this forum post (2nd video) for this in action. Amazing.

I did a mockup of a Sentinel Screen to see how it would look, using a similar display method. The image really looks pretty nice - and no flicker whatsoever!  And, as I undertand it, no t limited to 8 colours. Definitely worth exploring!


Andrew Davie

#12
A bit brighter to give a better impression of what you see with phosphor persistence...


Andrew Davie

#13
The last of the mockups of ZackAttack's display system with The Sentinel graphics.
This one uses the full NTSC '2600 palette.


Andrew Davie

#14
A comparison (rough). These are roughly correct in terms of onscreen-size. ZackAttack's is full-screen (160 pix). MovieCart is 50% width (80 pix).  The hybrid is 80% width (128 pix).


ZackAttack


MovieCart
This image would venetian-blind on/off groups of 8 pixels horizontally, and off/on on alternate lines.


Hybrid (6-sprite + asymmetrical PF)
This is an 8-colour image, but optimal colours. The actual hybrid mode would use iCC and does not give absolute choice of colours - so this display would be somewhat worse than shown here (colour-wise). Also, shimmer @20Hz.

Greyscale Hybrid
This is a reasonably accurate representation of an 8-colour greyscale iCC version of the above.


I'm leaning towards the Hybrid, if it's possible.