General improvements

I forgot what I actually changed. It may not even be playable, I just want to get this up there.
This commit is contained in:
Asraelite 2023-03-31 11:43:56 +02:00
parent 8a0bf0ada9
commit c73130e3ff
25 changed files with 584 additions and 274 deletions

View file

@ -19,14 +19,17 @@ export function init() {
tempCanvas = document.querySelector('#temp');
tempContext = tempCanvas.getContext('2d');
canvas.width = 600;
canvas.height = 600;
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
canvas.style.width = canvas.width + 'px';
canvas.style.height = canvas.height + 'px';
perspective = new Perspective();
context.fillStyle = '#000';
context.fillRect(0, 0, canvas.width, canvas.height);
context.font = '36px Consolas';
context.font = '36px Courier New';
context.textAlign = 'center';
context.textBaseline = 'middle';
context.fillStyle = '#fff';
@ -54,7 +57,7 @@ export function render() {
}
export function getVisibleSectors() {
return world.getContainedSectors(...perspective.bounds);
// return world.getContainedSectors(...perspective.bounds);
}
export function changePerspective(rotationMode, shiftX = 0, shiftY = 0) {