The resources have to be created at runtime; in fact, the demos shouldn't use "resources" - they should only consist of a bunch of source code files.
Creating entities at runtime is possible, as long as you don't use any external files and you don't dump the content of the entities to a file and load it from there.