Jump to content

c++, making an online game?

- - - - -

  • Please log in to reply
16 replies to this topic

#1
even821

even821

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
i wanna make a game playabel over the internet, but i do not need what to to, i asume i would have to have some sort of a server? and would it be possible to make this sort of thing using c++/sdl?

---------- Post added at 03:07 AM ---------- Previous post was at 03:06 AM ----------

btw i do not wanna make an mmorpg or something of that size. i just want to be able to play for exampel player over the internet

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It depends on how you want to do it. The Boost library has networking libraries you can use for establishing connections. You do not have to have a "client" and "server", but you do need to have one of the running programs fulfilling the role of a "server" and one or more fulfilling the role of a "client". As an example, OpenArena uses the exact same program to host a game as it uses to connect to a game or play the single-player game.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
even821

even821

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
so i can make a online game using the boost library? is that compatible with sdl then? and can you link me to a tutorial on it, that would be greatly appreciated.

#4
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
boost is behind the scenes thing, you would use that for network part, SDL for display and maybe a mix of boost and std for logic. You can start with boost here.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.

#5
even821

even821

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
ok thanks :D

#6
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
In case you get in a similar situation as I am with Boost (can't get it compiled) you can also program using Berkeley Sockets (or Winsock for Windows).
Latinamne loqueris?

#7
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
I thought "online" means you use your web browser to go to a page, where you do whatever needs to be done; I'm just a little confused about what browsers have to do with C/C++ and SDL, since in HTML or flash you don't need to worry about that stuff.

#8
even821

even821

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
an online game is a game you can play with your friends over the internet, doesnt have to do anything with the web browser, not to my knowledge anyways.

#9
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Okay; that's fine too. It's just I was a little confused. :)

#10
even821

even821

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
might be that i am the one that is wrong thought, oh well :)

#11
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Evan, your thinking corresponded with what I had in mind.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#12
even821

even821

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
hmm okay, good to know i have a somewhat right way of thinking when it comes to programming lol




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users