-
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.
Performance improvements to map rendering.
- Loading branch information
Trey Tomes
committed
Jan 2, 2024
1 parent
333db60
commit abe8e04
Showing
8 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
μ-hack is a traditional roguelike written in MiniScript. | ||
|
||
# References | ||
|
||
- [Git](https://github.com/treytomes/micro-hack) | ||
- [itch.io](https://treytomes.itch.io/micro-hack) | ||
- The web viewer is a little buggy at the moment, but the OS-specific downloads have been working great. | ||
- [MiniScript](https://miniscript.org/) | ||
- [Mini Micro](https://miniscript.org/MiniMicro/) |
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
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
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,31 +1,57 @@ | ||
// Colored tiles start at index 24 * 16 + 0. | ||
|
||
makeFloor = function() | ||
return tile.make(".", Color.brown.dark, Color.black, false, false).setName("floor") | ||
// return tile.make(".", Color.brown.dark, Color.black, false, false).setName("floor") | ||
return tile.make(24 * 16 + 0, Color.white, Color.white, false, false). | ||
setName("floor"). | ||
setMapColor(Color.brown.dark) | ||
end function | ||
|
||
makeGrass = function() | ||
return tile.make(".", Color.green.dark, Color.green.darker, false, false).setName("grass") | ||
end function | ||
|
||
makeMountain = function() | ||
return tile.make("#", Color.gray.darker.darker, Color.gray.dark.dark, true, true).setName("mountain") | ||
// return tile.make(".", Color.green.dark, Color.green.darker, false, false).setName("grass") | ||
return tile.make(24 * 16 + 1, Color.white, Color.white, false, false). | ||
setName("grass"). | ||
setMapColor(Color.green.dark) | ||
end function | ||
|
||
makeStairsUp = function() | ||
return tile.make("<", Color.brown.dark, Color.black, false, false).setName("stairs up") | ||
makeHidden = function() | ||
// return tile.make("#", Color.black, Color.gray, true, true).setName("hidden") | ||
return tile.make(24 * 16 + 2, Color.white, Color.white, true, true). | ||
setName("hidden"). | ||
setMapColor(Color.black) | ||
end function | ||
|
||
makeStairsDown = function() | ||
return tile.make(">", Color.brown.dark, Color.black, false, false).setName("stairs down") | ||
makeMountain = function() | ||
// return tile.make("#", Color.gray.darker.darker, Color.gray.dark.dark, true, true).setName("mountain") | ||
return tile.make(24 * 16 + 3, Color.white, Color.white, true, true). | ||
setName("mountain"). | ||
setMapColor(Color.gray.darker.darker) | ||
end function | ||
|
||
makeWall = function() | ||
return tile.make("#", Color.brown, Color.black, true, true).setName("wall") | ||
// return tile.make("#", Color.brown, Color.black, true, true).setName("wall") | ||
return tile.make(24 * 16 + 4, Color.white, Color.white, true, true). | ||
setName("wall"). | ||
setMapColor(Color.brown) | ||
end function | ||
|
||
makeDoor = function() | ||
return tile.make("+", Color.black, Color.brown, false, true).setName("door") | ||
// return tile.make("+", Color.black, Color.brown, false, true).setName("door") | ||
return tile.make(24 * 16 + 5, Color.white, Color.white, false, true). | ||
setName("door"). | ||
setMapColor(Color.black) | ||
end function | ||
|
||
makeHidden = function() | ||
return tile.make("#", Color.black, Color.gray, true, true).setName("hidden") | ||
makeStairsUp = function() | ||
// return tile.make("<", Color.brown.dark, Color.black, false, false).setName("stairs up") | ||
return tile.make(24 * 16 + 6, Color.white, Color.white, false, false). | ||
setName("stairs up"). | ||
setMapColor(Color.brown.dark) | ||
end function | ||
|
||
makeStairsDown = function() | ||
// return tile.make(">", Color.brown.dark, Color.black, false, false).setName("stairs down") | ||
return tile.make(24 * 16 + 7, Color.white, Color.white, false, false). | ||
setName("stairs down"). | ||
setMapColor(Color.brown.dark) | ||
end function |
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
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