Grassy Working Commit

This commit is contained in:
ExeVirus 2021-02-17 21:24:50 -05:00
parent 0258403546
commit 4c148857ad
13 changed files with 17 additions and 7 deletions

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 10 KiB

BIN
mods/game/sounds/grassy.ogg Normal file

Binary file not shown.

View 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 B

After

Width:  |  Height:  |  Size: 67 B