Skip to content

Commit

Permalink
Merge branch 'main' into yes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlHejlesen authored May 28, 2024
2 parents 87527bd + 4d020a1 commit c17895b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
17 changes: 5 additions & 12 deletions test.carl
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
var carl:float = 2
print(carl)
fn carlersej (carlerSupersej:int) -> void{

}
carl =234234


var size : int = 20
var map : float[size][size]

map[2][2] =4.5
generateMap(20,25)
generateRooms(3,5,7)
generateCorridors()
generateSpawns()
writeToFile()

19 changes: 19 additions & 0 deletions test3.carl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var size : int = 20
var map : string[size][size]
var i : int = 0
var j : int = 0
while i < size{
j = 0
while j < size {
map[i][j] = "w"
j = j+1
}
i = i+1
}
generateRooms(3,5,7)
generateCorridors()

var playerX : int = room.get(0).x .. room.get(0).x + room.get(0).width
var playerY : int = room.get(0).y .. room.get(0).y + room.get(0).height
map[playerY][playerX] = "p"
writeToFile()

0 comments on commit c17895b

Please sign in to comment.