Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scroll Merchant

A wheel-driven shop-management game — scroll your scroll-and-potion inventory to find what a customer wants, haggle the price with the wheel, and flip Buy/Sell panels with a horizontal scroll. Built with Spinel and sdl — a demo of the sdl bindings' mouse wheel support.

Requirements

  • Spinel (spin)
  • SDL3, statically linked via the sdl package — no brew install needed at build or run time

Install Spinel

With asdf:

asdf plugin add spinel https://github.com/jockofcode/asdf-spinel
asdf install spinel master
asdf set -u spinel master   # make it the default (~/.tool-versions)

Or build it from source:

git clone https://github.com/matz/spinel.git
cd spinel
make
export PATH="$PWD/bin:$PATH"
cd -

Play

spin run scroll_merchant

Or build first and run the binary directly:

spin build
./build/bin/scroll_merchant

Controls

Input Action
Mouse wheel (vertical) Scroll inventory list / haggle offered price while hovering a customer offer
Mouse wheel (horizontal, or Shift+scroll) Flip between Buy and Sell panels
Left click Sell hovered/matching item to the current customer (Sell panel) / restock hovered item (Buy panel)
R Restart
Esc / Q Quit

About

A wheel-driven shop-management game built with SDL on Spinel

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages