WorldSellerGame / world-seller

a cool game about selling the world
https://play.worldsellergame.com
4 stars 1 forks source link

World Seller

Getting Started

Ensure you have NodeJS v18 (needed for structuredClone).

  1. npm i
  2. npm run load:content

Running the Game

npm start

Development-related Topics

Debug Commands

You must have debug mode enabled for any of these to work.

Reloading Game Content

npm run load:content

Creating a New Page

npx @ionic/cli g page pages/[page-name]

Creating a New Service

npx @ionic/cli g service services/[service-name]

Creating a New Data Store

  1. Create the 5 files in any category in stores/
  2. Add the store to stores/index.ts
  3. Add the migrations file to stores/migrations.ts

Adding a New Sound Effect

  1. Make the sound effect (BFXR)
  2. Compress the sound effect here (if it doesn't compress, use the original)
  3. Place it in src/assets/sfx

Adding a New SVG

  1. Find the SVG here.
  2. Copy the SVG locally to src/assets/icon.
  3. Remove the SVGs fill attribute.
  4. Names of svgs are generally as follows object, a dash, and then a property of the image if relevant. Inverses of this rule are frequent and should be fixed over time.

Creating Content

See CONTENT.md.