Skip to content
As Project edited this page Aug 12, 2021 · 16 revisions

Unity


Comparison

C# (DungeonTemplateLibrary for Unity)

int[,] matrix = new int[height, width];

DTL.Shape.SimpleRogueLike simpleRogueLike = new DTL.Shape.SimpleRogueLike(1, 2, 4, 5, 5, 2, 5, 2);

simpleRogueLike.Draw(matrix);

C++ (DungeonTemplateLibrary)

std::array<std::array<int, width>, height> matrix{ {} };

dtl::shape::SimpleRogueLike<int> simpleRogueLike(1, 2, 4, 5, 5, 2, 5, 2);

simpleRogueLike.draw(matrix);

C# / C++

C# C++ Name
matrix[y, x] matrix[y][x] array type
DTL.Shape. dtl::shape:: namespace
draw(matrix) Draw(matrix) function name

Demo ๐ŸŽฎ

Unity

Unity


Picture ๐Ÿ–ผ๏ธ

Unity

Unity

Unity


Related Item

Unreal Engine 4

Clone this wiki locally