I used this process to compile a WASM file for CLIPS. This allows me to run CLIPS in the browser! I use this for the Tour of CLIPS I created.
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
{ | |
"Name": "Turbo Baker 9001", | |
"ID": "TurboBaker9001", | |
"Author": "ryjo", | |
"Description": "A mod that lets you bake any amount of cookies on demand! I made this. ryjo.", | |
"ModVersion": 1, | |
"GameVersion": 2.052, | |
"Date": "04/01/2024", | |
"Dependencies": [], | |
"Disabled": 0, |
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
#include "clips.h" | |
#include <hiredis.h> | |
#include <signal.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
void INThandler(int sig); | |
/****************************************/ | |
/* main: Starts execution of the expert */ |
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
all: publish resubscribe server subscribe unsubscribe | |
publish: | |
gcc publish.c -lrt -o publish | |
resubscribe: | |
gcc resubscribe.c -lrt -o resubscribe | |
server: | |
gcc server.c -lpthread -lrt -o server | |
subscribe: | |
gcc subscribe.c -lrt -o subscribe |
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
all: | |
gcc main.c -lpthread -lrt |
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
body { | |
display: flex; | |
height: 100%; | |
margin: 0; | |
} | |
nav { | |
background-color: #aaa; | |
flex: 25%; | |
height: 100%; |
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
zethus begins casting walk (1 seconds) | |
ryjo begins casting eat (5 seconds) | |
zethus walks forward. (cooldown 1 seconds) | |
zethus moves from (0, 0) to (0, 1) | |
zethus cooled down 1 seconds after performing walk and will now decide what to do next... | |
zethus begins casting breath (1 seconds) | |
zethus breaths. (cooldown 1 seconds) | |
zethus's hp is currently 95/100 | |
zethus's hp goes up by 3! | |
zethus cooled down 1 seconds after performing breath and will now decide what to do next... |
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
Character zethus begins casting walk (1 seconds) | |
Character zach begins casting breath (1 seconds) | |
Character ryjo begins casting breath (1 seconds) | |
Character ryjo breaths. (cooldown 1 seconds) | |
Character ryjo's hp is currently 85/100 | |
Character ryjo's hp goes up by 3! | |
Character zach breaths. (cooldown 1 seconds) | |
Character zach's hp is currently 90/100 | |
Character zach's hp goes up by 3! | |
Character zethus walks forward. (cooldown 1 seconds) |
NewerOlder