PCEngineFans.com - The PC Engine and TurboGrafx-16 Community Forum

Non-NEC Console Related Discussion => Console Chat => Topic started by: VenomMacbeth on March 08, 2013, 07:59:15 AM

Title: Getting into homebrew...
Post by: VenomMacbeth on March 08, 2013, 07:59:15 AM
Hey, all.  Well, I've recently made the decision that I'm going to focus on learning how to develop homebrew games for old consoles.  However, I know basically nothing of computer programming.  I know there are some members on here that do this, so I thought this would be a good place to ask where I should start.  Any suggestions at all would be greatly appreciated!
Title: Re: Getting into homebrew...
Post by: Arkhan on March 08, 2013, 10:01:58 AM
You need to learn C.

http://www.cprogramming.com/tutorial.html

Without it, you won't get very far.   It's the most widely used language for game programming, for the most part.

Ignore anyone who says you need to start with Assembly.  If you are new to programming in general, jumping straight in with assembly is a great way to completely discourage yourself from trying ever.  Worry about that once you understand C programming.

Title: Re: Getting into homebrew...
Post by: VenomMacbeth on March 08, 2013, 04:30:41 PM
Thanks, Arkhan!  So after I learn C, should I go ahead and learn assembly?  And what about basic?
Title: Re: Getting into homebrew...
Post by: Arkhan on March 08, 2013, 05:24:36 PM
Well, depending on the console, you could never learn assembly (Sega Genesis, for example).

assembly is what you need to really get performance out of most 8-bit machines.


as for BASIC, it never hurts to learn and experiment with it on a machine.   So many old computers have BASIC.

Akalabeth and Ultima 1 were written in BASIC, so they aren't just toy languages!

If you are into Atari 2600, check out Batari BASIC
Title: Re: Getting into homebrew...
Post by: BlueBMW on March 09, 2013, 12:40:06 AM
How translatable is c++ back to c?
Title: Re: Getting into homebrew...
Post by: Arkhan on March 09, 2013, 04:28:34 AM
It's not, really.

C++ has a standard library that isn't in C.  You can change stuff over, but it's effort.

Also, C++ introduces classes.   C does not have classes.   You could try fudging them with structs and function pointers or something, but again, totally don't recommend that.

If you know C++, you can pick up on C in about a weekend, since you've accidentally learned most of it via C++.

and if you know C, you can pick up on C++ in about a week.

Title: Re: Getting into homebrew...
Post by: VenomMacbeth on March 09, 2013, 07:34:54 AM
So I have a question...one of my goals is to be able to program games with simulated sprite scaling, like the console ports of After Burner, Out Run, etc.  How feasible is this?  I've yet to see it used in homebrew games, though I could be mistaken.
Title: Re: Getting into homebrew...
Post by: BlueBMW on March 09, 2013, 07:58:17 AM
It's not, really.

C++ has a standard library that isn't in C.  You can change stuff over, but it's effort.

Also, C++ introduces classes.   C does not have classes.   You could try fudging them with structs and function pointers or something, but again, totally don't recommend that.

If you know C++, you can pick up on C in about a weekend, since you've accidentally learned most of it via C++.

and if you know C, you can pick up on C++ in about a week.

I've noticed a lot of references to C commands when I look up C++ commands.  I suspected they overlapped some but werent interchangeable on a lot of things.  Interesting... :twisted:
Title: Re: Getting into homebrew...
Post by: Bernie on March 09, 2013, 09:58:31 AM
I will leave this stuff to the smarter ones.....