This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-06 10:22:55

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

When you program a game...

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

 

#2 2011-11-06 10:25:04

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: When you program a game...

The menu screen, if I make one.


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#3 2011-11-06 10:36:00

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When you program a game...

kimmy123 wrote:

The menu screen, if I make one.


Posts: 20000 - Show all posts

Offline

 

#4 2011-11-06 10:55:56

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: When you program a game...

In real coding.  tongue
_____
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.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#5 2011-11-06 13:25:27

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: When you program a game...

veggieman001 wrote:

kimmy123 wrote:

The menu screen, if I make one.

I never make a menu screen.

Offline

 

#6 2011-11-06 14:10:02

coolboy2009
Scratcher
Registered: 2009-07-12
Posts: 1000+

Re: When you program a game...

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.


MOMS SPAGHETTI. (Steam: http://bit.ly/MICDaz) (roblox: http://bit.ly/LRJmcd) and (Xbox: Hal0r0cks1337)

Offline

 

#7 2011-11-06 14:12:37

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: When you program a game...

bbbeb wrote:

In real coding.  tongue

Oh.

What I do first is type the introduction if there is one.


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#8 2011-11-06 14:20:01

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: When you program a game...

Question: how do you make a game using C++?  I'm using a mac (which may void any/all advice I get  hmm  )


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#9 2011-11-06 14:20:40

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When you program a game...

MoreGamesNow wrote:

Question: how do you make a game using C++?  I'm using a mac (which may void any/all advice I get  hmm  )

Look up some tutorials.


Posts: 20000 - Show all posts

Offline

 

#10 2011-11-06 14:20:42

GarSkutherGirl
Scratcher
Registered: 2009-04-27
Posts: 1000+

Re: When you program a game...

Sprites.  tongue


Oh, the glory of it all - adorable cat people dressed as video game characters!
http://fc05.deviantart.net/fs71/f/2011/311/8/b/look_in_the_description_for_the_actual_epicness__by_garskuthergirl-d4fggrw.pnghttp://fc02.deviantart.net/fs70/f/2011/311/d/c/ahahahaha______by_garskuthergirl-d4fgc04.png

Offline

 

#11 2011-11-06 14:38:36

ProgrammingPro01
Scratcher
Registered: 2011-07-30
Posts: 1000+

Re: When you program a game...

I usually do everything in a different order every time.


Bye 1.4!
http://www.reactiongifs.com/wp-content/uploads/2013/04/sobbing.gifhttp://25.media.tumblr.com/tumblr_mbfh6bIamQ1qky11ho1_500.png

Offline

 

#12 2011-11-06 14:56:32

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: When you program a game...

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

Code:

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

 

#13 2011-11-06 14:57:48

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: When you program a game...

ProgrammingPro01 wrote:

I usually do everything in a different order every time.

tongue

Offline

 

#14 2011-11-06 14:59:28

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: When you program a game...

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

 

#15 2011-11-06 15:04:45

murpho
Scratcher
Registered: 2010-07-01
Posts: 1000+

Re: When you program a game...

code code code code code coffee break functions game aspects functions code code variables x10


https://lh6.googleusercontent.com/-l-rgCPiQ9pY/Tp32n1MRUEI/AAAAAAAADoA/HNQWbO8OOaA/s510/soccerleague.gif

Offline

 

#16 2011-11-06 15:13:59

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: When you program a game...

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.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#17 2011-11-06 15:45:43

flamekyle
Scratcher
Registered: 2011-03-18
Posts: 1000+

Re: When you program a game...

kimmy123 wrote:

The menu screen, if I make one.


http://prodegebanners.sitegrip.com/images/swagbucks-173x63Alt5.jpg

Offline

 

#18 2011-11-06 16:32:12

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: When you program a game...

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

 

#19 2011-11-06 16:34:26

bananaman114
Scratcher
Registered: 2010-03-15
Posts: 1000+

Re: When you program a game...

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


the sun still shines

Offline

 

#20 2011-11-06 17:03:43

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: When you program a game...

You guys are all backwards, I make the menu last  tongue


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#21 2011-11-06 20:08:01

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: When you program a game...

I make the main scripts for the controls and stuff and then make the menu and intro.  tongue


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#22 2011-11-06 20:18:16

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Re: When you program a game...

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.


This is a temporary signature. It will exist until I think of something witty.

Offline

 

#23 2011-11-06 20:44:49

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: When you program a game...

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.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#24 2011-11-06 20:50:15

nextstorm
Scratcher
Registered: 2009-12-13
Posts: 1000+

Re: When you program a game...

um
1. program
2. test
3. debug
4. ???
5. profit


bye

Offline

 

#25 2011-11-06 21:37:13

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: When you program a game...

MoreGamesNow wrote:

You guys are all backwards, I make the menu last  tongue

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

 

Board footer