dskfjkdsf

This commit is contained in:
zoe 2022-05-08 17:05:33 +02:00
parent 59ddadb46a
commit 74e9d94977
9 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
source_md5="72b25c45d4743c578ac08e56b209be81"
dest_md5="73042650bec74eec84c50b98d4bafc70"
source_md5="d864960022980c4270042a1ed80b9ac4"
dest_md5="5f766eea69301dc969f05fac899cb4cb"

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@ -1,4 +1,8 @@
extends TileMap
func set_tile_graphics(pos: Vector2, id: int):
set_cell(pos.x,pos.y,0,false,false,false,Vector2(1,2))
var flip = true
set_cell(pos.x,pos.y,0,false,false,false,get_atlas_vec_for_id(id))
func get_atlas_vec_for_id(id: int) -> Vector2:
return Vector2(randi() % 4, id)

View File

@ -9,7 +9,6 @@ position = Vector2( -2, 0 )
mode = 1
tile_set = ExtResource( 1 )
cell_size = Vector2( 32, 16 )
cell_tile_origin = 1
collision_layer = 0
collision_mask = 0
format = 1

View File

@ -11,6 +11,3 @@ func respawn_tilemaps(amount: int):
map.z_index = i
add_child(map)
tilemaps.push_back(map)
func is_tile_in_view(pos: Vector2):
pass

Binary file not shown.

View File

@ -21,7 +21,7 @@ impl World {
for y in 0..self.ysize {
for z in 0..self.zsize {
ret.push(Vector3::new(x as f32, y as f32, z as f32));
self.tiles[x][y][z] = tiles::Tiletypes::Dirt;
self.tiles[x][y][z] = tiles::Tiletypes::Grass;
}
}
}