Hand-drawn boat sprites for the ambient moat boats

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
design, game-dev

Research direction

Start with AmbientBoats.buildTexture and AmbientBoats.ensureTexture(), which show the texture key format boat-<livery>-<right|left|down|up> and the three liveries (wood, lacquer, white). Read AmbientBoats.size() and AmbientBoats.ART to confirm the 116x44 px budget, then draw sprites that fit it and fit the 50-66px open water. Done means every livery and direction loads from a hand-drawn sprite and displays correctly in the moat with no code changes, or ART is updated to match.

Written by the indexing model from the issue text.

Description

The ambient boats added for #29 use procedural canvas art (AmbientBoats.buildTexture, three liveries: wood, lacquer, white). Replace it with hand-drawn sprites.

AmbientBoats.ensureTexture() only draws a texture when the key is not already loaded, so loading a sprite under boat-<livery>-<right|left|down|up> swaps it in with no code change. Keep the sprite within AmbientBoats.size() (116x44 px along/across), or update AmbientBoats.ART, because run fitting uses that size. The open water in the moat is only about 50-66px wide.

Found while implementing #29.

Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devhou-se/game

All issues in devhou-se/game

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.