- 0
function _init()
l=0
gb=0
end
include "logic.lua"
include "dprt.lua"
do
local lk = Links.new()
local links = { 3,0, 3,1, 4,0, 4,3,
5,1, 5,3, 6,4, 6,5,
7,2, 7,6, 8,6, 8,7,
9,2, 9,7, 10,8, 10,9,
[package]
name = "sample"
version = "0.1.0"
edition = "2024"
[[bin]]
name = "sample"
path = "src/sample.rs"
function disp_hex()
print("+0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F", 40, 8, 10)
for r=0,15 do
print(string.format("%06X", r*16+org), 0, r*8+16, 10)
for c=0,15 do
idx = r*16+c+org
local data = peek(idx)
local col = 17
if data > 0 then
map_data = unpod("b64:bHo0AN4AAAAYBAAA8AJ1c2VyZGF0YSgiaTE2IiwxNgMAXyIwMDAxBAAsDwEAARMzBAAPAQANHzE4AAAECAAIDAAIAQAbM0AAEzEUAAgYAAwQAB8wEAAEBEAADBgABAQADwEADQ5AAAoBAB8zBAAMBEAAGzMEAAQBAC8zMAEAAwQYAARAAB4wNAAPAQAOFzNAAB8zBAAYCAEABEAADwEACQg0AA9AAAkfMwgADA8UAAEIQAAPAQAFLzMwAQAHEzEgAA8EAB0TMAgAEzEEAA8BABUqMzABAA5AAA88ABcIQAAPBAAjUDAwMSIp")
sp1 = --[[pod_type="gfx"]]unpod("b64:bHo0ABkAAAAXAAAA8AhweHUAQyAICASPFVAeUB5QHlAeUB5Qjg==")
sp2 = --[[pod_type="gfx"]]unpod("b64:bHo0ABMAAAARAAAA8AJweHUAQyAICATwCx8cUB7wCw==")
sp3 = --[[pod_type="gfx"]]unpod("b64:bHo0ABIAAAAQAAAA8AFweHUAQyAICATwCxhQGPAL")
function _init()
stack = {}
--stack[1] = {x=7, y=7}
include "dprt.lua"
function draw_char(org, ox, oy)
for i=0,7 do
l = peek(org + 0x08 + 120 + (cc * 8 + i))
for j=0,7 do
local b = l >> j & 0x1
c = 1
//! Basic hello world example.
use ggez::{event, graphics, Context, GameResult, GameError};
use ggez::conf::{WindowMode, WindowSetup};
use ggez::graphics::Image;
use std::{env, path};
// First we make a structure to contain the game's state
struct MainState {
function _init()
window {
width = 200,
height = 100
}
x = 0
cnt = 0
f = 0
skp = 0
util.lua
BAYER_MATRIX = {-2, 1, 0, -1}
function euclidean_distance(c1, c2)
local d = c1 - c2
return sqrt(d[0]^2 + d[1]^2 + d[2]^2)
end