This guide will help you get set up to code Roblox games with AI using Cursor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config = { | |
Map = "aduermael.hills", | |
Items = { "jacksbertox.easel" } | |
} | |
------------------- | |
--== Constants ==-- | |
------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config = { | |
Map = "aduermael.lovely_castle" | |
} | |
Client.OnStart = function() | |
multi = require("multi") | |
-- Client.OnStart is the first function called on each player device | |
-- It's a good place to build a user interface, setup things that you |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
EAT YOUR FRUITS | |
Made this game in 48h for Ludum Dare 52 (https://ldjam.com/events/ludum-dare/52/eat-your-fruits). | |
- [X] players should collide with tree, /!\ though, shake scale should push back | |
- [X] fix punch (trigger far from a tree, then move to touch a tree) | |
- [x] auto-destroy fruits if not collected | |
- [x] set max number of collected fruits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker() { | |
local realDocker=$(which docker) | |
# shorter `docker ps` | |
if [[ "$1" == "ps" ]] && [[ $* != *-q* ]] | |
then | |
if [[ $* == *-s* ]] | |
then | |
$realDocker $@ --format "table {{.Image}}\t{{.Ports}}\t{{.Status}}\t{{.Names}}\t{{.Size}}" | |
else | |
$realDocker $@ --format "table {{.Image}}\t{{.Ports}}\t{{.Status}}\t{{.Names}}" |
Remove all keys with given prefix
eval 'local keys = redis.call("keys", ARGV[1]); redis.call("del", unpack(keys));' 0 "prefix*"
Bind remote docker.sock with SSH tunnel:
ssh -nNT -L /tmp/docker.sock:/var/run/docker.sock <USER>@<IP> &
Set environment variable for local Docker client:
export DOCKER_HOST=unix:///tmp/docker.sock