choice with language Help!

Reply
 
LinkBack Thread Tools
  #11 (permalink)  
Old 06-26-2006
TheFaithfulStone's Avatar
Rockin'

Join Date: Jun 2005
Posts: 1,474
TheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to beholdTheFaithfulStone is a splendid one to behold
Re: choice with language Help!

Quote:
Originally Posted by Pyrotex
God programs in Perl.
Maybe, but Perl itself was written by Satan.

TFS
__________________
There are no stupid questions, but there are a LOT of inquisitive idiots.
Reply With Quote
  #12 (permalink)  
Old 06-26-2006
Pyrotex's Avatar
Slaying Bad Memes
Latest blog: I need a Vacation
Hypography Staff Member
Moderator
Editor
13 Days in Hell Champion!
Join Date: Nov 2005
Location: Houston, Texas
Posts: 3,885
Blog Entries: 8
Pyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond repute
Send a message via MSN to Pyrotex
Re: choice with language Help!

Quote:
Originally Posted by TheFaithfulStone
Maybe, but Perl itself was written by Satan.
Oh, that is a GOOD one!! And how totally, cosmically appropriate that it should be so! <pumping fist> Yes! Yes! Yes!

The next time I teach my Perl class, I'm going to quote you!
__________________
Hypography Forums Moderator
-- - - - - -
What concerns me is not the way things are, but rather the way people think things are.
Epictetus, Greek Philosopher
The map is NOT the territory.
Korzybski, Polish-American Philosopher
Reply With Quote
  #13 (permalink)  
Old 06-26-2006
sergey500's Avatar
Questioning

Join Date: Aug 2005
Location: Behind you....
Posts: 155
sergey500 is an unknown quantity at this point
Send a message via AIM to sergey500 Send a message via MSN to sergey500
Re: choice with language Help!

Programming is great. Your like god, create whatever you want.

Start with something simple...visual basic? Move on to JAVA, then C, and finally C++ well thats what I did. Worked for me.
__________________
Because I said so. . .

Damn it no! I am right you're wrong end of story!
Give up, give in, resistance is futile. My unlimited knowledge overwhelms you're own!
Reply With Quote
  #14 (permalink)  
Old 06-27-2006
CHADS's Avatar
Thinking

Join Date: Jan 2005
Location: Liverpool , England
Posts: 99
CHADS is on a distinguished road
Re: choice with language Help!

I ve scanned through a few languages as a newbie and i think c and c++ seem the most straight forward and logical .... i would certainly be able to master the layout and fundementals.
I looked into a java tutorial and it looks neat enough , very web encouraging it seemed as for pearl the text i saw had a lot of numbers in it .. maybe that was just th piece of code i saw .
The main thing i noticed was that they are quite similar with statement names.
I like C i think i could do as much with C as any other language and i believe someone wrote that c was faster although longer , earlier on.
i like the idea of speed and with what ive seen i think it could be easy to debug also with comments.
Programming has opened up a whole new world to me over the last few days as much as maths has done at school ... i hope i choose the right language , although it wont be a waste of time either way , it will certainly set a standard from which all my other programming experiences will be based on.
C++ seems the most popular and ive read " its a better C " ...... But id rather use C and write a bit more code so as to get a faster program.
I Dont know if all what ive said is true but id like to choose C , will I be left behind by C++ programmers or dosnt it matter that much

feedbackdefinatly welcome ,,, hello programming world
Reply With Quote
  #15 (permalink)  
Old 06-29-2006
CHADS's Avatar
Thinking

Join Date: Jan 2005
Location: Liverpool , England
Posts: 99
CHADS is on a distinguished road
Re: choice with language Help!

ive got some books on c and c++ and have found out the basics of how to generate a random number and make a simple little dice game , Hooray first ever game possibilities . What do you need to make a complex game after learning the basics i.e A 3D first person shooter ..... heavy stuff hey .... i would assume a game engine of some description but would everything you need to compile a relly cool 3d game be taken from <.h> files ... i just cant see how massive games come about from c or c++?
Reply With Quote
  #16 (permalink)  
Old 06-29-2006
Buffy's Avatar
Resident Slayer
Hypography Staff Member
Administrator
3D Championship Golf Champion!
Join Date: Jan 2005
Location: Sunnydale, CA
Posts: 6,657
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
Re: choice with language Help!

.h files are only supposed to have variable/class definions (although you can embed some of the simple, standalone methods directly in the class definition). What you need are entire code libraries that are in ".lib" files or as massive quantities of source code that you link or compile respectively along with your own code. You'll need to get an understanding of how the "compiler" works with the "linker" to really understand how this process works.

You should probably get some books on the subject: there's a zoo of different pieces to making a game, with all kind so engines: physics engine, 3-d modeling, rendering, ray tracing, etc. etc. etc.

