This branch is 7 commits behind rich/ReWalker:main
2025-01-10 19:59:08 -05:00
2025-01-31 19:26:11 -05:00
2025-01-31 17:33:02 -05:00
2025-01-31 19:26:11 -05:00

ReWalker

ReWalker is a simple random walker program that uses ReWindow to handle windowing and mouse operations.

This is a simple random walker that has a little twist that if the user clicks the mouse over the window it "blows" the walker away from the mouse pointer. Pressing the space bar will reset the walker back to the centre of the screen and pressing the esc key will close the application.

The user can user the number 1, 2, 3, 4 and 5 keys to change the force at which the walker is blown away from the mouse pointer. 1 is lowest force and 5 is highest.

test.cpp builds to TestWindowApp as a test to help me understand how ReWindow works.

main.cpp builds to ReWalkerApp which is the main random walker program.

Run ReWalker

Install dependencies

Rocky/Fedora/RHEL:  dnf install cmake make gcc-g++ libX11 libX11-devel mesa-libGL-devel
Pop_OS!/Ubuntu/Debian:  apt-get install cmake make gcc g++ libx11-6 libx11-dev libgl-dev libxrandr-dev

Clone the repository

  git clone https://git.redacted.cc/rich/ReWalker.git

Build

  cd ReWalker && mkdir build && cd build && cmake .. && make

Run it

  ./ReWalkerApp

Thanks

Thanks to Bill, Josh and Maxine for sorting the correct ReWindow Integration, and other things.

Description
A test random walker program written in C++ which uses the ReWindow Library
Readme 59 KiB
Languages
C++ 73.6%
CMake 26.4%