hi. there are a lot of new coders popping up, and ive decided to make a thread to give tips to those coders: here we go!
TIP 1 --- Choosing the languge
this is perhaps, the biggest controversy of all time, what language should beginners use?? C++,C, or LUA???? here are the ups and downs of each:
Good- fast, OOP (more organized), tons of libs to use.
Bad- syntax is a bit complicated (for me atleast), harder to learn (not much tho).
Good - faster than C++, tons of libs to use, syntax is more straightforward.
Bad - no OOP, harder to learn (just a bit)
Good - just about no syntax, easier to learn than C/C++
Bad - slow, no OOP (unless you use metatables,which is HARD), not that many libs, except for netlib by youresam, animation lib by me, and some others i forgot. (sorry!! )
NOW, DONT be fooled into using LUA since its the easiest. doing so will make it harder to get used to C/C++ concepts.
and the moral of the story is: THE LANGUAGE DOES NOT MATTER RIGHT NOW! WHAT MATTERS IS THAT YOU GET THE LOGIC OF PROGRAMMING!! IF YOU DONT GET THAT.. THEN... YOU WONT BE ABLE TO PROGRAM!!!
read the above sentence 5 times and get it into your head.
TIP 2 --- WHAT TO MAKE
DONT even THINK that you can make halo on your first try. the first game i made would have gotten a -99999999/10 on ign. so will yours. DONT WORRY!!! you WILL get better! (if you try)
start out by making SIMPLE games.. and then progress SLOWLY. otherwise you be doing this:
:Argh: :Argh: :Argh: :Argh: :Argh: :Argh: :Argh: :Argh:
for the rest of your life.
TIP 3 --- OPTIMIZATION
this may not matter right now, but as you make more and more CPU-heavy games, optimiazation will be needed a lot. use elseif insted of 50 ifs. if you have 25 images, make an array. that sort of stuff.
you dont need to worry about it right now though. but do kep it in mind.
ALSO, when you read tuts, dont copy them WORD FOR WORD!! understand why it works, and make modifications to if.
TIP 4 --- DONT GET OVERWHELMED!
stress. everybody has some, but too much can make you screw up. dont take on 50 different projects at once, youll just end up quitting all of them.
also, for you cygwin users. DONT FREAK OUT if the complier gives you 100 different errors. i once had 212, and they were ALL solved just by adding a
to my code.Code:}
TIP 5 --- USE PESUDO CODE!!
this one is important. if you can write, then you should so this. so what is pesudo code?? its like the programmning languge, BUT its all in english. EXAMPLE:
the following code will load and blit 2 imagesin pesudo code)
once you have done that, its simple to convert it to real code:Code:load the Image called "test1.png" load the Image called "test2.png" while the game is not over do blit test1 to 250x100 blit test2 to 20x100 wait forever flip the screen end
you'll need it A LOT later on.Code:test1 = Image.load("test1.png") test2 = Image.load("test2.png") while true do screen:blit(250,200,test1) screen:blit(20,200,test2) screen.waitVblankStart() screen:flip() end
TIP 6 --- READ!!!!
before starting a new project, READ about what youll need. if you know youre gonna be needing physics, read up on some physics lessons. reading does help a lot. and now, there are like 10000 articles all over the web.
TIP 7 --- PRIORITIZE!
DONT work 10 days on a menu, and then quit the game youre working on. its a HUGE waste of time. organize your work. pritorize like this:
1st - do you game BASICS (movement..etc)
2nd - then the more complicated stuff (collision, physics)
3rd - gfx (menus... etc.)
4th - misc (highscore and so on)
TIP 8 --- DONT ASK FOR TOO MUCH HELP!!
asking for help is ok, BUT dont ask everytime you get an error. if you get an error, try the following:
1. identify what line it is.
2. see what TYPE of error it is.
3. try to fix it.
4. if you cant, read the error again and try to fix it again.
5. still dont work? THEN ask for help.
TIP 9 --- DONT RELEASE CRAP GAMES!!
if youve made youre first app, feel proud but DONT release it unless youre sure people wont hate it. what i mean is, DONT release a hello world app. you WILL be flamed to kingdom come. if youre THAT eager to share, PM it to me. but DONT release it.
TIP 10 --- DONT GIVE UP!!!!!!!!!
this is THE MOST IMPORTANT THING. some of your projects will fail. DONT GIVE UP!! take a 2-day break, then try something new. if you give up on your first try then:
whew. thats it for now. hope this helps! tell me if you want any other 'tips' added.