Giter Site home page Giter Site logo

beginning-cpp-game-programming's Introduction

Beginning C++ Game Programming

By Packt Publishing

This is the code repository for Beginning C++ Game Programming, published by Packt Publishing. It contains all the required files to run the code.

This book is for those who have no C++ programming knowledge whatsoever and want to learn to build games or just use games as a more engaging way to learn C++. If you have aspirations of one day publishing a game on Steam or just want to have a load of fun while learning C++, then this book was written for you.

Software required:- Visual Studio for Windows and Linux Programming environment for Linux

Hardware specifications Windows 7 Service Pack 1, Windows 8 or Windows 10 1.6 GHz or faster processor. 1 GB of RAM (for x86) or 2 GB of RAM (for x64) 15 GB of available hard disk space. 5400 RPM hard disk drive. DirectX 9-capable video card that runs at 1024 x 768 or higher display resolution.

Related Books

beginning-cpp-game-programming's People

Contributors

packt-itservice avatar rashilspackt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

beginning-cpp-game-programming's Issues

window is not drawn without polling event loop

I'm working through the book using SFML 2.5.1 on a Mac.
The window would not draw using the provided code from Chapter 1.
I had to add a window event polling loop to the game loop in order for the window to be drawn.

I copied the following from the SFML 2.5 macOS example, replacing the "Handle the players' input" block from the provided code:
`
// Process events
Event event;
while (window.pollEvent(event))
{
// Close window: exit
if (event.type == Event::Closed) {
window.close();
}

        // Escape pressed: exit
        if (event.type == Event::KeyPressed && event.key.code == Keyboard::Escape) {
            window.close();
        }
    }

`

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.