mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 14:49:03 +00:00
@@ -21,8 +21,7 @@ import java.util.*;
|
||||
public class Cubot extends GameObject implements Updatable, ControllableUnit, MessageReceiver,
|
||||
Attackable, Rechargeable, HardwareHost {
|
||||
|
||||
private static final char MAP_INFO = 0x0080;
|
||||
|
||||
private static final char MAP_INFO = 0x0200;
|
||||
|
||||
/**
|
||||
* Hit points
|
||||
|
||||
@@ -107,8 +107,8 @@ public class CubotLidar extends CubotHardwareModule {
|
||||
|
||||
//Write map data to the location specified by register X
|
||||
int i = getCpu().getRegisterSet().getRegister("X").getValue();
|
||||
for (int y = 0; y < cubot.getWorld().getWorldSize(); y++) {
|
||||
for (int x = 0; x < cubot.getWorld().getWorldSize(); x++) {
|
||||
for (int x = 0; x < cubot.getWorld().getWorldSize(); x++) {
|
||||
for (int y = 0; y < cubot.getWorld().getWorldSize(); y++) {
|
||||
getCpu().getMemory().set(i++, mapInfo[x][y]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user