capitalex / cups-bytecode-interpreter.nv
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
| 1 | |move instruction pointer| |
| 2 | @instruction pointer |
| 3 | |
| 4 | |fetch next instruction| |
| 5 | @decode instruction |
| 6 | |
| 7 | |@current instruction is halt| |
| 8 | |
| 9 | |@current instruction is inc| |
| 10 | , @increment source register |
capitalex / fast-counter-to-bits.nv
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
| 1 | |x to bits| |
| 2 | , fill b[3] with x:8, is b[3] filled? |
| 3 | , fill b[2] with x:4, is b[2] filled? |
| 4 | , fill b[1] with x:2, is b[1] filled? |
| 5 | , fill b[0] with x:1, is b[0] filled? |
| 6 | |
| 7 | |release x, x to consume| x |
| 8 | |release x| |
| 9 | |
| 10 | |consume x, x to consume| |
june / A small game.
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
A livecoded text adventure game with a win and loss condition.
| 1 | Start the game: |
| 2 | The Road is to the east of The House, |
| 3 | The Forest is to the east of The Road, |
| 4 | The Shed is to the south of The House, |
| 5 | The Field is to the south of The House, |
| 6 | The Shed is locked, |
| 7 | You spawn. |
| 8 | |
| 9 | You are next to $a $place: You are at $a $place. |
capitalex / 00.screen-ports-currently.lua
0 лайк(-ов)
0 форк(-ов)
2 файл(-ов)
Последняя активность 1 year ago
| 1 | return function(lvera) |
| 2 | |
| 3 | local screen = love.graphics.newCanvas() |
| 4 | lvera:add_port({"@set resolution"}, function(counters) |
| 5 | love.window.setMode(counters["@resolution x"], counters["@resolution y"]) |
| 6 | screen = resize(old_screen) |
| 7 | counters["@resolution x"] = 0 |
| 8 | counters["@resolution y"] = 0 |
| 9 | counters["@set resolution"] = 0 |
| 10 | end) |