Shelter Signal: Customization Guide

Step-by-step changes for people who do not program. Everything works with a free text editor.

1. Before you start

  1. Make a copy of the whole download. If something goes wrong, you can go back to it.
  2. Install a free code editor such as Visual Studio Code (or Notepad++ on Windows). For pictures, the free GIMP or Krita open and export WebP files. For sounds, the free Audacity exports MP3.
  3. Work inside source/. To see your changes, open a terminal in that folder and run npm run dev, then open http://localhost:5180/. The game does not run by double-clicking index.html, because browsers block JavaScript modules on file://.
  4. No terminal? Edit the files of game/ directly, upload them to your host and reload the page.

2. Your brand: name, logo and icon

The main menu with the logo
  1. The name in the browser tab is the <title> line of index.html.
  2. The logo is assets/ui/shelter-signal-logo.webp (1000 x 456 pixels, transparent background). To use your own, save it at the same size with a transparent background.
  3. The same logo appears on the loading screen, on the start screen and in the menu. Its description for screen readers is the alt text of the three <img> lines of index.html that name shelter-signal-logo.webp.
  4. The page has no icon file. To add one, replace the line of index.html that starts with <link rel="icon" with a link to your own picture.

3. Colors and the look

The look of the buttons, panels and bars is in the files of css/. The main colors are at the top of css/base.css. Change a color, save and reload the page:

:root {
  --bg: #152029; /* page background */
  --text: #f2f8f5; /* text */
  --muted: #a9bec2; /* secondary text */
  --em: #2fbf7f; /* green: titles and highlights */
  --gold: #ffd36a; /* gold: coins, stars, focus */
  --mana: #4fd2ff; /* mana */
}

Buttons, panels and bars are also pictures (assets/ui/btn-green.webp, btn-blue.webp, btn-yellow.webp, panel.webp, band.webp, card.webp): replace them to change the look of the interface.

4. Replace pictures (reskin)

Replace a file with another of the same name and the same size. Nothing else needs to change. If your picture has another size, also change its size and anchor (the point between the feet) in assets/manifest.json.

On screen File
The logo assets/ui/shelter-signal-logo.webp (1000 x 456)
The survivors assets/heroes/ink-<name>-<frame>.webp, for example ink-archer-0.webp to ink-archer-5.webp for the Scout; ink-archer-lv2-0.webp and so on are the looks of the higher levels
The enemies and bosses assets/enemies/ink-<name>-<frame>.webp, for example ink-goblin-0.webp for the Shambler; ink-boss to ink-boss5 are the bosses
The ground of each camp assets/field/radio/viveiro/ (camp 1) and, in assets/field/radio/, feira-piso.webp (camp 2), neve-piso.webp (camp 3), estacao-piso.webp and estacao-agua.webp (camp 4) and torre-piso-panoramico.webp (camp 5)
Buildings, vehicles, trees and plants assets/field/radio/ (the files that start with radio-), assets/field/radio/viveiro/, assets/props/ and the folders assets/field/w2/ to w5/
The shelter, the fire and the camp assets/camp/ and assets/objects/ (the three frames of the flame are flame-0.webp to flame-2.webp)
Shots, bombs, sparks and smoke assets/shots/ and assets/fx/
Buttons, panels, bars and icons assets/ui/ and assets/icons/
The survivor cards assets/ui/card.webp and the portraits in assets/ui/hero-thumbs/
The story pictures between camps assets/story/radio-*.webp (1152 x 768)
The journey map assets/journey/journey-map-shelter-ink.webp

5. The camps and their waves

The Journey panel with the ten waves of a camp

Open src/game/campaign.js. CAMP has one block for each camp: scene is its scenery, boss its boss, foes the enemies that appear and how often (a bigger number means more of them), w the pattern of each of the 10 waves and e the waves that bring an elite enemy.

The names of the camps are the texts w_w1, w_w2, w_w3, w_c4 and w_c5 in the language files, and the story of each camp is in src/ui/camp-story.js. The number of camps (CAMPS) and of waves per camp (WAVES) is in src/game/data.js; changing them also needs new scenery, so keep 5 and 10 unless a programmer helps. Run npm test after a change.

