asmcup / runtime

Runtime and compiler for the Assembly Cup
https://asmcup.github.io
MIT License
139 stars 11 forks source link

Fixed world size. #180

Closed MLanghof closed 7 years ago

MLanghof commented 7 years ago

All instances where World.SIZE is used were actually looking for this value, not the old one.

For example, the Load World dialog wouldn't let you input coordinates beyond 32 * 20 * 255 (top left corner of bottom-right-most cell, not bottom right), and bots would be prevented from actually entering the bottom-most and right-most cells.

I should note that the actual problem may be that 256 cells are generated in each direction when CELLCOUNT is 255. But meh. ¯\_(ツ)\

krisives commented 7 years ago

Need to test if bots can leave world in bottom right before I merge.

MLanghof commented 7 years ago

163840 is the coordinate you're looking for in that case. Previous was 163200.