Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 5

Author Topic: Learning to code - what, why and how.  (Read 6503 times)

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Learning to code - what, why and how.
« Reply #15 on: June 11, 2009, 01:35:43 am »

What's GameMaker like? Do you actually have to wrote any code? Can you if you want to?

I've played at least one game (Iji, look it up in Other Games) that was made with it. It's a lot of fun.
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

deadlycairn

  • Bay Watcher
    • View Profile
Re: Learning to code - what, why and how.
« Reply #16 on: June 11, 2009, 01:44:53 am »

You CAN write code with Gamemaker, but you don't have to. I tried it once, long ago, but I was put off by my complete inability to draw sprites of any kind (which is why I'm trying to make a roguelike now :P)
Logged
Quote from: Ampersand
Also, Xom finds people that chug unidentified fluids pleasing.
Quote from: Servant Corps
Ignorance of magic does not give scientists the power to resist fireballs.

Mr Tk

  • Bay Watcher
  • Would you like a mint? It's only waffer thin.
    • View Profile
Re: Learning to code - what, why and how.
« Reply #17 on: June 11, 2009, 03:56:43 am »

Java is a good place to start to dip your feet into programming.

The reason for this (before everybody starts flaming me) is that first, you don't have to worry about memory allocation to begin with. Second it's very similar to C and C++ so when you go from one to the other it's not too bad. Third, well documented. Finally it has much less obtuse error messages than C++ or C.

Or get visual studio express 08 and look at C#.
Logged
First ten minutes of play I ate my loincloth and then got some limbs torn off by a super friendly rat. Thumbs up from me.

Muz

  • Bay Watcher
    • View Profile
Re: Learning to code - what, why and how.
« Reply #18 on: June 11, 2009, 05:15:27 am »

I've felt that Construct is superior to GameMaker if you want to go that way. Multimedia Fusion supports more flexibility, like making Lua stuff.

Speaking of Lua, it's a good starting language, with a very good online tutorial. It's supported by a lot of MUD clients, so you can pick up a MUD and practice scripting for it. Or learn HTML if you haven't, it's not even a real programming language, but it's easy to learn and has many practical uses :P

I found C and C++ to be tough as a starting language. It's all too easy to make a mistake, especially for a beginner who's not used to it.

I'd think that making a roguelike is a rather tough goal, takes years of experience with general coding to go that far. I've been coding since 10 years ago and I still don't know how to make a roguelike.. but it works better with some code than others. Heck, I know people who are ivy league post-graduates in comp science but can't make a roguelike.

Learning to code is a bit like learning a new language.. it's very hard in the beginning. And unlike spoken languages, programming languages don't work if you make a syntax error. Just be persistent with it and you'll figure it out.
Logged
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Darkone

  • Bay Watcher
    • View Profile
Re: Learning to code - what, why and how.
« Reply #19 on: June 11, 2009, 08:43:11 am »

Python is actually fairly sophisticated. You can do quite a bit with it, and anything you can't, you can use C/C++ (forgot which) modules inside python to do. Even pure python with a couple good libraries is plenty fast. Here is a bit of my own advice- don't use pygame. Use rabbyt, or learn how to do 2d using OGL. Either way, pygame is terrible for anything that requires rotations, scaling, etc etc, as its based on SDL, which is not HW accelerated. While it will work fine for graphically simple games, any real-time game with lots of rotations and other things will screw your FPS.
Logged
"LOL, those nub FBI, they thought you were sharing software so they kicked down your door, only to find you recently wiped your entire hard drive, how wacky! Case dismissed."
Quote
[11:58] <Jay16> I couldn't begin proper last time I tried this because I embarked next to a hydra.

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Learning to code - what, why and how.
« Reply #20 on: June 11, 2009, 09:11:42 am »

Good idea Muz. Learn HTML! It's not a programming language, but it is a "computer" language.

Tinkering with it can help you get a feel for how computers "read" and get you used to using some of those funny symbols. Plus, once you know HTML, you'll probably want to learn (at least a little) about CSS and JavaScript.

That's acually how I discovered Java... I was teaching myself HTML and the book had a chapter about Java Applets...
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Rysith

  • Bay Watcher
    • View Profile
Re: Learning to code - what, why and how.
« Reply #21 on: June 11, 2009, 12:49:56 pm »

I'll N+1 all the suggestions that you don't try to learn a language to code a roguelike in. Roguelikes are complicated things, and without a bit of practice it will likely get messy and frustrating, no matter what language you use. Especially if you've never programmed before, because programming well requires a certain mindset and some planning.

