Leonid Pershin 08381703f7
CI / build-test (push) Successful in 1m19s
Add WorldCenter property to CameraState for effective camera positioning
Enhanced the CameraState struct with a new WorldCenter property that calculates the effective position of the camera after bounds-clamping. This property is intended to be used for zoom-to-cursor functionality, ensuring that the repositioning aligns with what is rendered.

Added unit tests to verify that WorldCenter reflects the unclamped camera position and correctly accounts for bounds clamping, distinguishing it from the raw camera position.

Tests: WorldCenter_EqualsUnclampedCameraPosition, WorldCenter_ReflectsBoundsClamp_UnlikeRawPosition.
2026-06-13 05:21:24 +03:00
2026-06-10 23:50:05 +00:00
2026-06-10 23:50:05 +00:00

mrgameeng

Cross-platform 2D game engine built on MonoGame 3.8.4 (DesktopGL) and Friflo.Engine.ECS — ECS-first, .NET 8, C#.

Developer documentation (Russian): docs/architecture.md, docs/roadmap.md.

Showcase: the LittleSim game — a god-sim built on this engine (vendored there as the engine/ submodule) that demonstrates every engine feature.

License

MIT — see LICENSE.

S
Description
No description provided
Readme MIT
1 MiB
Languages
C# 100%