#
#gamedev progress
Fixed my 2D camera to correctly transform form screen coords to world coords. Added a debug indicator to show the tile of the mouse.
Personal Blog about anything - mostly programming, cooking and random thoughts
#gamedev progress
Fixed my 2D camera to correctly transform form screen coords to world coords. Added a debug indicator to show the tile of the mouse.
Test attachment
Edit: This resolves https://github.com/H4kor/owl-blogs/issues/26
It's always a cool feeling for me to find a bug in an #opensource library/framework I use. It's extra cool if can track it down and fix it.
For me this is also a signal that I reached a certain seniority as a developer. At the start of my career 100% of issues with other people's code was "holding it wrong". But now I'm tackling harder problems and more often reach the "rough edges" that others haven't cared about before.
#gamedev progress:
I'm in the mood for game development again. This is the progress after the second evening on a yet unnamed game.
Not much yet just:
#TIL Set your Content-Type header correctly when sending #ActivityPub messages. #Lemmy will 404 on any inbox if the header is not correct (actually just if it doesn't start with application/
https://lemmy.zip/post/25528333
Burning the planet faster than Zuck has ever seen.
https://programming.dev/post/21133764
Stop actively looking for "things to program". Spend time in other hobbies than programming and eventually you will stumble over problems you can solve with programming.
If you want to build games, maybe build clones of games you like, but start simple! Build Tetris, not World of Warcraft.
https://programming.dev/post/21199936
I've tried this quickly and you can use pango markup to change the text color in the label.
Here is a snippet with a label and a button that changes the text color from blue to red.
let label = Label::builder().label("<span foreground=\"blue\">Blue text</span>").build();
label.set_use_markup(true);
tool_box.append(&label.clone());
let button = Button::builder().label("Change").build();
button.connect_clicked(move |button| {
println!("Moved");
label.set_label("<span foreground=\"red\">Red text</span>");
});
tool_box.append(&button.clone());
I've finally found the energy to implement a simple cutout export for #DungeonPlanner.
With this feature done I finally bumped the version to 0.1.0 :)
I've been using it without wishing for any new features, so don't expect any bigger changes in the near future.
https://github.com/H4kor/dungeon-planner/releases/tag/v0.1.0
I've implemented a search function for owl-blogs (and therefore my blog).