People Playground

People Playground

123 个评价
Programming Mod
3
5
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.161 MB
2 月 4 日 下午 6:29
5 月 17 日 下午 1:30
7 项改动说明 ( 查看 )

订阅以下载
Programming Mod

在 AleMor4les 的 1 个合集中
AleMor4les' Mods
12 件物品
描述
Adds programming with Miniscript, a simplistic programming language.



BEFORE YOU TRY
The user manual has most (if not all) of the info you need to understand miniscript
https://miniscript.org/files/MiniScript-Manual.pdf

Theres a miniscript discord server incase youre having trouble
https://discord.gg/URXqGMyz

This has some example programs for you to try and get a feel on how it works
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3421315017



GAME INTRINSICS
Apart from running programs, you can also interact with the game in various ways
Here are all of the game intrinsics that have been added to this mod

List signalIn()
Returns a List of all signals since execution in order of newest to oldest

Void signalOut(Number channel)
Outputs a signal to the given channel (0 to 65535)

Void notify(Value any)
Prints any given input to notification area (aka the bottom-right corner)

Void draw(Number pos, String color = "#FFFFFFFF", Bool show = true)
Sets a pixel specified by "pos" (a value 0 to 65535, starting from pixel in the bottom left corner to top right corner) to a color value specified by "color" (in HTML format, A is optional). "show" specifies whether to update the screen on the next frame or not

Value store(Value any)
Stores a Bool, Number, or String into this module's memory, this value will be saved between execution instances, meaning you store and access information from a save-loaded module

List touch()
Returns a List with the position of the pixel when a key is pressed, and the keys currently being pressed
For a list of keycodes, refer to unity's keycode docs[docs.unity3d.com]

List image(Number index)
Returns a 2d Matrix (Lists in a List) corresponding to each pixel color in an image specified to the module as an image file. "index" specifies the image to use
the image Matrix is in [x][y] format, meaning indexer 1 gets the x position and indexer 2 gets the y position

String color(Number r, Number g, Number b, Number a = 255)
More of an utility than game intrinsic
Turns given RGB/RGBA values into HTML string

String input(String print)
Awaits an user input, then returns it as a string. "print" can be left blank or prints a string to screen until user input



CUSTOMIZED INTRINSICS
Intrinsics that have been modified in a way to fit the game

Void print(Value any)
Prints a given input to the module's print screen

Void wait(Number seconds = 1)
Waits a given amount of time in real time seconds

Void yield()
Waits 0.02 seconds in physics time, or 1 tick from unity's FixedUpdate()[docs.unity3d.com]



CONTEXT MENU
More info about the context menu actions apart from their written descriptions

Set program
Any text file is allowed, as long as it has miniscript code

Set program data
Can be anything, except null
You can retrieve this value with the "store" function

Add image
Can be any size, there had been some issues with certain files but i think its been fixed. If you encounter any image issues please write a comment

Clear images
Clears images 🤯

Run on spawn / Run on button press
Specifies whether the module can run when its spawned, or executed by pressing the button

Lock program
Locks this program with its current images and code, so you can save it and share it with other people

Support me: https://buymeacoffee.com/alemor4les
热门讨论 查看全部(6)
18
4 月 19 日 上午 6:37
make the program module destructible
LasangeLover421
13
8 月 6 日 上午 4:26
I don't know how to use this cause im a complete dumbass
Flappymonkey909
5
7 月 6 日 下午 1:50
Suggestion
Littleyakr
112 条留言
AleMor4les  [作者] 10 月 21 日 下午 9:09 
@GIROLD THE PIRATE yeah sadly the only way it can communicate with the game is through signals, so it cannot know its position
AleMor4les  [作者] 10 月 21 日 下午 9:07 
thats ok i appreciate it
☢Radioactive_Tabbycat☢ 10 月 18 日 下午 3:04 
INSANELY well made, although im uninstalling it its because i dont know and dont wanna spend time currently trying to learn miniscript but yeah absolutely amazing keep up the good work gang:spiffo:
j.rrockturner 9 月 14 日 下午 3:24 
This is crazy for a people playground thing
GIROLD THE GRATE 7 月 28 日 下午 6:46 
is ther a way to for it to know its position?
steemanguy 7 月 24 日 下午 2:03 
I played doom on it :)
Donuts 7 月 21 日 上午 10:53 
i feel like someone should make a rockets mod inspired by KSP where you get a lot of space parts to do stuff, and maybe an extra map with a custom gravity system that gets weaker as you go up.
Cotton 6 月 5 日 下午 8:59 
LINUX
Human 9000 5 月 25 日 上午 5:55 
bro please add wasm runtime with game apu to this mod
jamessolidjr 5 月 4 日 下午 2:35 
wait i gotta question piepthon, every time i try to print on the "try it" site, it keep sayin
"processing error on 49 of the internal handler" why does it say that?