Все Новый

user:thomas фрагментов создано пользователем

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Регистрация

Войти


Все Новый Регистрация Войти

Все фрагменты

Свежие сверху по дате создания
Свежие снизу по дате создания
Свежие сверху по дате обновления
Свежие снизу по дате обновления
capitalex's Avatar

capitalex / main-loop.nv

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 |_| Ports for reading and writing events
2 |#port, on start polling, needs, @start polling|
3 |#port, on poll input, needs, @poll input|
4 , @event keypressed
5 , @event keyreleased
6 , @event mousemoved
7 , @event mouse pressed
8 , @no events left
9
10 |#port, on quit love, needs, @quit love|
capitalex's Avatar

capitalex / zombies.nv

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 player $player,
2 $player at x #400 and y #300,
3 can update for $player.
4
5 update $id, player $id?:
6 , compute player $id velocity x
7 , @is-down key a, @is-down key d
8 , compute player $id velocity y
9 , @is-down key w, @is-down key s
10 .
capitalex's Avatar

capitalex / generated-text-input.lua

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 local min, max, huge = math.min, math.max, math.huge
2 local machine = {}
3
4 machine.counters = {
5 ["update scene state"] = 0,
6 ["draw scene"] = 0,
7 ["present current frame"] = 0,
8 ["sleep for 1ms"] = 0,
9 ["next cycle"] = 0,
10 ["updating scene"] = 0,
june's Avatar

june / ALU Port

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
An implementation of an ALU port, implementing addition and subtraction.
1 |=================================================|
2 |#| start exhaustive
3 |@alu-accept-operation, @alu-op, @alu-subtract:max| @alu-invalid-operation
4 |@alu-accept-operation, @alu-op, @alu-add:max | @alu-accept-operation, @alu-clear-out:max, @alu-subtract:max
5 |@alu-accept-operation, @alu-op | @alu-accept-operation, @alu-clear-out:max, @alu-add:max
6
7 |#| constant, @alu-clear-out, 4294967295
8 |@alu-clear-out:max| @alu-clear-out:4294967295
9
10 |#| constant, @alu-add, 4294967295
capitalex's Avatar

capitalex / generated-text-input.lua

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 local min, max, huge = math.min, math.max, math.huge
2 local machine = {}
3
4 machine.counters = {
5 ["run current frame"] = 0,
6 ["step timer"] = 0,
7 ["clear the screen"] = 0,
8 ["draw scene"] = 0,
9 ["present current frame"] = 0,
10 ["sleep for 1ms"] = 0,
june's Avatar

june / gist:21596a68a7654ad39e0e289b0541639c

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 |------------------------------------------------------|
2 |#| constant, @resolution-x, 400
3 |#| constant, @resolution-y, 400
4 ||window, @resolution-x:400, @resolution-y:400, display
5 |window| @set-resolution
6
7 |#| constant, Loop x, 400
8 |#| constant, Loop y, 400
9 |#| constant, x->p, 400
10 |#| constant, y->p, 400
sierra's Avatar

sierra / resize.nv

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 ||start, @resolution-x:17,@resolution-y:17,@set-resolution
2 |clear__width, width| clear__width:4294967295
3 |clear__width|
4 |set_const__width__15| width:15
5 |clear__height, height| clear__height:4294967295
6 |clear__height|
7 |set_const__height__15| height:15
8 |clear__y, y| clear__y:4294967295
9 |clear__y|
10 |set_const__y__1| y:1
capitalex's Avatar

capitalex / group-etch-a-sketch.nv

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
1 |#| new buttons row
2 |#| button, ⇐, left
3 |#| button, ⇑, up
4 |#| button, ⇓, down
5 |#| button, ⇒, right
6 |#| new buttons row
7 |#| button, Pen Down, pen down
8 |#| button, Pen Up, pen up
9 |#| new buttons row
10 |#| button, <h2 style="color:red">██</h2>, set red
june's Avatar

june / Patching A Compiled Program

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
Adding features to a program compiled from another language.
1 |----------------------------------------|
2
3 The section between these
4 two lines is a patch to
5 the original program.
6
7 It's intended that, as a
8 program is used, it can be
9 changed and patched as the
10 user desires.
capitalex's Avatar

capitalex / bouncing_ball.nv

0 лайк(-ов)
0 форк(-ов)
2 файл(-ов)
Последняя активность 1 year ago • Форки с yumaikas/bouncing_ball.nv
1 ||start
2 |clear__canvas_width, canvas_width| clear__canvas_width:4294967295
3 |clear__canvas_width|
4 |set_const__canvas_width__400| canvas_width:400
5 |clear__canvas_height, canvas_height| clear__canvas_height:4294967295
6 |clear__canvas_height|
7 |set_const__canvas_height__400| canvas_height:400
8 |clear__ball_radius, ball_radius| clear__ball_radius:4294967295
9 |clear__ball_radius|
10 |set_const__ball_radius__6| ball_radius:6
Новее Позже

Работает на Opengist ⋅ Load: 225ms⋅

Русский
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文