cleared up gfx + ph storage

This commit is contained in:
2024-01-08 21:22:59 -07:00
parent 823b5d39b8
commit 0b13c7bfa3
8 changed files with 49 additions and 116 deletions
+1 -2
View File
@@ -13,9 +13,8 @@ use std::time;
#[test]
fn test_reach_astar() {
let mut board = init_screen(); //Screen::new(40,40);
let mut world = World::new();
let mut world = World::new(&Point(board.max_x, board.max_y));
world.clear(Point(0, 0));
let mut entities = Entities::new();
let a = Ant::new(0, 0);
+2 -1
View File
@@ -1,6 +1,7 @@
use antf::lib::screen::init_screen;
use antf::lib::world::{World, simulate, render};
use antf::lib::entity::{Entities, FoodGenerator};
use antf::lib::point::Point;
use ncurses::*;
use std::thread::sleep;
@@ -9,7 +10,7 @@ use std::time;
#[test]
fn test_foodgen() {
let mut board = init_screen();
let mut world = World::new();
let mut world = World::new(&Point(board.max_x, board.max_y));
let mut entities = Entities::new();
let fg = FoodGenerator::new();