very basic worldgen
This commit is contained in:
parent
7ac86cbc11
commit
f3b8d44034
3 changed files with 218 additions and 19 deletions
|
@ -7,7 +7,7 @@ pub mod worldgen;
|
|||
pub fn draw(state: &crate::State, _engine: &comfy::EngineContext<'_>) {
|
||||
draw_circle(vec2(0.0, 0.0), 0.5, GREEN, 0);
|
||||
for (coords, tile) in state.overworld.iter_tiles() {
|
||||
for (i, texture) in tile.textures.iter().rev().enumerate() {
|
||||
for (i, texture) in tile.textures().iter().rev().enumerate() {
|
||||
let i = i as i32;
|
||||
draw_sprite(
|
||||
*texture,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue