programing games...

Status
Not open for further replies.

VoK

Ars Tribunus Militum
2,458
i am very new to programming, (mastered BASIC on my calculator and that's it) and i was wondering if you guys could give me some info on beginner's tools for programming. I know there are a lot of java games out there so i'm taking a java course at school next year, but i do know that java isn't the best for games. so could some of you recommend me some beginner tools for my first dive into game development? thanx
 

X_Breaker

Ars Tribunus Militum
2,299
I would recommend learning C++, for starters. It's a good, solid language to know.

After you think you have a good grasp of it, try looking into some books on DirectX or OpenGL, whichever you prefer. I can recommend at least two good ones...

Tricks of the Windows Game Programming Gurus
OpenGL Game Programming

And furthermore, here are some websites that would be good to frequent. Listening in, you can learn a lot about how games work.

Gamasutra
Game Developers Network
Game Development Search Engine
Flipcode

[This message was edited by X_Breaker on December 10, 2001 at 16:07.]
 

Erorus

Ars Tribunus Angusticlavius
6,674
Subscriptor
Originally posted by flyingember:
c++ is close to java so you'll have very little problem changing over too.

stay away from vb for games. no worth it.
I'll second that. I'm learning Java now in school and I wanna learn C++ ASAP.

I've been making a multiplayer network game based off an obscure board game in VB, and I've been fiddling with VB since VB2, and I continually run into walls with the code, needing a DLL or an ActiveX component coded in C++ anyway.
 

Erorus

Ars Tribunus Angusticlavius
6,674
Subscriptor
Originally posted by PeterB:
Quote: "and I continually run into walls with the code, needing a DLL or an ActiveX component coded in C++ anyway."
:confused:

With what?

I'm genuinely curious about what you couldn't accomplish in VB that you could do in C++.
For starters, the socket control for TCP/IP communications. And I think I have to make the part of my code that accepts the multiple commands from multiple connections multithreaded, or else i have strings running into each other and errors pop up whenever there's more than 2 players.. and if VB does multithreading, i haven't learned how yet. :p
 
Originally posted by Erorus:
For starters, the socket control for TCP/IP communications. And I think I have to make the part of my code that accepts the multiple commands from multiple connections multithreaded, or else i have strings running into each other and errors pop up whenever there's more than 2 players.. and if VB does multithreading, i haven't learned how yet. :p
To do multithreading requires either creation of multiple components (easy), or the use of <span style="font-family: 'Lucida Console', monospace;">AddressOf</span>, Win32's <span style="font-family: 'Lucida Console', monospace;">CreateThread()</span>, and some care and attention. There are limitations on what can be done, but it's certainly possible.
 

wb

Ars Legatus Legionis
25,208
Subscriptor
This guy JUST STARTED PROGRAMMING and you guys are recommending he start out doing open GL in C++ for his first game???


For crying out loud, stick with VB since you're already comfortable with it. I've also seen plenty of great games written in Java, and have written a few games in Java myself. If and when you start to feel like you're limited by VB's or Java's capabilities, try picking up something else.


You haven't said anything about what kind of games you had in mind that you wanted to write. First off, I'm going to tell you that you shouldn't try to tackle a MMORPG or FPS as your first (or even second or third) game, because there's going to be a lot of basics that you'll have to get down before designing the infrastructure for a game like that will even be possible, and you're likely to get frustrated before you ever complete even a small percentage of the code necessary.

I highly recommend trying to write a tetris clone as your first game.
 

VoK

Ars Tribunus Militum
2,458
well currently, i rpgrammed my own drug wars clone and it works pretty well. of course there aren't any graphics or anyhting like that. my goal in the next two years is to make some 2d scrolling game that has you swinging a sword or axe and kill them. in the next year, i want to make one of those scrolling plane games where you have super weapons and kill all the little guys.

however, i still am seeing mixed things with what you guys are telling me. some say VB, some say c++, some say java. i feel that java is closer to what i am doing but i want a good base, so i won't be JUST programming games.
 

threep

Wise, Aged Ars Veteran
178
Hey.

My advice is to learn C++ really well by developing some command line programs. Learn pointers, classes, etc. This will strengthen your foundation. Then, move into the world of windows programming. Windows Programming in C++ really isn't that bad if you understand the intricacies of computer science.

Learning Visual Basic first will just teach you bad habits. Sure, its great to be able to just draw your forms and go, but problems start to arise when you want to do complicated things like multi-thread. If VB was so great, why is MS replacing it with C#? Learn how program the object oriented way with C++. It will save you time in the long run.

From my experience with VB, the development environment just causes headaches. Gotta love it when VB crashes while you are debugging. Never had this happen to me when I develop in C++.

As an added bonus, you won't be platform dependent. :)

~Dan
 
Learning Visual Basic first will just teach you bad habits. Sure, its great to be able to just draw your forms and go, but problems start to arise when you want to do complicated things like multi-thread. If VB was so great, why is MS replacing it with C#?
They aren't. So what the fuck is the point you're trying to make?

From my experience with VB, the development environment just causes headaches. Gotta love it when VB crashes while you are debugging. Never had this happen to me when I develop in C++.
I have. Does that make C++ crap? No, of course not.

For someone starting out, VB is just fine.
 
VB + a few system calls to speed things up can make decent games. I made one several years ago that ran on a 486. It's a simple way to start... keeps you away from much of the low level stuff. For games with simple animations, it works ok. You'll eventually run into walls though.

So if you want to start your game quickly, go VB. If you want to invest more time to learn something that will take you further, go C++.
 

wb

Ars Legatus Legionis
25,208
Subscriptor
I remember when the only way to write games was in Z80 assembler, with cassette tape storage. 48K of RAM and a 3.5MHz CPU - my Spectrum was LOADED!!!

Pfft you had it easy. I wrote assembly on a VIC-20 with 5K of RAM, and no storage (I got a disk drive about 1.5 years later) so I entered the entire program (including the assembly language monitor code) by hand every time.

Of course I'm sure someone will turn up that manually flipped switches in binary to program their machine...
 

Jack

Seniorius Lurkius
21
Here are some sites with some good beginning info. Don't let the one hacking site scare ya its in the good sense to learn more about code.
Hacker how to
Programming Python
hmm not sure if I did that right. :cool:

[This message was edited by Jack on December 13, 2001 at 02:21.]

[This message was edited by Jack on December 13, 2001 at 02:23.]

ok there it is

[This message was edited by Jack on December 13, 2001 at 02:24.]
 
I had similar questions about beginning game programming (specifically 3D FPS types). You may want to peruse that thread to see if any of it helps you...Thread

As far as a beginning programming language, I guess I'm old school in recommending Pascal (or Ada95) as by far the best choices for starting out. (Btw, I can't see Python being a good language to start with at all.)

In my experience, I saw programmers who started with Pascal/Ada over C/C++ tend to develop better structured code in whatever language they were working with. They seemed to be able to grasp problems and apply a solution quicker. Just one man's opinion on where to start, so take it for what it's worth.

It's funny...Java is syntactically very similar to C++, but the underlying semantic model is more similar to Ada. I believe there are Ada compilers that can even generate Java byte codes directly (or they were planned).
 
Originally posted by wb:
Of course I'm sure someone will turn up that manually flipped switches in binary to program their machine...
Well...I can't go back that far, but when I was a kid they let run around in the KSU CS department, I played with the 80char punch cards. One line per card, typed, then all stacked together and loaded into the computer. If there was an error, you got your box of cards back and started looking through each one for the error...or the bent card. :)
 
Well...I can't go back that far, but when I was a kid they let run around in the KSU CS department, I played with the 80char punch cards. One line per card, typed, then all stacked together and loaded into the computer. If there was an error, you got your box of cards back and started looking through each one for the error...or the bent card.

Youngster. When I was an undergraduate CS student that's the way it was in many classes - but to compile a program, you had to give your card stack to someone for batch processing, which means you didn't get to see the compiler output until the next day.

Of course, when I was in high school we all programmed by pecking the programs into the living rock itself with stone knives and bearskins, only using the binary digit zero because the one hadn't been invented yet. ;) :D
 

-Triple-

Ars Tribunus Angusticlavius
8,554
when I was a kid they let run around in the KSU CS department

Too bad you can't actually share experiences. I've always liked the low level, and I think it would be interesting to actually do something like that... though I'd probably have to learn some horrific language like COBOL or whatnot. My earliest coding experience was BASIC on a circa-1982 TRS-80. Mmmm, read and write 5.25" floppy drives.
 
