Page 1 of 1

I want to be a better programmer.

PostPosted: Tue Aug 23, 2011 10:39 pm
by Hblade
Does anyone here have any tips on how I can become a better programmer? I notice theres always some sort of bug in the game and I know theres always a way to fix it, I want to be able to program WHAT I want to program. My friend is an awesome sprite artist, and we want to make a game one day! :) So if anybody here has any ideas :D Lemme know

Re: I want to be a better programmer.

PostPosted: Wed Aug 24, 2011 11:07 am
by lcl
Well, look and try to figure out other people's codes and make yourself challenges.
With challenges I mean some nice thing you'd want to do.
For example, I made a system which can print text without any text actors, I made an array which I defined all printable characters as 6 x 8 grid where 1 meant a pixel to be drawn and 0 meant empty pixel. Then just compare the string letters with the array and print the right character. That was a nice challenge to me and I learned more coding when I did it.

Also, try to write someone's code as your own version. I learned to make a typewriter effect by simply writing the exactly same code as pyrometal originally wrote. After that I spotted some things where I was able to simplify it.

Just keep coding something that challenges you and you will learn. Ask help when you need it in some really bad problem.

I wish this was at least a little helpful. :)

- lcl -

Re: I want to be a better programmer.

PostPosted: Wed Aug 24, 2011 11:42 am
by schnellboot
lcl wrote:Also, try to write someone's code as your own version.

agree ^^

Re: I want to be a better programmer.

PostPosted: Wed Aug 24, 2011 12:39 pm
by Jagmaster
Good advise.
schnellboot wrote:
lcl wrote:Also, try to write someone's code as your own version.

agree ^^

I gotta say, this may be the best way to learn. Just like you can't properly build a car unless you learn to take one apart and fix it, it's good to examine and dissect another code, take it apart and break it down so you can see how it works. Then, once you know how a script operates, then you can build your own script properly. I find learning easier this way quite frankly. Back in grade school, I used to play piano. It was a lot easier for me to play a song after my teacher played it and I could hear what it sounded like.

There's also people who learn purely by trail and error. You probably learn a great deal more this way, because you know every way it doesn't work. Some of the greatest inventors worked this way, and like with most problems we have, they weren't lucky enough to have a template laid out. In a way, they were creating the template. How many versions of the light bulb have been produced? People can say "I invented the florescent bulb" or "I invented the neon bulb" as far as I know, Edison's light bulb is still burning to this day. Just remember, the florescent bulb is brighter and more efficient than the first Edison bulb. :idea:

Re: I want to be a better programmer.

PostPosted: Wed Aug 24, 2011 4:02 pm
by Hblade
Thank you all very much :) me and my friend are currently making a castlevania game, got everything good so far, had massive problems with the rope though but I'm going to do things a bit differently now. here's a screenshot. it has almost the EXACT SAME control style as the original castlevania games for the NES. My friend is the grahpics artist, but I made the tree and the background and the music and programming xD Everything else was made by him. He's an awesome sprite artist, his first time was when I requested silver the hedgehog stuff :D And he was flawless.

datas.png