Thread: Starting a simple game server for tile based game

  1. #1
    Registered User
    Join Date
    Jan 2017
    Posts
    1

    Question Starting a simple game server for tile based game

    Hi, I'm not sure if this should go in the Networking forum, because I would like to use SDL Net.

    After a little studying, I completed a simple tile based engine project. I simply have a tilemap load on screen and I can move a rectangle (player) around from square to square. Nothing fancy, just a tile engine without animation and etc.

    I would like to try a little networking, so I can round out what I need to study in the future.

    My goal is to create a server with/without a user interface, that my tile engine client can connect to. No passwords, no nothing, just a server that is listening. Once the player connects, that server mediates collision. It lets the player appear in an open space and can move around. Collision detection is by the server, so when another player connects, they can also move around. I would say, the server would allow maybe a dozen or so players to connect. The key point is, that I would like to learn to get this going. I never worked with networking and I never tried SDL Net. I have not found any tutorials for this, so I was hoping someone here that programs in C++ might be able to point me in the right direction.

    The overall goal, is a networked roguelike game. More like tilebased game, with roguleike elements.

    If you can help me get started, please recommend what you think I should do to start developing the server.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Well the thing to do is read and understand Beej's Guide to Network Programming

    SDL Net is a fairly thin wrapper around the basic networking API. Once you've figured that out, the rest should be simple enough.

    Oh, and don't forget to try the examples.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Looking for a C Developer to build a simple web based game.
    By OgNasty in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-18-2015, 10:22 AM
  2. Sprite/tile-based game
    By drrcknlsn in forum Game Programming
    Replies: 5
    Last Post: 02-11-2008, 11:20 AM
  3. 2D Tile Based Game
    By cboard_member in forum Game Programming
    Replies: 6
    Last Post: 07-29-2005, 01:04 AM
  4. Tile Based game map
    By unanimous in forum Game Programming
    Replies: 2
    Last Post: 07-13-2003, 08:07 PM
  5. Tile based game in opengl
    By Unregistered in forum Game Programming
    Replies: 1
    Last Post: 07-16-2002, 02:45 PM

Tags for this Thread