First break: I have an ECS and a coffee

I did start late, but I think I have got enough progress in just three hours. Instead of jumping on the game directly I started working on my existing engine, and began implementing an Entity Component System that mimics the Unity API. Pretty damn good!!

~~~java scene.forEachEntityWithComponent(SpriteComponent.class, e -> e.forEachComponentOfType(SpriteComponent.class, c -> { final Sprite sprite = c.sprite; final Color tint = c.tint; final float opacity = c.opacity; final int layer = c.layer; final Transform transform = e.transformComponent.getWorldTransform();

        batch.render(sprite, transform, tint, opacity, layer);
    }));

~~~

There are still some small imperfections with it, like the Collision system is out of sync with the Transform in the scene, off by a few pixel units, but it's working!!

LD #38 game plan

Engine needs update, scenes and systems, finish that off by tonight.

  • [x] TransformComponent
  • [x] SpriteComponent
  • [x] CollisionComponent
  • [x] PolygonRenderComponent # For drawing polygons, debugging

Update system is already implemented, work on rendering system and collision system. Most of the base code is already present.

  • [x] CollisionSystem

Should start by simply finding all the entities in the scene that have a CollisionComponent, add them to the dynamic tree or whatever is selected as the broadphase. Retrieve collisions and report them.

  • [] RenderingSystem

Should start rendering the scene, by selecting the renderers automatically. The process is binding a Empty texture first Find all sprites, sort them into batches and execute the batches Mesh renderings, Camera components will come in next engine update

Release the engine with a new version.

Plan for tomorrow, i.e., 22/4/2017

Work on the game, think up on the idea. Maybe uhm.. not sure

Can I leave some site feedback here?

I really like the formatting options, especially that now you have enabled Markdown and strike off ~WordPress~, but one thing:

  1. I don't know what syntax highlighter you're using but it is not highlighting some keywords in code snippets of Java language.

That's not really necessary, I know that you are very busy making this run smoothly, but it would be great to have. Thanks a lot for this, I'm enjoying a lot, and I hope everyone else is enjoying too.