I haven't researched the tools in years, and only have familiarity with the Pixar Renderman code that my friends at Pixar and Disney use. There are oodles of low-end libraries out there, but I'm no help in directing you to them...

Good luck!

Cheers,
Buffy
__________________
"If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!"
__________________________________________________ ______________-- Tom Lehrer

"The shrinks diagnosed me a sociopath with paranoid delusions. But they’re just out to get me cause I threatened to kill them."


Forum Administrator
Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here.
Reply With Quote
  #17 (permalink)  
Old 06-29-2006
KickAssClown's Avatar
Game Designer

Join Date: Jan 2005
Location: on the Material Plane (Physical Universe)
Posts: 1,474
KickAssClown is a glorious beacon of lightKickAssClown is a glorious beacon of lightKickAssClown is a glorious beacon of lightKickAssClown is a glorious beacon of lightKickAssClown is a glorious beacon of lightKickAssClown is a glorious beacon of light
Send a message via MSN to KickAssClown Send a message via Yahoo to KickAssClown
Re: choice with language Help!

OK... So your goal is computer Game programming, correct?

Assuming the answer is yes, then here's some advice.

I picked up a rather helpful book, cost $45 american, I found it at Barns and Nobels. It's Called "Game Coding Complete, Second Edition" by Mike Mcshaffry. Printed by Paraglyph press, ISBN 1-932111-91-3.

It's Aimed towards Windows Game programming, from top down, with Publishing concearns in site. It's a hefty piece of reading material, and will introduce you to the Basics of making a game project, from scratch.

It leans towards:
C++
Direct X
Win32

It is a general overview, of the process of greating a Game Engine. It's not detailed, but it's extensive. Here is another decent book I picked up.

GPU Gems 2. It's main perview is that of OpenGL, and Nvidia Graphics chips. It talks in detail about the various applications of a GPU in Real world apps. It's math intesive, as Graphical Programming is. So I would suggest some kind of Matrix, and Vector mathematics overview.

I myself, do not like Microsoft on some basic moral reasons so have since opted to boycott the Microsoft system for making my games on. A limitation, but a moral one all the more. So I find that I am less interested in learning Direct X API and Win32. I find that I am more interested in learning OpenGL API. I am interested myself in developing games for Linux, but I need a better education first, which will take sometime.

-He who laughs last, is the slowest to get the joke.
KickAssClown
__________________
"Anymore I am only interested in pets whom can make me coffee." -My Mom

Hyper Physics
Hyper Math
Wikipedia

Member of:
IGDA
YouTube
MySpace
Wikipedia:KickAssClown
The Forge
Reply With Quote
  #18 (permalink)  
Old 06-30-2006
Pyrotex's Avatar
Slaying Bad Memes
Latest blog: I need a Vacation
Hypography Staff Member
Moderator
Editor
13 Days in Hell Champion!
Join Date: Nov 2005
Location: Houston, Texas
Posts: 3,885
Blog Entries: 8
Pyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond repute
Send a message via MSN to Pyrotex
Re: choice with language Help!

Quote:
Originally Posted by CHADS
... i just cant see how massive games come about from c or c++?
Chads,
If you really want to program a game worth playing and really learn a programming language, may I offer some advice from 35 years of programming experience?
Building one large "program" that plays a game is going to be self-defeating. One of the hardest problems that ANY programmer must solve (to stay a successful programmer!) is how to "think" like a programmer. Learning a language syntax is not enough. Analogy: you want to be an essay writer; you have to know a language (English); then you have to know how to build a good sentence; the variations on a good sentence; how to select words and phrasing that will appeal to your audience (the "interface"); how to build a coherent paragraph; how to string together paragraphs to go from a starting point to an ending point; and how to create a specific approach to a topic.

Ironically, to be a good essay writer, you must work backwards, starting at the last item I listed, and ending with the syntax of the selected language!!

Interactive programs (games and such) typically have many levels of functionality. There will be a library of modules that do "atomic" functions with your interface: accept user input and stick into queue; pop next user input off queue, extract parameters; call interface function. You should not embed these routines in your main game code, but code them separately and call each as needed (subroutine calls or object-actions).

At the next higher level, you will have functions that perform "larger" pieces of action: move gun left; move gun right; fire gun; detect bullet impact; kill monster; move monster forward; make monster attack; score hit points; drain user health; draw explosion; etc. Again, THESE should be coded as stand-alone pieces that accept all the input parameters they need to do their stuff, such as monster_ID, other_object_ID, action_ID, target_location, etc. And to a great extent, they will be coded via calls to atomic functions.

At the top level, you have your game itself. Now, you are NOT programming in atomic level functions, or even in C(++) itself--you are programming in calls to your middle level functions. for example:

On_User_Fire(Weapon_ID, Monster_ID, Weapon_Aim_Array, Fire_State_Out)
{
WepnState = Get_Weapon_State(Weapon_ID)
If WepnState = 'empty' or 'recharging'
Then Fire_State_Out = "Fail_Fire"; exit
Else
MonLocn = Get_Monster_Locn(Monster_ID)
Hit_State = Get_Aim_Match(Weapon_Aim_Array, MonLocn)
If Hit_State = 'miss' or 'blocked'
Then Fire_State_Out = "Fail_Aim"; exit
Else...

See what I mean? At the actual game level, you should not be manipulating C++ arrays or adding interface pixel distances or all that atomic stuff. You should be manifesting the actual play logic of the game itself in terms that are understandable as primitive actions and results within the rules of the game.

So, you build the game backwards. Decide what kind of game you want. Decide the rules of that game. Decide what components you want in the game (monsters, guns, ships, trees, etc). Decide what relationship rules exist between the components (greech has color, greech climbs trees, greech eats rocks, greech disappears into holes, user collects blue greeches, user kills red greeches, etc)

Then you design the interface and what the objects look like and how they need to be manipulated.

Then you design the atomic functions you need to manipulate the objects within your interface.

Then you code the atomic functions.
Then you code the middle level functions using atomic functions.
Then you code the GAME using middle level (and some atomic) functions.

NOW... this may be much easier to do in C++ then in C, because C++ already enforces the kind of discipline you need to accomplish all this. In C++, you already have "objects" which you flesh out as Greech_Objects, Tree_Objects, Hole_Objects, User_Object, etc, each with their own specific attributes and specific actions/relationships.

Good luck.
__________________
Hypography Forums Moderator
-- - - - - -
What concerns me is not the way things are, but rather the way people think things are.
Epictetus, Greek Philosopher
The map is NOT the territory.
Korzybski, Polish-American Philosopher

Last edited by Pyrotex; 06-30-2006 at 12:08 PM.
Reply With Quote
  #19 (permalink)  
Old 06-30-2006
Pyrotex's Avatar
Slaying Bad Memes
Latest blog: I need a Vacation
Hypography Staff Member
Moderator
Editor
13 Days in Hell Champion!
Join Date: Nov 2005
Location: Houston, Texas
Posts: 3,885
Blog Entries: 8
Pyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond repute
Send a message via MSN to Pyrotex
Re: choice with language Help!

Quote:
Originally Posted by Buffy
...that my friends at Pixar and Disney...
Buffy!!!!!!
You have friends at Pixar??????

Could you introduce me to Steve Jobs, pleeeeeeezzzz????

__________________
Hypography Forums Moderator
-- - - - - -
What concerns me is not the way things are, but rather the way people think things are.
Epictetus, Greek Philosopher
The map is NOT the territory.
Korzybski, Polish-American Philosopher
Reply With Quote
  #20 (permalink)  
Old 06-30-2006
CHADS's Avatar
Thinking

Join Date: Jan 2005
Location: Liverpool , England
Posts: 99
CHADS is on a distinguished road
Re: choice with language Help!

Wow
Thats absolutley great advise i can now understand the basic structure of how to go ahead with game creation , Thank you, i think this puzzlement has been resolved at a crucial point in my learning and will certainly bolster my enthusiasm. Would i be right in assuming that the game engines call all created programs and files to the game floor when required?.... And finally on a basic note ,when i run a compiled program on my c compiler the screen flicks off sometimes after its run and i have been using..... scanf("%d",&a);....
at the end of my programms to hold the screen so i can see the results , otherwise it just flips through and exits ... what could that be , what could i use instead of the input function scanf().?

Thanks again for the advice guys excellent!!!!!!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Choice polls InfiniteNow Suggestions and Wish List 14 08-02-2006
Choice goes both ways? IrishEyes Philosophy and Humanities 31 12-11-2005
Autoroute and Software like that_whats the best choice? kazbadan Watercooler 1 08-23-2005
Make your choice, that is about worlds' product. Ps2Huang Books, movies, games 6 05-04-2005
language system?! Tim_Lou Philosophy and Humanities 96 01-13-2005

» Current Poll
Favorite James Bond?
Sean Connery - 63.64%
7 Votes
George Lazenby - 0%
0 Votes
David Niven - 9.09%
1 Vote
Roger Moore - 9.09%
1 Vote
Timothy Dalton - 9.09%
1 Vote
Pierce Brosnan - 0%
0 Votes
Daniel Craig - 9.09%
1 Vote
Hate 'em all - 0%
0 Votes
Who's James Bond? - 0%
0 Votes
Total Votes: 11
You may not vote on this poll.

All times are GMT -8. The time now is 02:00 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network