Instead, I'd go poke around with the languages suggested here, and see if you find one that you like and understand. Once you've found one that you like, practice programming in it. You'll start with some of the basic things (writing a program to compute prime numbers, for example), and work your way up towards programming your roguelike. If you can find an already-written roguelike library or framework (which probably exist), that will make your life a lot easier.

I personally like Java and Ruby, and would recommend staying away from C and C++ if only because of the number of ways that they allow new programmers to shoot themselves in the feet in obscure ways. Python is alright, but a bit C-centric for me (in that I'm not used to programming in the style that it wants).
Logged
Lanternwebs: a community fort
Try my orc mod!
The OP deserves the violent Dwarven equivalent of the Nobel Peace Prize.

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: Learning to code - what, why and how.
« Reply #22 on: June 11, 2009, 01:09:42 pm »

For now, I'll try Java.
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Learning to code - what, why and how.
« Reply #23 on: June 11, 2009, 06:09:28 pm »

Actually, although I don't have much experience outside of C, I believe that java is probably more complex than C++, and that is probably more complex than C.

With C, it's just

int main()
{
    //stuff
}

but java needs at least class or something. AFAIK.

Of course, without a good direction when going into graphics in C, you do need outside assistance to find an easy way to do things, otherwise you end up calling the window creation directly, setting up openGL, writing your own bitmap loading and editing functions... I have been there, and although plenty of control comes from it, there certainly is an easier way.


Still, java may work for you, though I don't know enough about it to properly compare the languages.


Edit-before-post:
After a bit of other-window research, it seems that java is probably easier at the more complex parts like graphics. I still believe that it shouldn't be the only focus, but it may work out fine.
I'll stick with C though.
Logged
Eh?
Eh!

Jack_Bread

  • Bay Watcher
  • 100% FRESH ♥HIPPO♥
    • View Profile
Re: Learning to code - what, why and how.
« Reply #24 on: June 11, 2009, 07:12:56 pm »

If anyone is interested, GMRoguelike source I made.
You can code with GameMaker, but it has its own language called GML.

cowofdoom78963

  • Bay Watcher
  • check
    • View Profile
Re: Learning to code - what, why and how.
« Reply #25 on: June 11, 2009, 10:09:14 pm »

Use teh C, Game maker cant make an rpg to save its life. Stay away!

Anyway all codes are pretty much the same, I dont see how people find one more difficult then another...
Logged

Mr Tk

  • Bay Watcher
  • Would you like a mint? It's only waffer thin.
    • View Profile
Re: Learning to code - what, why and how.
« Reply #26 on: June 12, 2009, 12:09:59 am »

Use teh C, Game maker cant make an rpg to save its life. Stay away!

Anyway all codes are pretty much the same, I dont see how people find one more difficult then another...

Indenting vs brackets
Garbage collection vs Manually freeing memory
Automatic memory allocation vs Manual memory allocation
Everything is an object vs nothing is an object
-> or .?

And that's just a few differences. . .
Logged
First ten minutes of play I ate my loincloth and then got some limbs torn off by a super friendly rat. Thumbs up from me.

cowofdoom78963

  • Bay Watcher
  • check
    • View Profile
Re: Learning to code - what, why and how.
« Reply #27 on: June 12, 2009, 12:35:53 am »

Use teh C, Game maker cant make an rpg to save its life. Stay away!

Anyway all codes are pretty much the same, I dont see how people find one more difficult then another...

Indenting vs brackets
Garbage collection vs Manually freeing memory
Automatic memory allocation vs Manual memory allocation
Everything is an object vs nothing is an object
-> or .?

And that's just a few differences. . .
Pfft. Its all different means to the same end.
Logged

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: Learning to code - what, why and how.
« Reply #28 on: June 12, 2009, 02:19:53 am »

This is just sad. I can't even compile the hello world program because my computer is so filled with crap that I couldn't find it to specify which file.

Are all compilers like the java one (it uses the C:\ prompt), or are there some that are easier to use?
Logged

AxelDominatoR

  • Bay Watcher
    • View Profile
Re: Learning to code - what, why and how.
« Reply #29 on: June 12, 2009, 02:51:56 am »

Use Netbeans IDE if you are interested in Java programming.
http://www.netbeans.org/
It will make your life easier.
Logged
Axel DominatoR ^^^ HC
Pages: 1 [2] 3 4 5