All New

user:thomas gists created by user

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

Register

Login


All New Register Login
's Avatar

capitalex

Joined 1728487741

Recently created
Least recently created
Recently updated
Least recently updated
All gists 104 Forked 1
capitalex's Avatar

capitalex / old_dialogue.gd

0 likes
0 forks
1 files
Last active 1735703845
1 extends Sequence
2
3 func setup():
4 backdrop_image('qs-background', preload('res://imgs/events/QuickShot00_background.png'))
5 backdrop_image('qs-table', preload('res://imgs/events/QuickShot01_table.png'))
6 backdrop_image('qs-guy', preload('res://imgs/events/QuickShot02_guy.png'))
7
8 func intro():
9 fade_out()
capitalex's Avatar

capitalex / going-places.chr

0 likes
0 forks
1 files
Last active 1735267148
1 go_back, travel_sym(Id), at(FutureLocation)
2 , history(GrandparentId, LastLocation, ParentId), history(ParentId, Location)
3 <=> history(GrandparentId, LastLocation)
4 , at(Location)
5 , travel_sym(ParentId)
6
7 go_back, travel_sym(FutureID), at(FutureLocation), history(Id, Location)
8 <=> at(Location)
9 , travel_sym(Id)
capitalex's Avatar

capitalex / callatz.chr

0 likes
0 forks
2 files
Last active 1735261342
1 move, y <=> x, move
2 move, x, x <=> x, x, eval
3 move, x <=> x
4
5 odd, y <=> x, x, x, x, x, x, odd
6 odd <=> x, eval
7
8 eval, x, x <=> y, eval
9 eval, x <=> x, x, x, odd
10 eval <=> move
capitalex's Avatar

capitalex / mem.js

0 likes
0 forks
2 files
Last active 1735238130
1 /**
2 Input program:
3 mem(A,_), mem(A,_) <=> fail
4 prog(L,_,_,_), prog(L,_,_,_) <=> fail
5 pc(_), pc(_) <=> fail
6
7 prog(L,"add",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X+Y), pc(L+1)
8 prog(L,"sub",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X-Y), pc(L+1)
9 prog(L,"mult",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X*Y), pc(L+1)
10 prog(L,"div",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X/Y), pc(L+1)
capitalex's Avatar

capitalex / fruitcake-2.js

0 likes
0 forks
2 files
Last active 1735237900
1 /**
2 *
3 * Automatically generated
4 * Do not edit
5 *
6 * Created using CHR.js AOT compiler
7 * (CHR.js version v3.3.21)
8 * http://github.com/fnogatz/CHR.js
9 *
10 */
capitalex's Avatar

capitalex / fruitcake.js

0 likes
0 forks
2 files
Last active 1735235784
1 /**
2 *
3 * Automatically generated
4 * Do not edit
5 *
6 * Created using CHR.js AOT compiler
7 * (CHR.js version v3.3.21)
8 * http://github.com/fnogatz/CHR.js
9 *
10 */
capitalex's Avatar

capitalex / tables-with-var-pass.nv

0 likes
0 forks
3 files
Last active 1735184955
1 |#variables|
2 , @table id, @table row, @table size
3 , pretty print rows iterator, pretty print row index
4
5
6 |_| Define our tables
7 |#table, singles|
8 , 1st
9
10 |#table, doubles|
capitalex's Avatar

capitalex / output.txt

0 likes
0 forks
2 files
Last active 1735167665
1 123
2 234
3 25
4 singles #1: {
5 ['1st'] = 123
6 }
7 singles #2: {
8 ['1st'] = 234
9 }
10 singles #3: {
capitalex's Avatar

capitalex / old-bullet-move.nv

0 likes
0 forks
2 files
Last active 1734936030
1 |#port, on move bullets, needs, @move bullets|
2 |#port body, on move bullets, lua|
3 local dt = state.dt
4 local bullets = state.bullets
5 for _, bullet in ipairs(bullets) do
6 if not (bullet.frozen and counters["game is paused"] > 0) then
7 bullet.frozen = false
8 bullet.x = bullet.x + math.cos(bullet.angle) * 350 * dt
9 bullet.y = bullet.y + math.sin(bullet.angle) * 350 * dt
10 local in_bounds
capitalex's Avatar

capitalex / zombie-more-vera.nv

0 likes
0 forks
1 files
Last active 1734926456
1 |#port, on draw zombie
2 , needs, @draw zombie
3 , reads, @zombie index|
4 |#port body, on draw zombie, lua|
5 print("DRAWING ZOMBIE", zombie_index)
6 local zombie = state.zombies[zombie_index]
7 love.graphics.setColor(0.145, 0.133, 0.169)
8 love.graphics.circle("fill", zombie.x + 5, zombie.y + 5, zombie.r)
9
10 love.graphics.setColor(0.882, 0.314, 0.282)
Newer Older

Powered by Opengist ⋅ Load: 206ms⋅

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