Skip to content

VinkentLi/VimJam4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paths

How to build

create a build directory called build then type this command to create a makefile in the build directory

(you dont need to do -G "MinGW Makefiles" if you are not using mingw)

cmake -B build -G "MinGW Makefiles"

then once you created the makefile, use the makefile using make

in your commands, go to the project directory and do ./build/Paths

then it will run

to build web

Create a build directory called build-web

Go inside the folder and run these commands

emcmake cmake -G Ninja
cmake --build .

(not sure if -G Ninja is necessary)

then create an html file with this code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
</head>
<body>
    <canvas class="relative w-2/5" style="height: 50vh; overflow: hidden;" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
    <script>
        var Module = {
            canvas: (function() { return document.getElementById('canvas'); })()
        };
    </script>
    <script src="Paths.js"></script>
</body>
</html>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published