#
Combined the Delaunay triangulation with the Bezier curves to create the "walls" of a room. Next step will be figuring out how to create surfaces between curves.
Personal Blog about anything - mostly programming, cooking and random thoughts
Combined the Delaunay triangulation with the Bezier curves to create the "walls" of a room. Next step will be figuring out how to create surfaces between curves.
Result of some recreational graphics programming:
I've just one-shotted an iterator with a lifetime in #rust. Is this what it feels like when the language finally clicks?
#gamedev progress on hotel game:
Not sure if I should be proud or embarrassed about this #rust code :D
// mark building tile
if let Some(mut r) = match game.mouse_action {
MouseAction::BuildGrill => Some(Room::new_grill()),
MouseAction::BuildStairs => Some(Room::new_stairs()),
MouseAction::BuildBedroom => Some(Room::new_bed_room()),
MouseAction::BuildCorridor => Some(Room::new_corridor()),
MouseAction::BuildRestaurant => Some(Room::new_restaurant()),
MouseAction::BuildWineCellar => Some(Room::new_wine_cellar()),
_ => None,
} {
// rendering code
}
Insights from the weekend:
--release.#gamedev progress on unnamed hotel game:
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
})
Guide on how to build a simple ECS in #rust.