fixes to viewport, config tuning
This commit is contained in:
@ -11,7 +11,7 @@ var maxRoomSize = 22
|
||||
var maxrooms = 30
|
||||
|
||||
//fixme make closure to stack them
|
||||
func DefaultGen(l *gamemap.Level) *gamemap.Level {
|
||||
func DefaultGen(l *gamemap.Level) (*gamemap.Level, []*gamemap.Room) {
|
||||
|
||||
rng := util.NewRNG()
|
||||
|
||||
@ -56,6 +56,9 @@ func DefaultGen(l *gamemap.Level) *gamemap.Level {
|
||||
if !failed {
|
||||
rooms = append(rooms, newRoom)
|
||||
}
|
||||
|
||||
//addStairs(rooms)
|
||||
//itemize(rooms)
|
||||
}
|
||||
|
||||
//fillage := types.RectFill{
|
||||
@ -89,7 +92,7 @@ func DefaultGen(l *gamemap.Level) *gamemap.Level {
|
||||
}
|
||||
}
|
||||
|
||||
return l
|
||||
return l, rooms
|
||||
}
|
||||
|
||||
func connectRooms (l *gamemap.Level, room, otherRoom *gamemap.Room, fillage types.RectFill, toss int) {
|
||||
|
Reference in New Issue
Block a user