Any game programmers?

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
That's for sure!
smiley1.gif
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,332CR
I'm not a games programmer, just thinking aloud a bit...

We had a game that was probably done in assembler and we're talking about recreating it in C++ or C#.

So, applying the same 'modernisation' - where would people's interest lie in the hardware for making such a game?

1. Code and run it on a Raspberry PI or a PC in a cabinet?
2. Actually make a homebrew arcade PCB - use and FPGA to represent raster/sprite hardware accurately and fit a processor(s)-of-choice (be it old-school, modern, or even virtual in the FPGA).
3. Make it run on an existing arcade PCB.

Trying to gauge where the 'magic'/'soul'/interest etc of the arcade lies for people - not being critical in any way.
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
For me the "Magic" in arcade games is the original hardware and it's quirks. MAME has it's uses but lots of the games are not 100% accurate in how they display, though a 15Khz monitor does improve this some. Atari System 1 especially suffers with incorrect shading.
I think this could easily be done on an original board with adequate hardware, remember the WC90 rework that Macro did!
Of course it would also be good if the board chosen was already correctly implemented in FPGA as this would give more people the chance of having it.
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
Yep, if I were going to attempt something like this (which I never have), I'd only be interested in working with original hardware (which FPGA can be regarded as, in a way). That's where the challenge/satisfaction/magic would be for me. It must be tremedously satisfying coding a game that runs on old arcade hardware!
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,332CR
It's interesting the FPGA gets mentioned - so there's value in using modern hardware if it attempts to clone down to the gate level?..

But if a PI emulation behaved identical, it wouldn't be considered quite the same in terms of appeal?

Kinda of this mindset myself, to be honest, just always wondering why
smiley5.gif
John Bennett2019-01-04 13:37:52
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
I don't actually have any experience of working with FPGA, but I imagine it would provide a useful devkit. The finished game would be for the original hardware, but (as GadgetFreak says) people who don't have the hardware could play via an FPGA solution.
big10p2019-01-04 13:50:19
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
Can I just say, this is the first time I have noticed I have finally become a "Senior Member" or is there not enough time
smiley2.gif


Software emulation is hard to get absolutely perfect, timing is one thing, colours are another, and finally the custom gfx chips which often have kludged fixes as their operation is not fully understood.
With FPGA's the timing and colours are usually quite easy to get right, though the GFX customs can still pose a problem.

Of course it's also possible to get poor FPGA implementations where shortcuts have been taken, for me I still want FPGA versions that duplicate the same logic as the original board.
 

lix

Active member
vacBacker
Feedback
1 (100%)
Credits
546CR
Here's my view, having been a commercial games programmer since the 90's and currently an embedded electronics engineer.

The first arcade hardware I coded for was the Namco Galaxians board, great to learn, an experience getting something done within the limitations, but I always ended up wanting more. Plus getting your game out there requires everyone to have the hardware, and also the eproms or burning capability. And that's not really feasible.

Next platform I coded for was the NES, once again great to fiddle about with, and the hardware is out there in shovels compared to Galaxians, but once again, harvesting carts and burning roms, took the fun out of it a little.

Then I designed my own Z80 based hardware, 256 colour 320x240 bitmap framebuffer and an AY3 soundchip, good for messing about a bit but keeping the screen updated with stuff moving on a 4Mhz Z80 was just asking for too much.

Raspberry PI, well, I've tried but I can't get into it. I just prefer running baremetal code, and even having it run an emulator with some good specced hardware just seems to be overkill, with additional frustrations of other peoples installs not being quite the same as regards inputs, speed, video frame size etc. I can imagine it being like trying to code a game for iOS and Android is now, a thousand different permutations to cater for.

Basically there's 1001 ways to skin a cat in this situation, with the majority requiring the same effort, so which one do you pick?

Personally I'm heading down the FPGA route, I've been learning it on occasion over the last few months. Have a 6502 core running with a tile layer, and also have CPS1 graphics rom decoding going on at the moment. The logic is a bit messy as I'm still learning, but if I can clean it up then I'll release it.

I'm also looking into designing a JAMMA board with a good spec FPGA on it, for as cheap as is absolutely possible. I'm thinking maybe a MAX10 which has built in flash, clock, and analog inputs, with a voltage regulator, resistor video dac and a stereo audio dac chip and minimal else other than the inputs from the joystick & buttons. I'm certain I could get it sub £100, but preferably a fair bit less. Just doing a bit of routing and placement on a PCB at the moment. That too I could release with a bit of tidying.

Here was a speed test of the 6502 core running at 20mhz, updating a 32x32 tile map, basically scrolling it by 8 pixels horizontally just by writing to the tile ram. Takes about a third of a 60hz frame in raster time with a simple C coded loop. The blue and red dots are memory access debug indication, with red dots being byte writes to tile memory, blue being reads from internal ram. Code was generated in SDCC C compiler and is fairly good, but asm will always be a bit better for this particular kind of test.

Steve.

IMG_5973sm.jpg


And this is just a test of reading out the first bit of graphics rom from SF2. I've implemented a blitter and framebuffer but just need to connect it all together now!

IMG_6022sm.jpg
 

pobtastic

Moderator
Staff member
vacBacker
Feedback
2 (100%)
Credits
477CR
A good 15 years ago or so, I chatted a lot with Ivan Mackintosh about Neo Geo development. We sent a few mails back and forth with ideas, and thoughts about how certain things could be achieved. It tailed off when life got in the way unfortunately
smiley6.gif