6. Survivors, prices and upgrades

The crew training panel

Open src/game/data.js. In UNITS, each survivor has cost (the charge its card costs), hp (health), dmg (damage), rate (attacks per second) and range. HERO_UNLOCK is the wave of the journey (1 to 50) where each survivor joins.

The permanent upgrades are UPGRADES (max is the number of levels and step what each level adds). Their prices come from upgradeCost and unitUpgradeCost, a few lines below: the first number of each formula (60 and 70) is the price of the first level. The coins paid per wave are REWARD.

7. Difficulty and game feel

A battle in the first camp

Open src/game/data.js and src/game/campaign.js. The most useful numbers:

Setting What it does
BAL.energy Charge: start (6) at the beginning of a camp, rate (0.6) gained per second, cap (20) the most the player can hold and waveBonus (3) gained when a wave ends.
BAL.baseHp The health of the camp (100) before upgrades.
BAL.pulse The Flare: cost (10 charge), cd (12 seconds to recharge), radius (2.8 tiles), dmg (22 damage) and push.
BAL.stars The share of the camp health that must be left at the end of a wave for 3 stars (0.99) and for 2 stars (0.92).
MAX_LV and LV_MUL The highest survivor level (5) and how much stronger each level is (2.2 times the damage and health).
CAMPAIGN_MODES in src/game/campaign.js Easy, Medium (normal) and Hard: hp and hit multiply the health and the blows of the enemies, budget the size of the waves, and prep and mana add preparation time and starting charge.
CHAMP Veterans: cost (9 charge per move), open (the wave of a camp from which a level 5 survivor can be made, 6) and cd (seconds each survivor waits between moves).

8. Texts and languages

Settings panel

9. Sounds and music

The sound effects are MP3 files in assets/sfx/ and assets/sfx/radio/, and the music MP3 files in assets/music/shelter/. Replace a file and keep its name.

Files When they play
shelter-antenna-light.mp3 Music of the menus and of the camp between battles.
shelter-service-road.mp3, shelter-after-closing.mp3, shelter-cold-footprints.mp3, shelter-waterline.mp3, shelter-high-ground.mp3 Battle music of camps 1 to 5.
shelter-breach.mp3 and shelter-last-transmission.mp3 Boss music of camps 1 to 3, and of camps 4 and 5.
hero_place.mp3, merge.mp3, merge_big.mp3 Placing a survivor and merging two survivors.
radio/bow_shot1.mp3, bomb_boom-1.mp3, radio/ice_cast1.mp3, radio/flare_cast.mp3 Attacks of the survivors and the Flare. Numbered files are takes of the same sound.
victory.mp3, defeat.mp3, star.mp3, coin-1.mp3 End of a wave, defeat, stars and coins.

Every sound is listed in assets/sfx/manifest.json, where gain is its volume. The general volume of each group of sounds is groups at the top of MIX in src/feel-mix.js (jogada are the sounds of the play, marco the big moments, ui the interface and amb the ambience):

groups: { jogada: 0.55, marco: 1.0, ui: 0.7, amb: 0.35, music: 0.5 },

10. Save keys and starting over

The progress stays in the browser of each player, under the keys shelter-signal.save.v1 and shelter-signal.settings.v1, plus a few small keys that start with shelter-signal.. If you host two copies of the game on the same domain, change these names in src/save.js, src/zoom.js, src/looks.js and src/ui/alerts.js of one of them.

To start over, delete these keys in the developer tools (F12), under Application, Local Storage, or clear the site data of the browser.

11. Publish your version

  1. In source/, run npm test and npm run build. This writes source/dist/.
  2. Back up the game on your website, then upload the contents of dist/ in place of the old files.
  3. Keep the folders as they are. If you added a new file or folder next to index.html, add its name to PARTS in source/tools/build.mjs.
  4. Clear the browser cache to see the new version (see the buyer guide).

Support: willian@polargames.com.br