hatcat / standardasteroids Goto Github PK
View Code? Open in Web Editor NEWAsteroids, written using the proposed 2D API for C++
License: GNU General Public License v3.0
Asteroids, written using the proposed 2D API for C++
License: GNU General Public License v3.0
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();
}
You can not die.. that makes playing less fun :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.