Originally posted by ottovonblotto:
Youngster. When I was an undergraduate CS student that's the way it was in many classes - but to compile a program, you had to give your card stack to someone for batch processing, which means you didn't get to see the compiler output _until the next day_.
Wow...we were light years ahead of you. When I was there, the boxes of cards were turned in at one counter and within an hour or so you got the results and your cards back down the hall a little ways. Not seeing it until the next day...ha! Can you imagine CS students having to wait 24 hours between each attempt at a program now? ... Not entirely a bad thing though, I bet we'd be seeing a higher quality of programmer come out of the schools instead of the kludge-it-till-it-runs mentality. ;P

Originally posted by ottovonblotto:
Of course, when I was in high school we all programmed by pecking the programs into the living rock itself with stone knives and bearskins, only using the binary digit zero because the one hadn't been invented yet. ;) :D
I think you're telling a fib...the one was invented before the zero. ;)

Originally posted by -Triple-:
Too bad you can't actually share experiences. I've always liked the low level, and I think it would be interesting to actually do something like that... though I'd probably have to learn some horrific language like COBOL or whatnot.
Most common for the punch card layout was FORTRAN, the very rigid rules for that language come from the cards. If you want to see what it was like, for your next program type each line (with an electric typewriter) onto a separate piece of paper. Only 80 chars per line and if you make a typo there is no whiteout, start the line over on a new sheet. After you have typed all your lines (hundreds to thousands even) then make sure you stack them in the right order and take the stack to the guy who will feed them into the computer (not sure how to emulate that though...) :)

You're right though...as frustrating as it sounds (and was), there's an oddly pleasurable memory about that environment. I wonder if it was from feeling something huge about to take over the world, whereas now a comp lab is nothing special?

Originally posted by -Triple-:
My earliest coding experience was BASIC on a circa-1982 TRS-80. Mmmm, read and write 5.25" floppy drives.
I had a Trash-80 in 83 or 84. Didn't have the 5.25" floppy though, just a tape drive. When did the 5.25" size become widespread? I'm pretty sure in 1980 the dinner plates were the thing

[This message was edited by Longtime Lurker on December 16, 2001 at 02:22.

[This message was edited by Longtime Lurker on December 16, 2001 at 02:26.]
 

-Triple-

Ars Tribunus Angusticlavius
8,554
I had a Trash-80 in 83 or 84. Didn't have the 5.25" floppy though, just a tape drive. When did the 5.25" size become widespread?

Pardon me, I didn't give the full details. It was one of these: 1981 Radio Shack TRS-80 III. I haven't taken it out of my attic back home for years though. I do remember that I had the "advanced" model, that had 48KB RAM (wow!), though it looked exactly like the computer on the linked page. And I know mine was acquired in 1982 by my grandfather.

Tape drives... yikes.

I'm pretty sure in 1980 the dinner plates were the thing

Those are barely before my time (before my birth, actually), but I used a computer that used those "dinner plate" disks once (you are referring to the 8-inchers, right?). I find such experiences enriching for some strange reason.

I want to use a computer with drum memory, or ripple tanks.
 
Originally posted by -Triple-:
Pardon me, I didn't give the full details. It was one of these: http://www.zock.com/8-Bit/D_TRS80-III.HTML. I haven't taken it out of my attic back home for years though. I do remember that I had the "advanced" model, that had 48KB RAM (wow!), though it looked exactly like the computer on the linked page. And I know mine was acquired in 1982 by my grandfather.
Wow, you had an impressive one for the time. :) Mine had the keyboard and monitor as two separate units and a whooping 4Kb of RAM. I wish I still had the thing, but I was storing it at my folks place and they just left it out on the side of the house...got destroyed in the weather and they chucked it. I still have every computer I owned after that (well, since I just started upgrading parts instead of buying new comps, I guess I don't anymore.)


Originally posted by -Triple-:
Those are barely before my time (before my birth, actually), but I used a computer that used those "dinner plate" disks once (you are referring to the 8-inchers, right?). I find such experiences enriching for some strange reason.

I want to use a computer with drum memory, or ripple tanks.
Yeah, those were the disks. I think you can see them in "Wargames". If you watch it now, it looks like he's pulling a frickin placemat out of his computer when he grabs the disk. :)

Ripple tanks, heh.

Or needing to keep the vacuum tubes clean...or however those worked.


EDIT: Cool, that zock.com is an awesome site! I wish they had the 520ST/1040ST pics under Atari, but that thing is pretty complete
 
Status
Not open for further replies.