GithubHelp home page GithubHelp logo

networkplayground's Introduction

networkplayground

Messing around with some networking c++ code from this book

To get running on a mac, you'll need the following installed.

  • cmake
  • sdl2
  • sdl2_image

The easiest way on a mac to do so is brew install cmake sdl2 sdl_image

networkplayground's People

Contributors

notbaab avatar

Stargazers

JaredYeah avatar

Watchers

James Cloos avatar  avatar

networkplayground's Issues

Exiting the client causes a crash

When you exit the client, you get a error message about it crashing. I'm pretty sure it's because the main thread isn't tell the child threads to exit.

Refactor into sub libraries

Currently, there is just three libraries, the shared one, client and server. Ideally it would be nice to be able to have sub libraries for things like networking, logging, gameplay etc. Then just link them at compile time. Makes unit testing way easier

Wireshark Plugin For Network Bugs

There are currently a ton of print statements and it's not way to debug a networked game. Wireshark is awful but it is the easiest way to get real time analysis on the packet data. It will also force some documentation of the protocol

Static object support

Get the ability to place static objects in the world, maybe through a simple map file. Attributes of a static object would be

  • Sprite
  • Size
  • collide or not

The sprite should be sized to the size given. Or maybe the other way around, I'm not sure. They need to inform each other some way though

Handle multiple clients

Currently PlayerClient assumes a single client. Need to start handling a remote client player.

Console support

Using linenoise, create a simple console for issuing debugging commands. Some simple commands would be

Spawn a minion

Have a basic gameplay mechanic of being able to spawn a minion that the player can control

Better Logger

A logger should have

  • a timestamp
  • a level
  • file and line number
  • optional colors

Basic minion AI

Have a simple AI for a minion that does the following

  • Pathfinding around obstacles
  • Simple shooting when close enough

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.