Future Calling - 25.2.24
I will now be adding a single article per week of development. I will update this article as progress happens.
Lighting and shadows now working properly. Could still do with some visual improvements such as softer shadows.
Added an update system for sprites, where you can pass a closure for your specific per sprite logic.
let update_logic = |sprite: &mut GameSprite| {
println!("Updating sprite at position ({}, {})", sprite.position.x, sprite.position.y);
sprite.rotation = sprite.rotation + 0.05;
// Add custom logic here
};
spr1.set_update(Some(Box::new(update_logic)));
Added soft-shadows.
Normal map support added.
It is now possible to assign a normal map to any tile, for improved lighting.
And below with two lights.
Small Gif
Future Editor
Started work on "Future Editor" - A GTK4 editor for editing future maps/adding sprites/logic. It is coded entirely in rust using GTK4-RS.
I have got the engine integrated into the editor. Here you can see a empty grid, which is in-fact the map, without any tiles added.
Editor Progress.
Editor Progress
Subscribe to my newsletter
Read articles from Anthony Wells directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Anthony Wells
Anthony Wells
I am a developer from England, who has been coding since the early days of the Amiga. I generally work on games and custom engines.