He got a lot further than I did, and actually released some dev tools and a few Neo Geo pocket games! https://www.youtube.com/watch?v=IV-xrkEpJxI I'd wanted to make Neo Jet Set Willy and Neo Jet Pac, but there wasn't enough information available at the time and I whilst I got something together in MAME for JSW, it wasn't enough to inspire me to continue...

I see now though, that there's quite a lot of information available for Neo Geo development! And some of it is pretty damn cool!!! https://github.com/dciabrin/ngdevkit
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,332CR
Lix - I'm feeling rather outdone
smiley16.gif
- wish I had less other things to do.

To build upon the basic 15kHz video stuff I did with the Namco custom experiment, I've started on a generic sprite/background hardware design for an FPGA (nicking of various concepts from schematics) but the key issue I have is the external hardware...

Say you pick a system to resemble typical 80's sprite hardware...
Do you then make it interface to external graphics ROMs, for each layer?
Do you then give it external SRAM for each layer?
Do you use modern parts or go for the old obsolete stuff and do 5-3.3V interfacing?
Lots of faffing around anyway, rather than a all-in-one FPGA design (as it won't fit).

Sorry, I'm turning it into a hardware thread...
John Bennett2019-01-04 15:27:32
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
Sorry but you just tweaked one of my pet hates!
.NET is the worst kind of bloat ware like most Microsoft stuff!
At the risk of generating lots of hate, "Real" programmers don't need it, want it or use it!
 

maskeddev

Active member
Feedback
5 (100%)
Credits
88CR
.NET Core fits on a Pi so not a great deal of bloat! It's also highly performant and portable so up to you to weigh up your priorities for your projects.

Also LOL at the general hate towards MS like its a previous decade
smiley2.gif

maskeddev2019-01-04 16:20:52
 

lix

Active member
vacBacker
Feedback
1 (100%)
Credits
546CR
John Bennett said:
Do you then make it interface to external graphics ROMs, for each layer?
Do you then give it external SRAM for each layer?
Do you use modern parts or go for the old obsolete stuff and do 5-3.3V interfacing?

Memory is a bit of an issue, so an external SRAM chip would be handy, and probably an SD card interface to pull files from and use the SRAM as a shared program and video memory.

I worked on the Gameboy Advance for a few years and that had pretty good hardware capabilities, quite enjoyed working on it, so I'de like to come up with something similar.

For voltage level conversion, I'de hope to get away with a design that has everything it needs locked to 3.3v, so all peripheral chips to be low voltage, and the only inputs to be to the joystick, buttons, coin slot, and service / test switches, which are always pull down to ground (or at least they are according to JAMMA standards). I can imagine connecting encoders and pots might cause issues with that though, so maybe some specific input buffers.

As for C#:

I use a lot of C# at work, it has its benefits, and I like slapping code together that functions easily, but I just don't feel like coding a game in it. Hard to describe, but I like some rigidity with a fixed hardware specification and C + asm, programming in C# for multiple platforms is like wearing clown trousers to work. Does the job, just looks very baggy.

Plus I personally haven't forgiven MS after the many many man hours I've lost to Windows 95, ME, and Visual Source 'Safe' corrupted databases and backups
smiley19.gif
I'll hold that hate for years to come! I'll admit the dev tools are better now though.

lix2019-01-04 16:34:33
 

Adrian Purser

Moderator
Staff member
vacBacker
Feedback
2 (100%)
Credits
213CR
FPGAs are getting a lot of interest these days, especially with all of the work going into open source tools. I've always used Altera at work and at home but I'm thinking of looking at the Lattice stuff as well.

I was recently shown this website that looks interesting, especially the verilog bits - https://8bitworkshop.com/
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
adrian purser said:
FPGAs are getting a lot of interest these days, especially with all of the work going into open source tools. I've always used Altera at work and at home but I'm thinking of looking at the Lattice stuff as well.

I was recently shown this website that looks interesting, especially the verilog bits - https://8bitworkshop.com/

Cor, that looks pretty cool!
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
maskeddev said:
.NET Core fits on a Pi so not a great deal of bloat! It's also highly performant and portable so up to you to weigh up your priorities for your projects.
When I were young we used to dream of 512MB
smiley2.gif

Portability will always cause speed reduction and size increases, but I agree it depends on your project.

Also LOL at the general hate towards MS like its a previous decade 
smiley2.gif
True, but ask any coder that has worked with MS dev stuff how many times they have lost code due to crashes and bugs, let alone Windows updates that break existing code for no good reason.
As a commercial developer I often submitted bug reports to MS, most were simply ignored while some were acknowledged but not corrected for months.
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,016CR
Been thinking about this, but have a question for VirtVic

drawing the maze / rubbish dots / scores / title screen etc is easy enough (in any language)

All you really need from original code is the routine for enemy movement AI (and reference to the player movement - so you know how fast it can go, how many dots it can eat to become full / how long it takes to empty) and the music routines for the tunes etc.

using AI / speed from original should keep playability the same.

The question ... does it only have the single screen layout, or are there more ? (oh, and are there any bonus things that pop up)
 

virtvic

The Cabaret King
Feedback
21 (96%)
Credits
2,012CR
As far as I know - the maze remains the same. When you go into the corners, they close and allow you to eat the bad guys for a limited amount of time.

When you are 'full' you have to go thru the centre spot to empty yourself. When you are energised hunting the baddies, you can carry on eating the dots.
 
Top