Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armani2.Saintil@live.uwe.ac.uk
snake
Commits
71c9a633
Commit
71c9a633
authored
2 months ago
by
Armani2.Saintil@live.uwe.ac.uk
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
f5da2453
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+50
-0
50 additions, 0 deletions
README.txt
with
50 additions
and
0 deletions
README.txt
0 → 100644
+
50
−
0
View file @
71c9a633
# POP Raylib starter
Simple starter application for POP C assignment.
Please see materials on Blackboard for more details.
# Building
To build run the command:
```bash
/opt/pop/bin/build-wasm.sh src/main.c
```
This will generate a directory *out* with the WASM and index.html files for the
Raylib program.
# Running
The very first time you run a POP WASM application you must run the command:
```bash
/opt/pop/bin/allocate_port.sh
```
You might need to start a new terminal instance for the update to take effect.
To check that everything is fine run the command:
```bash
echo $MY_PORT
```
This should output a 5 digit number.
To run the Raylib program in *out* simply run the command:
```bash
/opt/pop/bin/run-wasm.sh
```
This will run a web server that serves the *out* on the port you allocated above. This is forwarded from the
remote server to your local machine, which means you can simply open the corresponding web page within a browser
on your local machine using the address:
```bash
localhost:XXXXX
```
where *XXXXX* is the port number you allocated above.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment