• Lucid Dreaming - Dream Views




    Results 1 to 16 of 16

    Hybrid View

    1. #1
      Gentlemen. Ladies. slayer's Avatar
      Join Date
      Mar 2007
      Gender
      Location
      Right here... Reputation: 9999
      Posts
      4,902
      Likes
      473
      DJ Entries
      4

      C++ for sprite based game?

      Alright, so I just found out about this thing called XNA Game Studio. It's used to make community games for the Xbox. It comes with a beginners tutorial and such, but I think it would help to learn some C++ or C# to help make the game I want.

      Where is a good place to learn C++ or C# to make a sprite based side scrolling game? What kind of books should I look out for?

      I want something specifically for making games. Something that has easy to follow beginner tutorials.

    2. #2
      Motion Personified Alpha Achievements:
      Referrer Bronze 1000 Hall Points Veteran First Class
      mrdeano's Avatar
      Join Date
      Apr 2009
      Gender
      Location
      United Kingdom
      Posts
      1,053
      Likes
      58
      DJ Entries
      1
      http://www.youtube.com/watch?v=tyVhn...eature=channel

      Start there and follow every video. By the end of it you will be a Wizz.
      Too bad there's like 60+ videos all around 9 minutes long.
      Last edited by mrdeano; 08-31-2009 at 09:59 PM.

    3. #3
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935

    4. #4
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by slayer View Post
      Where is a good place to learn C++ or C# to make a sprite based side scrolling game?
      C++ & C# are two very different languages
      It grates when you bung them together like that

      I mean, C/C++ I can understand (as the two are 80% the same syntax, and while different languages both will probably compile equivalent code down to the same assembly

      but C# isn't even meant to produce binaries
      it's meant to produce byte-code

      Just thought I'd mention it
      (\_ _/)
      (='.'=)
      (")_(")

    5. #5
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Quote Originally Posted by Ynot View Post
      but C# isn't even meant to produce binaries
      it's meant to produce byte-code
      C# produces binaries, I've written many a dll for C# programs running our servers.

    6. #6
      khh
      khh is offline
      Remember Achievements:
      1000 Hall Points Veteran First Class
      khh's Avatar
      Join Date
      Jun 2009
      Gender
      Location
      Norway
      Posts
      2,482
      Likes
      1309
      Quote Originally Posted by ninja9578 View Post
      C# produces binaries, I've written many a dll for C# programs running our servers.
      To quote wikipedia
      "By design, C# is the programming language that most directly reflects the underlying Common Language Infrastructure (CLI). Most of its intrinsic types correspond to value-types implemented by the CLI framework. However, the language specification does not state the code generation requirements of the compiler: that is, it does not state that a C# compiler must target a Common Language Runtime, or generate Common Intermediate Language (CIL), or generate any other specific format. Theoretically, a C# compiler could generate machine code like traditional compilers of C++ or FORTRAN. In practice, all existing compiler implementations target CIL."
      April Ryan is my friend,
      Every sorrow she can mend.
      When i visit her dark realm,
      Does it simply overwhelm.

    7. #7
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by ninja9578 View Post
      C# produces binaries, I've written many a dll for C# programs running our servers.
      Didn't say "couldn't"
      said "not meant to"

      the C# compiler for Linux can compile to binary,
      but if you want to do that, why the hell are you using C#?
      better to use a more mature language, with better optimized compilers, greater library of code available, and wider platform support
      (\_ _/)
      (='.'=)
      (")_(")

    8. #8
      Gentlemen. Ladies. slayer's Avatar
      Join Date
      Mar 2007
      Gender
      Location
      Right here... Reputation: 9999
      Posts
      4,902
      Likes
      473
      DJ Entries
      4
      So I should be using C++? Or should I do the OpenGL like Ninja posted?
      Last edited by slayer; 09-01-2009 at 11:33 PM.

    9. #9
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      OpenGL is a library written in C.

      Use allegro: http://www.allegro.cc

      It has built-in functions for loading images, making GUIs, et al.

    Bookmarks

    Posting Permissions

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