aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-11-15 15:33:20 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-11-15 16:04:49 +0100
commitb8d371f981acaa744252b41e6b12bba056945a7c (patch)
treecb98a74c11265816ba8307b0ebf0f4a24503b18c
parent5e83137736285e0238d46a008d0a481ff21c5907 (diff)
Fix github showcasegithub
-rw-r--r--.gitignore5
-rw-r--r--README.md20
-rwxr-xr-xbuild/buildbin30688 -> 0 bytes
-rwxr-xr-xbuild/linux_handmadebin88880 -> 88880 bytes
-rwxr-xr-xbuild/win32_handmade.exebin0 -> 367104 bytes
-rwxr-xr-xcode/build.bat8
6 files changed, 16 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
index c2cc545..dd21bd1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,6 @@
code/libs/hm_linux
-build/*.hmi
-build/*.zip
-build/*.tar.gz
+code/libs/hm_win32
+build/
game.zip
*.o
*.json
diff --git a/README.md b/README.md
index 7e8b11c..1c72879 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,31 @@
# Wordled: Impress your friends with Wordle drawings!
+Link to the [original](https://git.spacehb.net/wordled/about/?h=main) repository.
## Overview
`Wordled` is a GUI application that lets you draw patterns such that you can later input them in the [Wordle](https://www.nytimes.com/games/wordle/index.html) game. It will then generate the guesses to achieve the required pattern.
## Showcase
-<video autoplay loop muted src="https://git.spacehb.net/wordled/plain/showcase.mp4?h=main">
+[Video](https://github.com/Poulbi/wordled/raw/refs/heads/main/showcase.mp4)
-## Build & Run
+## Run
Both following build steps will output executable programs in the `build` directory. Do note that
this repository already has prebuilt binaries.
For both Windows and Linux you need a working C++ compiler.
### On Windows
-In the `code` directory run.
-```bat
-.\build.bat
-```
-Afterwards from the `build` directory you can run the `win32_handmade.exe` executable.
+Run the `win32_handmade.exe` executable from the `build` directory.
+
### On Linux
+Since I cannot guarantee binary compability, please follow the build instructions.
+
Following dependencies are required, but should already be installed on most distributions.
+- [hm_linux](https://git.spacehb.net/hm_linux/about/?h=main), my linux platform layer. Put it in `./code/libs/`.
- `libasound.so`
- `libcurl.so`
-- `libX11.so` and `libXFixles.so`
+- `libX11.so` and `libXFixes.so`
In the `code` directory run.
```bat
./build.sh
```
-Afterwards from the `build` directory you can run the `linux_handmade` executable.
-
+Afterwards run the `linux_handmade` executable in the `build` directory.
diff --git a/build/build b/build/build
deleted file mode 100755
index 035838f..0000000
--- a/build/build
+++ /dev/null
Binary files differ
diff --git a/build/linux_handmade b/build/linux_handmade
index b7fb5b7..16020f0 100755
--- a/build/linux_handmade
+++ b/build/linux_handmade
Binary files differ
diff --git a/build/win32_handmade.exe b/build/win32_handmade.exe
new file mode 100755
index 0000000..b4b0649
--- /dev/null
+++ b/build/win32_handmade.exe
Binary files differ
diff --git a/code/build.bat b/code/build.bat
index 2f9ac95..4e1989f 100755
--- a/code/build.bat
+++ b/code/build.bat
@@ -2,18 +2,18 @@
call cache.bat
-set CommonCompilerFlags=-MTd -Gm- -nologo -GR- -EHa- -Oi -WX -W4 -wd4459 -wd4456 -wd4201 -wd4100 -wd4189 -wd4505 -wd4996 -wd4389 -DHANDMADE_SLOW=1 -DHANDMADE_INTERNAL=1 -FC -Z7
+set CommonCompilerFlags=-MTd -Gm- -nologo -GR- -EHa- -WX -W4 -wd4459 -wd4456 -wd4201 -wd4100 -wd4189 -wd4505 -wd4996 -wd4389 -DHANDMADE_SLOW=1 -DHANDMADE_INTERNAL=1 -FC -Z7
set CommonLinkerFlags=-opt:ref -incremental:no user32.lib Gdi32.lib winmm.lib
IF NOT EXIST ..\build mkdir ..\build
pushd ..\build
REM 32-Bit
-REM cl %CommonCompilerFlags% ..\code\win32_handmade.cpp /link -subsystem:windows,5.1 %CommonLinkerFlags%
+REM cl %CommonCompilerFlags% ..\code\libs\hm_win32\win32_handmade.cpp /link -subsystem:windows,5.1 %CommonLinkerFlags%
REM 64-Bit
cl %CommonCompilerFlags% ..\code\handmade.cpp -Fmhandmade.map -LD /link /DLL /EXPORT:GameGetSoundSamples /EXPORT:GameUpdateAndRender
-cl %CommonCompilerFlags% ..\code\win32_handmade.cpp -Fmwin32_handmade.map /link %CommonLinkerFlags%
+cl %CommonCompilerFlags% ..\code\libs\hm_win32\win32_handmade.cpp -Fmwin32_handmade.map /link %CommonLinkerFlags%
-popd \ No newline at end of file
+popd