vurtun /
nuklear
A single-header ANSI C gui library
Loading repository data…
sumo-digital-academy / repository
A single-header C++ library for making simple 2D games
Please note that we have changed the way that our co-ordinate system works in PlayBuffer in this release! The Y axis now goes up the screen and rotation angles start at 0 degrees on the x-axis and rotate anti-clockwise. We've done this to better fit with traditional mathematical conventions taught in universities and schools outside of computer graphics.
Learning C++ is often seen as dry and difficult, partly because the examples used in teaching are usually text-based and uninspiring. PlayBuffer was designed to try and limit the demands of learning C++ while increasing the payoff for the learner by allowing them to make simple, 2D games.
The PlayBuffer is a beginner's game-development framework, and is intended to be used as a temporary "scaffold" to be discarded once the learner has outgrown it. The library code is simple enough that that a learner could reasonably expect to understand how most of it works for themselves before moving on to a more sophisticated framework. It uses the simplest native Windows libraries (no DirectX/OpenGl/Vulcan) and implements sprite rendering in software, making it an interesting platform for studying basic C++ code optimisation too!
Copyright 2020 Sumo Digital Limited. Spyder™ is a trade mark of Sumo Group plc.
The PlayBuffer code is made available under the Creative Commons Attribution-No Derivatives 4.0 International Public License: https://creativecommons.org/licenses/by-nd/4.0/legalcode.
The PlayBuffer tutorial assets are derived from the original Spyder™ game by Sumo Digital Ltd (© 2020 Sumo Digital). Permission is granted to use these resources for educational use only.
The Sheffield Women in Computer Science (SWiCS) Society helped to organise some of the first workshops using the PlayBuffer and students from those workshops have helped to deliver an online taster session aimed at A-Level students.
It's traditional for programming tutorials to begin by displaying "Hello World!" to the screen. This project is a useful starting point for any PlayBuffer application, but also includes a pdf manual which will take you from Hello World to your first complete shoot-'em-up game!
The other branches on the PlayBuffer repo are all different projects branched from the basic Hello World example. You can select a different branch from the dropdown in the top left corner of the main project page (where it currently says HelloWorld).
If you find any problems with the PlayBuffer framework then please report them to academy@sumo-digital.com
Can I make a game using the PlayBuffer and sell/distribute the executable?
Yes. Provided that you're not selling or distributing anything containing the tutorial assets or the PlayBuffer source code then what you do with your executables is entirely your business!
Can I modify the PlayBuffer code and sell/distribute it?
No. This would be prohibited by the licence as a derivative work. Obviously we're not keen on someone else selling something we're giving away for free, but we also don't want dozens of variations of PlayBuffer out there. It would be very easy to expand the PlayBuffer and make it more advanced, but that's not the point of PlayBuffer: we want it to stay simple for newcomers. If you've outgrown it then there are lots of more sophisticated frameworks out there for you to move on to.
Can I modify the PlayBuffer code in my game so long as I don't release the source code?
Yes.
Selected from shared topics, language and repository description—not editorial ratings.
vurtun /
A single-header ANSI C gui library
Immediate-Mode-UI /
A single-header ANSI C immediate mode cross-platform GUI library
p-ranav /
A curated list of awesome header-only C++ libraries
aantron /
C++ compile-time enum to string, iteration, in a single header file
fungos /
cr.h: A Simple C Hot Reload Header-only Library
HandmadeMath /
A simple math library for games and computer graphics. Compatible with both C and C++. Public domain and easy to modify.