Page 2 of 4

Re: TTM progress thread

PostPosted: Sun Oct 09, 2011 5:10 am
by EvanBlack
Essential programming functions you should master.

Code: Select all
if(true)  // if the statement is true do the following. This
            //could be a simple math equation like if(2=1+1)

{ //this is a scope bracket, variables defined here only work here.

    int a;  // always add a semi colon after almost everything. This is an integer
             //variable, also known simply as a whole number variable.

    float b;  // this is a decimal number, it holds decimals with whole numbers,
                 //look up double on google

                               // This is white space, it doesn't mean anything to the
                               //compiler, you can have everything written on one line and
                               //it would mean the same
                               // thing to the compiler. Those // are comments, anything 
                               //in front of them will make a comment also /* */ makes
                               //comments.
                              /* written like this*/

    a = 1;       // Assign an integer variable the value of 1

    b = .5;      // Assign a decimal value to a float variable.

    while(1) {  break;//do this}  // This is a while loop, you will almost
                                              // never need to use these. They create a loop
                                              // until the value is false. This one would
                                              // be infinite but I put a break statement to make                 
                                              // sure the loop doesn't continue forever. But this
                                              // loop will always be true

    if(a) { break;}    // another if statement with a variable, the value is
                             // 1 = TRUE. If a = 0 then the if wouldn't do anything
                             // because its false. break; means
                             // break out of the loop. Good for while statements.

    for(a = 0; a < 10; ++a) { /* do this stuff 10 times*/} // for loop, this
                                        // is you most useful loop. It allows for iterations
                                        // and making redundant tasks automated.
} // end scope


Thats pretty simple stuff to understand, but also thats nearly everything you need to make good code. Almost everything in programming is some sort of loop and mathmatical equations that use data structures.

There are other useful functions available but to make good code first comes making a good design of what needs to be done.

You ask yourself, "What do I need to do to make this happen?" then you write out psuedo code that helps you figure it out, then you write the actual code, then debug the code.

70% design, 15% coding, 120% debugging... thats programming.

Re: TTM progress thread

PostPosted: Sun Oct 09, 2011 5:14 am
by NightOfHorror
Thank you for that Evan, +1. :)

Re: TTM progress thread

PostPosted: Tue Oct 11, 2011 11:30 pm
by NightOfHorror
I am about to add background for Level 1 thanks to Jagmaster. :D

Re: TTM progress thread

PostPosted: Wed Oct 12, 2011 2:26 am
by Wertyboy
YES! Finally, NOH is improved his graphics. I waited this day for a long time
why don't you use PAINT.NET or RealWorld Paint.COM or maybe Photoshop?

Re: TTM progress thread

PostPosted: Wed Oct 12, 2011 2:37 am
by NightOfHorror
My skill hasn't improved. The ship is made by my friends, and the backgrounds are done by Jag, so thank them. I am still as good as I was a year ago. :P

Re: TTM progress thread

PostPosted: Wed Oct 12, 2011 8:52 pm
by lcl
Hey if you send me the actors graphics I could add some shade to them and try to improve them overall. :)

Re: TTM progress thread

PostPosted: Wed Oct 12, 2011 9:54 pm
by NightOfHorror
lcl wrote:Hey if you send me the actors graphics I could add some shade to them and try to improve them overall. :)

Thanks and I will give point when I can. Gave Jag a point.

Re: TTM progress thread

PostPosted: Fri Oct 14, 2011 5:03 pm
by Bee-Ant
Nice, it's become better ^^

Re: TTM progress thread

PostPosted: Sat Oct 15, 2011 3:23 am
by NightOfHorror
thanks :)

Re: TTM progress thread

PostPosted: Mon Oct 17, 2011 4:18 am
by Wertyboy
NOH, can i help you about graphics, i'm not very good at it but did you see Stickmn TIW SplashScreen? It's completed by myself
Anyway, when this game is complete?
+1 For you - Game Improved

Re: TTM progress thread

PostPosted: Mon Oct 17, 2011 4:23 am
by NightOfHorror
Wertyboy wrote:NOH, can i help you about graphics, i'm not very good at it but did you see Stickmn TIW SplashScreen? It's completed by myself
Anyway, when this game is complete?
+1 For you - Game Improved

Big thanks to you. lcl and Jagmaster got graphics tooken care of for me, but thanks. It will be complete when I say it's complete.

Re: TTM progress thread

PostPosted: Mon Oct 17, 2011 8:29 am
by Bee-Ant
NightOfHorror wrote:It will be complete when I say it's complete.

Yay, so it's already completed now??? :)

Re: TTM progress thread

PostPosted: Mon Oct 17, 2011 8:15 pm
by NightOfHorror
no, not even close. I haven't said it's complete yet.

Re: TTM progress thread

PostPosted: Tue Oct 18, 2011 1:49 am
by Bee-Ant
NightOfHorror wrote:it's complete

:P

Re: TTM progress thread

PostPosted: Tue Oct 18, 2011 2:47 pm
by Jagmaster
:shock:
*remembers magnet game* :lol: :lol: :lol: