Any game programmers?

virtvic

The Cabaret King
Feedback
21 (96%)
Credits
2,012CR
Would anyone on here be able to hack an existing game or actually create a new one to play on arcade hardware?

Clean Sweep (the vectrex game) would be awesome as a raster game. I had the silly idea to use a Henry Hoover as your character! It gets fatter as you suck up the cash from the bank.
 
Feedback
1 (100%)
Credits
27CR
Hmmm I suppose the easiest way to do it would be to code it in C++ but that would limit you to a PC / Mame machine setup. If running it on real hardware is the only way to go then that opens up a whole can of worms with having to code it in assembly language, not many assembly coders out there anymore. There are guys coding Genesis, Snes and even Neo Geo games but I have never heard on anyone making unique arcade PCB's...
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,016CR
virtvic said:
I had the silly idea to use a Henry Hoover as your character!

neat, lets add that to the list of companies that might want to sue you ...
smiley36.gif


easiest option is to to find a donor board that has a 6809 and an AY sound chip - then you just have to record the IO side of things and leave the game logic alone.

failing that I did convert one game by having a disassembler that kicked out code for a different CPU. You could always do the same and have it kick out C code instead.
 

maskeddev

Active member
Feedback
5 (100%)
Credits
88CR
kidchameleon said:
Hmmm I suppose the easiest way to do it would be to code it in C++ but that would limit you to a PC / Mame machine setup. If running it on real hardware is the only way to go then that opens up a whole can of worms with having to code it in assembly language, not many assembly coders out there anymore. There are guys coding Genesis, Snes and even Neo Geo games but I have never heard on anyone making unique arcade PCB's...

Use C# and you can run it anywhere with Core
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
It's easy enough in C/C++ to do direct memory access, so you could just start a library of basic functions to handle low level stuff. You would just need to understand the hardware for which the Mame source comes in handy.
 

virtvic

The Cabaret King
Feedback
21 (96%)
Credits
2,012CR
All the Vectrex games are in the public domain now (if I remember correctly) and a small red vaccuum cleaner graphic with a cheeky face is pretty generic.

SUCK A DUCK, LAWYERS!
smiley36.gif
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,016CR
OK, static disassembler to C (old style, none of this PLUS or SHARP nonsense) or Z80 mnemonics & macros (although endianess is different, so adds a complication), move the sound code to run on a separate processor and stick the resulting binary into Phils multi scramble setup.

p.s. I'm crud at graphics, so if I did it it will be alphanumeric (like my games on the commodore PET), oh, and I already have enough things on my 'to do' list to keep me occupied for several years.
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
Personally, if I were to attemp to code a game for old arcade hardware, I'd be looking to assembly in order to squeeze as much as possible out of the limited hardware.
 

yorkshire_spam

Active member
vacBacker
Credits
765CR
big10p said:
Personally, if I were to attemp to code a game for old arcade hardware, I'd be looking to assembly in order to squeeze as much as possible out of the limited hardware.

Based on previous experience (developing for set-top boxes, Nintendo GBA etc....) I'd go for a mixture of assembler and C.

Write the basic code in C, then use techniques like unroll-loops and bespoke assembler to optimise any performance bottlenecks.

I'd also choose an arcade PCB that had "motion objects" (Atari term) aka Sprites in some sort of hardware support to make life a bit easier (Crystal Castles?)
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
yorkshire_spam said:
big10p said:
Personally, if I were to attemp to code a game for old arcade hardware, I'd be looking to assembly in order to squeeze as much as possible out of the limited hardware.

Based on previous experience (developing for set-top boxes, Nintendo GBA etc....) I'd go for a mixture of assembler and C.

Write the basic code in C, then use techniques like unroll-loops and bespoke assembler to optimise any performance bottlenecks.

I'd also choose an arcade PCB that had "motion objects" (Atari term) aka Sprites in some sort of hardware support to make life a bit easier (Crystal Castles?)

I agree, a mixture of C & asm would be ideal, but I was also considering the limited amount of available memory. I was thinking the compiled C code probably wouldn't be as optimized as hand coded asm, but I guess that would depend on just how good the C compiler is.
 

yorkshire_spam

Active member
vacBacker
Credits
765CR
You'd probably want to build your own libs for text display, sprite display and IO based on the hardware, as much optimised asm as possible. Avoid problematic data types (strings, floats etc.)
Pin down the compiler and linker parameters to really strip the binary sizes back as far as you can.

Ultimately C would provide something a bit more readable than pure ASM.

Once you strip out unnecessary libs/refs etc from C you can compile pretty compact binaries.
 

yorkshire_spam

Active member
vacBacker
Credits
765CR
big10p said:
Yeah, I do love C and never quite found the will to move on to C++. I also hate working with floats!
smiley36.gif

Horses for courses, for any kind of "limited"/embedded/old-school platform C++ is just a load of bloat you don't need. For large scale "enterprise" applications you really need an OO language (be it C++/Java/C#)

I did a LOAD of ARM assembler when I was younger, I still find it fun. I find CISC/8 bit assembler a ball-ache by comparison. But needs must when you want to squeeze performance out of a platform.

These days a decent C compiler will produce binaries 99% as good as what I can do in pure asm, except for the odd situation where the usage tricks it into the "wrong" optimisation.
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
Yeah, defo horses for courses. A modern OO language is a necessity for large scale apps, where hardware resources aren't really a concern, but would be overkill and too bloaty for working with old arcade hardware. I'm oldskool and kinda miss the days where we had to squeeze every drop out of the CPU, and make every byte count.
smiley1.gif
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
I disagree, C++ is not a load of bloat, it can be every bit as compact as straight C, it all depends on how you use it and what libs/dev environment you use.
Pure hand coded assembler will always give the fastest/tightest code though but it depends on the boards used as to how crucial this might be. I wrote my first game in 6502 and 3.5k on a Vic-20, it's amazing how much you can fit in such a small amount of ram.
This being said, I believe all the Atari system 1 games were written in C due to the way pretty much all the code uses the stack, linking and unlinking parameters etc.
 

big10p

Coins detected in pocket!
vacBacker
Feedback
13 (100%)
Credits
6,093CR
By 'bloat', I was simply referring to the increased memory requirement inherent in OO languages like C++, needed behind-the-scenes to manage complex data structures/objects etc.
big10p2019-01-04 10:53:01
 

GadgetFreak

Active member
vacBacker
Feedback
7 (100%)
Credits
963CR
True, but you can easily avoid that by how you use the C++, some aspects of it are very useful and don't result in a big memory overhead. The biggest advantage a high level language would give is that once a core gfx/system library is developed the game would be faster to write.
 
Top