-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rackover
committed
Jun 22, 2018
1 parent
97bbe8e
commit 7363a84
Showing
6 changed files
with
635 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
local celltypes = require('celltypes') | ||
|
||
local cellinfos = { | ||
[celltypes.sand] = { letter = ".", color = {0.8, 0.8, 0.3}, solid=false }, | ||
[celltypes.dirt] = { letter = ',', color = {0.6, 0.4, 0.4}, solid=false }, | ||
local cellinfo = { | ||
[celltypes.dirt] = { letter = ".", color = {0.8, 0.8, 0.3}, solid=false }, | ||
[celltypes.forest] = { letter = '¥', color = {0.5, 0.8, 0}, solid=false }, | ||
[celltypes.mountain] = { letter = 'M', color = {0.4, 0.4, 0.4}, solid=true }, | ||
[celltypes.water] = { letter = 'O', color = {0.5, 0.6, 0.8}, solid=true } | ||
[celltypes.water] = { letter = '~', color = {0.5, 0.6, 0.8}, solid=true }, | ||
|
||
|
||
[celltypes.mud] = { letter = ',', color = {0.5, 0.6, 0.8}, solid=false }, | ||
[celltypes.grass] = { letter = ':', color = {0.2, 0.6, 0.3}, solid=false }, | ||
[celltypes.rock] = { letter = '-', color = {0.3, 0.3, 0.3}, solid=false }, | ||
[celltypes.sand] = { letter = '_', color = {0.5, 0.6, 0.8}, solid=true }, | ||
|
||
[celltypes.grove] = { letter = '♣', color = {0.5, 0.6, 0.8}, solid=true }, | ||
[celltypes.pine] = { letter = '¥', color = {0.5, 0.6, 0.8}, solid=true }, | ||
[celltypes.swamp] = { letter = ';', color = {0.5, 0.6, 0.8}, solid=true }, | ||
|
||
[celltypes.peak] = { letter = '△', color = {0.5, 0.6, 0.8}, solid=true }, | ||
[celltypes.icepeak] = { letter = '^', color = {0.5, 0.6, 0.8}, solid=true }, | ||
|
||
[celltypes.deepwater] = { letter = 'u', color = {0.5, 0.6, 0.8}, solid=true }, | ||
} | ||
|
||
return cellinfos | ||
return cellinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
local celltypes = { | ||
sand=0, | ||
dirt=1, | ||
forest=2, | ||
mountain=3, | ||
water=4 | ||
forest=3, | ||
mountain=7, | ||
water=15, | ||
|
||
|
||
mud=2, | ||
grass=4, | ||
rock=8, | ||
sand=16, | ||
|
||
grove=6, | ||
pine=10, | ||
swamp=18, | ||
|
||
peak=14, | ||
icepeak=22, | ||
|
||
deepwater=30 | ||
} | ||
|
||
function celltypes:isPrimary(celltype) | ||
if (celltype == self.dirt or | ||
celltype == self.mountain or | ||
celltype == self.forest or | ||
celltype == self.water) then | ||
return true | ||
end | ||
return false | ||
end | ||
|
||
return celltypes |
Oops, something went wrong.