I may have used ai for some of the proc gen..

This commit is contained in:
2025-03-01 22:52:34 -06:00
parent 8c0601c7aa
commit 2be653504a
9 changed files with 599 additions and 62 deletions

View File

@@ -21,6 +21,7 @@ TileType :: enum u8 {
ResourceType :: enum u8 {
NOTHING,
TREE,
BONE,
}
InteractionType :: enum u8 {
@@ -29,7 +30,9 @@ InteractionType :: enum u8 {
ENEMY,
}
nothing_tile := Tile {
// Premade Tiles
nothing_tile := Tile { // The most common tile, makes up the majority of the world.
type = .NOTHING,
tilemap_pos = {0,0},
color = {0,0,0,255},
@@ -37,7 +40,7 @@ nothing_tile := Tile {
resource = .NOTHING
}
grass_tile := Tile {
grass_tile := Tile { // Common fauna, more dense in grasslands
type = .FOLIAGE,
tilemap_pos = {5,0},
color = {50,120,25,255},
@@ -45,7 +48,7 @@ grass_tile := Tile {
resource = .NOTHING
}
tree_tile := Tile {
tree_tile := Tile { // Common grassland fauna, dense population in forests
type = .SOLID,
tilemap_pos = {0,1},
color = {10,60,15,255},
@@ -53,7 +56,15 @@ tree_tile := Tile {
interaction = .RESOURCE,
}
bricks_tile := Tile {
double_tree_tile := Tile { // Only found in forests, densly packed
type = .SOLID,
tilemap_pos = {3,2},
color = {10,60,15,255},
resource = .TREE,
interaction = .RESOURCE,
}
bricks_tile := Tile { // Unused, for now
type = .SOLID,
tilemap_pos = {10,17},
color = {140,30,10,255},
@@ -61,10 +72,50 @@ bricks_tile := Tile {
interaction = .NOTHING,
}
water_tile := Tile {
water_tile := Tile { // Only seen in bodies of water
type = .WATER,
tilemap_pos = {19,1},
color = {5,10,70,255},
resource = .NOTHING,
interaction = .NOTHING,
}
shallow_water_tile := Tile { // Only seen in bodies of water
type = .WATER,
tilemap_pos = {19,1},
color = {5,40,80,255},
resource = .NOTHING,
interaction = .NOTHING,
}
cactus_tile := Tile { // Common desert fauna
type = .SOLID,
tilemap_pos = {6,1},
color = {5,40,0,255},
resource = .NOTHING,
interaction = .NOTHING,
}
double_cactus_tile := Tile { // Sparse desert fauna
type = .SOLID,
tilemap_pos = {7,1},
color = {5,40,0,255},
resource = .NOTHING,
interaction = .NOTHING,
}
cow_skull_tile := Tile { // Rare chance of spawning in a desert
type = .SOLID,
tilemap_pos = {1,15},
color = {200,200,200,255},
resource = .BONE,
interaction = .RESOURCE,
}
dead_bush_tile := Tile { // Common desert fauna
type = .FOLIAGE,
tilemap_pos = {6,2},
color = {145,100,30,255},
interaction = .NOTHING,
resource = .NOTHING
}