Grassy Working Commit
@ -2,7 +2,7 @@
|
||||
![screenshot](screenshot.jpg)
|
||||
## An aMAZEing Minetest game
|
||||
|
||||
## VERSION 0.2
|
||||
## VERSION 0.3
|
||||
|
||||
This is very much a work in progress, technically quite playable though.
|
||||
|
||||
@ -13,4 +13,4 @@ Just escape the maze to "win" and you'll be greeted with a new one to complete!
|
||||
|
||||
1. Implement 4 sizes: Easy, Medium, Hard, Custom (with associated edit boxes for the size) (selectable)
|
||||
|
||||
2. Implement at least 4 default styles with their own music
|
||||
2. Implement at least 5 default styles with their own music, 2 of 5 done
|
||||
|
BIN
menu/header.png
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
menu/icon.png
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
BIN
mods/game/sounds/grassy.ogg
Normal file
@ -17,6 +17,7 @@ minetest.register_node("game:grassy_dirt",
|
||||
minetest.register_node("game:grassy_hedge",
|
||||
{
|
||||
description = "Ground Block",
|
||||
drawtype = "allfaces",
|
||||
tiles = {"grassy_hedge.png"},
|
||||
light_source = 12,
|
||||
})
|
||||
@ -41,14 +42,23 @@ local function map_function(maze, player)
|
||||
local air = minetest.get_content_id("air")
|
||||
|
||||
--Set up the level itself
|
||||
for z=1, width*2 do --z
|
||||
for x=1, height*2 do --x
|
||||
for z=1, width do --z
|
||||
for x=1, height do --x
|
||||
if loc_maze[x][z] == 1 then
|
||||
data[a:index(x, 0, z)] = grass
|
||||
data[a:index(x*2, 0, z*2)] = grass
|
||||
data[a:index(x*2+1, 0, z*2)] = grass
|
||||
data[a:index(x*2+1, 0, z*2+1)] = grass
|
||||
data[a:index(x*2, 0, z*2+1)] = grass
|
||||
else
|
||||
data[a:index(x, 0, z)] = dirt
|
||||
data[a:index(x*2, 0, z*2)] = dirt
|
||||
data[a:index(x*2+1, 0, z*2)] = dirt
|
||||
data[a:index(x*2+1, 0, z*2+1)] = dirt
|
||||
data[a:index(x*2, 0, z*2+1)] = dirt
|
||||
for y=1,4 do
|
||||
data[a:index(x, y, z)] = hedge
|
||||
data[a:index(x*2, y, z*2)] = hedge
|
||||
data[a:index(x*2+1, y, z*2)] = hedge
|
||||
data[a:index(x*2+1, y, z*2+1)] = hedge
|
||||
data[a:index(x*2, y, z*2+1)] = hedge
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 36 KiB |
BIN
mods/game/textures/grassy.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
mods/game/textures/grassy_dirt.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
mods/game/textures/grassy_grass.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
mods/game/textures/grassy_hedge.png
Normal file
After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 67 B |