forget window exists at all for now...

pull/19/head
Valerie 2021-05-21 01:14:04 -04:00
parent f1037a0e7a
commit c3c339a084
1 changed files with 25 additions and 25 deletions

View File

@ -1,33 +1,33 @@
namespace SDL;
// namespace SDL;
keepalive;
// keepalive;
import sdl from '@kmamal/sdl';
import util from 'util';
// import sdl from '@kmamal/sdl';
// import util from 'util';
runtime member window;
// runtime member window;
async restore {
// console.log('he...hello?')
window = sdl.video.createWindow({
// borderless: true,
height: 200,
width: 300,
resizable: true
});
// async restore {
// // console.log('he...hello?')
// window = sdl.video.createWindow({
// // borderless: true,
// height: 200,
// width: 300,
// resizable: true
// });
main_loop:
for (;;) {
let event
while ((event = sdl.events.poll())) {
console.log(event);
if (event.type === 'quit') {
window.destroy()
break main_loop
}
}
// main_loop:
// for (;;) {
// let event
// while ((event = sdl.events.poll())) {
// console.log(event);
// if (event.type === 'quit') {
// window.destroy()
// break main_loop
// }
// }
}
}
// }
// }