what do you do first? For me, I plan out all the moves and actions and stuff, and then I initialize the variables. Then I type out my methods and functions. After that, I do my int main () (C++) / public static void main (String[] args) (Java) / def main() (Python). And then I do debugging. Mostly I don't run in to errors. Although just about my every game is still suffering from runtime errors that I can't figure out how to get rid of.
Last edited by maxskywalker (2011-11-06 10:24:03)
Offline
kimmy123 wrote:
The menu screen, if I make one.
Offline
In real coding.
_____
1. Variables
2. Planning
3. More Variables
4. Functions
5. Probably more variables
6. More functions
7. Some Code
8. Probably MORE variables
9. Even more functions
10. Add more code
11. More variables
12. Debug
13. Find and kill some errors in code
14. Go back to 2.
Offline
veggieman001 wrote:
kimmy123 wrote:
The menu screen, if I make one.
I never make a menu screen.
Offline
If I use scratch, I try to start out with the mechanics that function in the game first, leaving the pretty artwork last.
I don't use actual programming just yet.
Offline
Question: how do you make a game using C++? I'm using a mac (which may void any/all advice I get
)
Offline
MoreGamesNow wrote:
Question: how do you make a game using C++? I'm using a mac (which may void any/all advice I get
)
Look up some tutorials.
Offline
Sprites.
Offline
I usually do everything in a different order every time.


Offline
MoreGamesNow wrote:
Question: how do you make a game using C++? I'm using a mac (which may void any/all advice I get :/ )
Well what do you mean? Xcode is just a compiler/IDE for C++ (and C, C#, and Objective-C). Any advice you get is the same with a Mac. Anyway, what do you mean? If you include <string> then you can say cin >> string_variable to set that variable to user input. You can include <cstdlib> for random numbers and
include <cstdlib>
include <ctime>
using namespace std;
int main ()
{
srand((unsigned)time(0));
int i = rand()%max_number
float f = rand()%max_number // Yeah, doubles work, too. Just keeping file size down
}That would get two random numbers. It's not very good pseudorandom, but it's the best I can get.
If you mean graphics, look up some OpenGL tutorials or GLUT or Ogre3D or whatever works with Mac, and download what the tutorial tells you to.
I'm working on my first C++ game right now. It's my normal attack(normal attack)/magic(strong attack)/shield(halve incoming damage) Arena game. More of a test. I lack inspiration. For now . . .
Last edited by maxskywalker (2011-11-06 14:56:42)
Offline
ProgrammingPro01 wrote:
I usually do everything in a different order every time.
Offline
Didn't expect a thread this popular. The only way this could get better is if Veggie, ProgrammingFreak, and some other famous Scratcher programmer posted.
[s]Veggie[/s]
PF
Harakou
Last edited by maxskywalker (2011-11-06 15:01:29)
Offline
maxskywalker wrote:
If you mean graphics, look up some OpenGL tutorials or GLUT or Ogre3D or whatever works with Mac, and download what the tutorial tells you to.
I'm working on my first C++ game right now. It's my normal attack(normal attack)/magic(strong attack)/shield(halve incoming damage) Arena game. More of a test. I lack inspiration. For now . . .
Yep, I meant graphics. I'll look into those. Thanks.
Offline
MoreGamesNow wrote:
maxskywalker wrote:
If you mean graphics, look up some OpenGL tutorials or GLUT or Ogre3D or whatever works with Mac, and download what the tutorial tells you to.
I'm working on my first C++ game right now. It's my normal attack(normal attack)/magic(strong attack)/shield(halve incoming damage) Arena game. More of a test. I lack inspiration. For now . . .Yep, I meant graphics. I'll look into those. Thanks.
I most highly suggest Ogre3D, but I don't know if it works on Mac. Well, Horde3D mostly, but I can't figure out how to install it. I myself haven't figured out how to install any of the others, but I'm sure it's just my own ignorance.
Offline
in scratch, i progress
so i start with a menu
then a basic engine with some sprites
then more sprites
then a slightly more advanced engine
then i check for errors
fix errors
done
Offline
You guys are all backwards, I make the menu last
Offline
I make the main scripts for the controls and stuff and then make the menu and intro.
Offline
First I imagine what I want the game to be. Then I make variables. Then I make the sprites. Then I program basic stuff. Then I program sensing. Then I program everything else.
Then I bug fix. I'm very good at bug fixing.
Offline
First I draw a mockup what I want my game to look like with good ol' pen and paper. Then I start writing out the code on paper, to give me an rough idea on how things should be coded: if the coding is feasible, then I go on to the actual coding; if not then I scrap the idea.
If I think the game is feasible, then I go onto designing a rough outline of the costumes need for the main sprites and coding the actual game. When I'm satisfied with the coding by playing through the game, I go onto finishing up the costumes.

Offline
MoreGamesNow wrote:
You guys are all backwards, I make the menu last
![]()
bannanaman114 wrote:
in scratch, i progress
so i start with a menu
then a basic engine with some sprites
then more sprites
then a slightly more advanced engine
then i check for errors
fix errors
You fix errors, then check for errors, before coding and drawing?
Offline