GithubHelp home page GithubHelp logo

standardasteroids's People

Contributors

hatcat avatar

Stargazers

 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

standardasteroids's Issues

main() is missing

Hi,

I managed to compile (except for input so far), the reference implementation and asteroids on my mac using X11. However, the main() function you showed is missing so far from the codebase. I wonder if you reused the main() provided in the N3888/P0267 reference implementation and modified that one to accommodate your game?

X11 Input will require some modification to the reference implementation of N3888 to also accept keyboard events ( hacking around so far, might require a lot more to make it useful beyond asteroids). However, it is like being transported 25 years back in time, which might have been the last time I actually wrote Xlib programs (mostly toy examples then).

Here is my main so far, where at lest the asteroids are moving around:

#include "io2d.h"
#include "Game.h"
#include "Constants.h"
int main() {
using namespace asteroids;
using namespace std::experimental::io2d;
auto ds = make_display_surface(static_cast(playing_field_width), static_cast(playing_field_height), format::argb32, scaling::letterbox, refresh_rate::as_fast_as_possible, 30.0);
game thegame;
ds.draw_callback(&{thegame.update(surface);});
return ds.begin_show();
}

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.