Add a renderer system with temp assets #60

Closed
CoCo_Sol wants to merge 40 commits from renderer into main
Showing only changes of commit 4633db9609 - Show all commits

View file

@ -252,7 +252,7 @@ impl<T: Number> HexPosition<T> {
/// use bevy::math::Vec2; /// use bevy::math::Vec2;
/// ///
/// let position = HexPosition(1, 0); /// let position = HexPosition(1, 0);
/// assert_eq!(position.to_pixel_coordinates(), Vec2::new(3f32.sqrt(), 0.0)); /// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0).into());
/// ``` /// ```
pub fn to_pixel_coordinates(&self) -> Vec2 { pub fn to_pixel_coordinates(&self) -> Vec2 {
Vec2::new( Vec2::new(