script modules and 'require()'

This commit is contained in:
minjaesong
2023-01-08 05:07:25 +09:00
parent 3a879edd54
commit ca39263131
7 changed files with 75 additions and 28 deletions

View File

@@ -188,6 +188,15 @@ while (readCount < FILE_LENGTH) {
if (65535 == packetType) {
frameUnit -= 1
}
// background colour packets
else if (65279 == packetType) {
let rgbx = readInt()
graphics.setBackground(
(rgbx & 0xFF000000) >>> 24,
(rgbx & 0x00FF0000) >>> 16,
(rgbx & 0x0000FF00) >>> 8
)
}
// video packets
else if (packetType < 2047) {
// iPF