Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Support headless mode (for testing) #103

Open
darkf opened this issue Nov 28, 2017 · 0 comments
Open

Support headless mode (for testing) #103

darkf opened this issue Nov 28, 2017 · 0 comments

Comments

@darkf
Copy link
Owner

darkf commented Nov 28, 2017

DarkFO should be able to run headless -- that is, without an actual renderer/window.
This could be used in the browser as well (and it probably will at first), but also in headless environments such as node.js (so that we can run automated tests on the command line.)

This involves either having a NullRenderer or just overriding heart.draw and whatever heart does to the canvas (since there will be none) similar to how the WebGLRenderer works.

Essentially we strip out the canvases and possibly image loading as well (depending on if we want to test image info and animations and such.)

If we want to run full headless (e.g. node.js), we'll either need to strip out the DOM as well (this means the whole ui module, and audio), or use a DOM library.

The game simulation should continue to run despite not receiving real input and not rendering.

Testing will be covered in a separate issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant