#
https://ruby.social/users/gd/statuses/113760566165706252
Thanks :)
Personal Blog about anything - mostly programming, cooking and random thoughts
https://ruby.social/users/gd/statuses/113760566165706252
Thanks :)
https://pouet.chapril.org/@sgued/113760509761590061
Thanks! That is what I was looking for.
I'm missing the vocabulary for googling this.
Is there a better way to write this? I want to filter a vector of enums to elements that match one specific pattern.
.filter(|r| match r.kind {
RoomKind::BedRoom(_) => true,
_ => false
})
#gamedev progress:
#gamedev progress:
Slow progress in the last couple of sessions. I've started to implement employees. Employees work at rooms/stations whenever a guest wants to interact with them (e.g. booking a room). I'm not yet 100% happy with the implementation (blaming my #rust skills).
Additionally implemented a hunger+restaurant prototype.
#gamedev progress:
#gamedev progress:
Wrote function to find all tiles which are reachable from another one. Rooms have now a property to define how they connect to their neighbors.
#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.