全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

最近 创建
最早 创建
最近 更新
最早 更新
capitalex's Avatar

capitalex / mushroom-path.endless

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
1 object enter
2 object enter
3 "mushroom-2" >name
4 solid >true
5 object enter
6 222 >x 36 >y 49 >w 41 >h
7 leave >bounds
8 leave >slices
9 object enter
10 "mushroom-3" >name
capitalex's Avatar

capitalex / Export Nova.lua

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
1 local dialog = Dialog()
2 dialog:file{
3 id = "save_location",
4 label = "Save Location",
5 title = "Save Nova",
6 save = true,
7 filetypes = { "nv" },
8 }
9 dialog:button {
10 id = "save_button",
capitalex's Avatar

capitalex / square.lua

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
1 require "prelude"
2 local function _zt()
3 local y, x = POP(''), POP('')
4 PUSH('', x * y)
5 end
6 local function _zp()
7 local y, x = POP(''), POP('')
8 PUSH('', x + y)
9 end
10 local function _sqrt()
capitalex's Avatar

capitalex / prelude.lua

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
1 local function push(self, value)
2 self.n = self.n + 1
3 table.insert(self, value)
4 end
5
6 local function pop(self)
7 local value = self[self.n]
8 self[self.n] = nil
9 self.n = self.n - 1
10 return value
june's Avatar

june / A small graphical example of Nova.

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
A small Nova program to draw the trans pride flag in the playground.
1 ||
2 :: create a 400 by 400 canvas
3 :: draw the trans pride flag
4
5 |:: draw the trans pride flag|
6 :: clear the canvas to black
7 :: draw a 360 by 360 lightblue rectangle at 20 20
8 :: draw a 360 by 250 pink rectangle at 20 80
9 :: draw a 360 by 100 white rectangle at 20 150
autumn's Avatar

autumn / game library

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
a library for the Myte playground that lets you easily create games
1 | 'DOCUMENTATION' | ~~
2 this game library lets you create a canvas that you can
3 update every frame . you can start a game like so :
4
5 // '' start a 400 by 600 game
6
7 and you can create a game loop that updates like this :
8
9 / '' game loop $dt
10 / '' do something
autumn's Avatar

autumn / @reduce math library

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
a library for the Myte playground that allows you to reduce RPN expressions from within tuples
1 | 'DOCUMENTATION' | ~~
2 the @reduce library allows you to reduce RPN expressions
3 that are enclosed within curly braces inside of a tuple .
4 here's an example of how to use it :
5
6 '' (@reduce snake = x is { 2 3 + 4 * } and y is { 10 7 - } .)
7
8 this will result in the following :
9
10 'snake' x is 20 and y is 3
sierra's Avatar

sierra / maze-with-arrays.nv

0 喜欢
0 派生
2 文件
最后活跃于 5 months ago • 派生自 capitalex/maze-with-arrays.nv
1 = |@math| $last |@math| $op $value * =
2 |@math| $op $value $last
3 = |@math| $last |@math| $op * $value =
4 |@math| $op $last $value
5
6 = || set new pen color? |pen color| r $g $b |@math| $r =
7 |pen color| $r $g $b
8
9 = || set new pen color? |pen color| $r g $b |@math| $g =
10 |pen color| $r $g $b
june's Avatar

june / progress-pride-flag.nv

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago • 派生自 sierra/progress-pride-flag.nv
1 ||
2 :: create a 400 by 400 canvas
3 :: draw the trans pride flag
4
5 |:: draw the trans pride flag|
6 :: clear the canvas to black
7 :: draw a 360 by 360 lightblue rectangle at 20 20
8 :: draw a 360 by 250 pink rectangle at 20 80
9 :: draw a 360 by 100 white rectangle at 20 150
10 :: draw a black triangle at 20 20 20 380 200 200
autumn's Avatar

autumn / snake game

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
a snake game that runs on the Myte playground !
1 | 'INSTRUCTIONS' | ~~
2 you can move using the WASD keys !
3
4 || '@include' (
5 https://gist.casuallyblue.dev/autumn/056799f483464c668e0a6a2d9db099df/raw/HEAD/game.nv
6 https://gist.casuallyblue.dev/autumn/e1c6774f800249be87a94240042135db/raw/HEAD/reduce.nv
7 )
8
9 'DOM' (<query h2 <style text-align = center > >)
上一页 下一页

由 Opengist 强力驱动 ⋅ Load: 193ms⋅

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