I am looking for a little game prototypes / code snippets in SWI-Prolog.
The requirement is just:
A game loop, which calls a update every 0.016ms.
A get_keyboard_state like interface, which can get keyboard state (i.e. check a key state up/down).,
A graphics interface, which allow me to draw some squares in the canvas.
Since I have no prior experience for developing graphical interactive applications in Prolog, can anyone give me some guidance ? (code snippets / prototypes would be nice)
Although it’s a bit weak compared to other mature game engines or multimedia libraries, I believe it’s a good starting point. It would be nice if SWI-Prolog can provide SDL bindings.