start with zero turtles
This commit is contained in:
parent
3f21afadb2
commit
6b81c76915
@ -287,12 +287,8 @@ pub struct TurtleWorld {
|
|||||||
impl TurtleWorld {
|
impl TurtleWorld {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let mut default_turtle = Turtle::default();
|
|
||||||
default_turtle.turtle_id = 0;
|
|
||||||
default_turtle.tween_controller =
|
|
||||||
TweenController::new(CommandQueue::new(), AnimationSpeed::default());
|
|
||||||
Self {
|
Self {
|
||||||
turtles: vec![default_turtle], // Start with one default turtle
|
turtles: vec![], // Start with no turtles
|
||||||
camera: Camera2D {
|
camera: Camera2D {
|
||||||
zoom: vec2(1.0 / screen_width() * 2.0, 1.0 / screen_height() * 2.0),
|
zoom: vec2(1.0 / screen_width() * 2.0, 1.0 / screen_height() * 2.0),
|
||||||
target: vec2(0.0, 0.0),
|
target: vec2(0.0, 0.0),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user