Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Question just started and need a lot of help

    ok guys. i just started coding, because all of a sudden i want to be a programmer.atm, im working with c++. but then i heard this guy saying he is making an OS. so here are all of my questions.

    1. if i use c++ and i want to make a game from scratch with it, what other languages would i need to know? someone told me i have to know assembly or directX because c++ doesnt have graphics or something. could someone explain.

    2.i heard that C is the best language for making an OS. if someone could confirm that, or is it C/C++ thats better. also, wat exactly does an OS do and wat could i get from making one. i know im to beginer to make one rite now.

    3. what exactly does c# do. is it just another form of c++ or wat. wat does it do?

    4. what language is the best for making a game from scratch kinda like WoW or mabinogi or something similar.

    i cant think of anything else rite know, but if someone could please answer these questions, i would be forever grateful.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    1) To make a game you don't necessarily need anything else, depends what kind of game you want to make. DirectX (or OpenGL) is just a graphics framework, it isn't a language; they are used when you want to create more complex (and usually 3D) graphics.

    2) Yes C is a much better choice over C++ to build an operating system. You may have to write a little bit of assembly but the bulk of it can be done in C. As for what an OS does, Wikipedia is a good starting point: http://en.wikipedia.org/wiki/Operating_system

    3) C# is a language with similar syntax to C++, it was originally developed by Microsoft and runs on their .NET framework. Since then some other implementations have been created such as the open source project Mono. It is similar to Java in that some of the low level aspects of programming are taken care of for you, like garbage collection. Also like Java it has a large framework of class libraries that you can take advantage of. One of the strengths of C# is that you can rapidly develop applications in it.

    4) C++, but obviously not all games are as complex as WoW, games can be written in almost any language. The best language can depend on the game.
    OracleGuy

  • Users who have thanked oracleguy for this post:

    saadhamza (05-27-2009)

  • #3
    Regular Coder
    Join Date
    Oct 2008
    Posts
    214
    Thanks
    5
    Thanked 22 Times in 22 Posts
    Here it is:

    1) For making games, C++ *can* be fine alone, but you'll probably need additionnal C++ premade libraries for controlling things like sound, graphics and most of the "advanced" parts of the game. Sure ou can make your own in C/C++ and even assembly, but why reinvent the wheel? Anywhay this stuff is soo complex that most game developpers use premade libraries. Some examples :
    http://www.radgametools.com/miles.htm
    http://en.wikipedia.org/wiki/DirectX

    2) C and C++ are different languages. C is the "ancestor" of C++. C and C++ use mostly the same syntax, but C is now generaly used for low level stuff that need total optimisation. An OS like Windows Vista, Linux, Mac OS is a platform which able applications to "speak" to the hardware. For example when you copy a file over the network, the OS will negotiate the connection to the network, read the files in the clusters of the Hard Disk then send them to the network (it's more than that but you get the idea)... It's soo funny that soo many programmers "newbies" want to do an OS... Doing an OS like DOS was possible with some dedication a decade ago, but something like Windows Vista (or one of it's "friend" or "foe") is quite unreallistic nowdays. Imagine the OS must be able to support mostly all manufacturers of hardware and periphericals. "Making" your own OS based on some Linux "base" distribution is more realistic...

    3) C#, C++ and C are DIFFERENT languages. Sure they share mostly the same syntax but they are different languages.
    http://en.wikipedia.org/wiki/C_Sharp...mming_language)

    4) A game can be made with any programming languages, but modern game like WoW are 99% of the time made in C++. For WoW, I think, all it's data (creatures, loot...) are on Oracle clustered servers (Blizzard was looking for Oracle DBA for multi Terabytes DBs sometime ago). Game developper ID Software released all sources for Quake 3 and lower :
    http://www.idsoftware.com/business/techdownloads/

    OS and game programming are top notch programming fields. Very few programmers are able to do this. See it as how many professionnal baseball players in the world VS amateurs... It's the same with those programming fields.
    Last edited by AlexV; 05-26-2009 at 09:23 PM.

  • Users who have thanked AlexV for this post:

    saadhamza (05-27-2009)

  • #4
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts
    umm, wat exactly is Oracle, or oracle clusters, or oracle dba?

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by saadhamza View Post
    umm, wat exactly is Oracle, or oracle clusters, or oracle dba?
    I am guessing you are referring to the database software? It is a database management system and again, Wikipedia is a solid starting point: http://en.wikipedia.org/wiki/Dbms
    OracleGuy

  • Users who have thanked oracleguy for this post:

    saadhamza (05-27-2009)

  • #6
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts
    i would use Wikipedia, but a lot of the vocabulary i'm not familiar with ^.^

  • #7
    Regular Coder
    Join Date
    Oct 2008
    Posts
    214
    Thanks
    5
    Thanked 22 Times in 22 Posts
    Yeah Oracle is a database system. One of the most expensive one also...

    Oracle clusters are many database servers plugged together in "grapes" which share the work while behaving as a single computer... See:
    http://en.wikipedia.org/wiki/Cluster_(computing)

    DBA is a job title (Database administrator). A DBS would among other thing setup the servers tweak them, optimise queries and ensure security...

  • Users who have thanked AlexV for this post:

    saadhamza (05-27-2009)

  • #8
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts
    so its kinda like alot of computers wired together to make a supercomputer of sorts? correct me if im wrong.
    but, is oracle something u can take classes on and learn?

    also, if i were going ot make a game like WoW with my own graphics with c++, how would i put the graphics in? is that were the active X thing comes in?

  • #9
    Regular Coder
    Join Date
    Oct 2008
    Posts
    214
    Thanks
    5
    Thanked 22 Times in 22 Posts
    so its kinda like alot of computers wired together to make a supercomputer of sorts? correct me if im wrong.
    Yes, something like that.

    is oracle something u can take classes on and learn?
    Yes. Oracle use PL/SQL for it's database queries. Oracle extended SQL with some proprietary stuff, but it's usually used in very specific situation. More info on SQL here :
    http://en.wikipedia.org/wiki/Sql

    also, if i were going ot make a game like WoW with my own graphics with c++, how would i put the graphics in? is that were the active X thing comes in?
    How you will display graphics greatly vary depending on which C++ compiler (probably MS Visual Studio) and version you use.

    For advanced graphics like 3D you should use a library like DirecX (not the same as ActiveX). Using a library will ease your task since the low level stuff ("talking" to hardware) is already done. But it's still a very challenging task...

  • Users who have thanked AlexV for this post:

    saadhamza (05-27-2009)

  • #10
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts
    atm, im using code::block, and visual studios express.

    and, yea i meant direct X =D

  • #11
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by saadhamza View Post
    so its kinda like alot of computers wired together to make a supercomputer of sorts?
    That would be a cluster, a cluster doesn't necessarily have to be running Oracle, there are lots of server applications that can be clustered.
    OracleGuy

  • #12
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts
    so could u tell me about the display graphics. how exactly does that work?

  • #13
    Regular Coder
    Join Date
    Oct 2008
    Posts
    214
    Thanks
    5
    Thanked 22 Times in 22 Posts
    I'm not well versed on 3D games programming, but you'll need the character/object/environment meshes (skeletons). Meshes are made with 3D programs like 3ds Max. Then you'll need textures for all these "objects". Once you have all that you can include them in your project for display via a library like DirectX. Can't be of much more help.

    Starting with 3D games for learnin is a bit too overkill IMHO. You should start with something more la Warcraft II with no 3D.

  • #14
    New Coder
    Join Date
    May 2009
    Posts
    28
    Thanks
    9
    Thanked 0 Times in 0 Posts
    actually, i think i should start with hello world ^.^

    i really suk at this stuff. im gonna buy some books for this. wich ones should i get?

    and also, do any of u know where i can learn sad script?

  • #15
    Regular Coder
    Join Date
    Oct 2008
    Posts
    214
    Thanks
    5
    Thanked 22 Times in 22 Posts
    For books it depends on the language you want to start and even compiler...

    Book are outdated quite fast nowdays, try to get a more general book that is not bound to a language in particular. Something like an introduction to object oriented programming book that use pseudo code in it's example will "age" well...

    Never heard of "sad script".


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •