CodeWalrus

Multimedia => Gaming => Topic started by: Pieman7373 on May 31, 2018, 06:05:53 AM

Title: Sega Genesis 16 bit C programming
Post by: Pieman7373 on May 31, 2018, 06:05:53 AM
I recently decided to get into the retro-gaming scene, and i wanted to start programming for the sega Genesis. I watched a video to set up the right dev environment, but i understand almost none of the examples included with it, which sucks... Do any of you guys have experience with this?
Title: Re: Sega Genesis 16 bit C programming
Post by: gameblabla on May 31, 2018, 06:23:31 AM
I'm surprised you don't understand any of the examples, they should be simple, for the most part anyway...
You might want to look at the Sega Genesis specs before trying to understand the examples though.
For example, it has 4 palettes of 16 colors out of 512 pre-defined colors and there's only a background and a foreground = 2 palettes.
Then there are 2 other palettes palettes for sprites too. (you can also use the background's palettes for sprites but that's your call)

There's also BasiEgaxorz, which is a BASIC compiler for the Genesis. If you still don't understand how SGDK work,
then you can still give that one a try.

I have to say, C support on the Genesis is better supported than it is on the Super Nintendo.
It's even better on the Sega 32X where it's actually decent.
Title: Re: Sega Genesis 16 bit C programming
Post by: Pieman7373 on May 31, 2018, 06:40:49 AM
Well, I'm pretty much a novice at C, so that might be why it makes barely any sense  ;)
Thank you for the advice though, I will have to look into those things
Title: Re: Sega Genesis 16 bit C programming
Post by: 123outerme on May 31, 2018, 07:23:43 PM
Quote from: Pieman7373 on May 31, 2018, 06:40:49 AM
Well, I'm pretty much a novice at C, so that might be why it makes barely any sense  ;)
Thank you for the advice though, I will have to look into those things
If you're a novice, I would recommend doing computer projects until you grasp the basics, then jumping into other hardware. Once you understand C and how it works with memory, you can apply that to the memory structure of the Genesis. As well, you can ask anyone on the forum for help, including me. I'd be happy to lend a hand.
Title: Re: Sega Genesis 16 bit C programming
Post by: Dream of Omnimaga on May 31, 2018, 07:41:46 PM
It depends. There's also BEX (BasiEgaXorz), which is similar to BASIC languages, if you're more into that kind of thing. I don't remember if it supports Deflatemask songs, however...