Code Monkey home page Code Monkey logo

merchantry-wip's Introduction

This is a text-based browser game I am making to entertain myself and learn / practice TypeScript, HTML & CSS, and responsible coding habits. You are a merchant who buys and sells goods, traveling between Helsiki, Tallinn, and Stockholm.

To run the game, open merchantry.html . Two files, scripts.js and styles.css, must be in its same folder.

Gameplay screenshot

merchantry-wip's People

Contributors

lebruss avatar

Watchers

 avatar

merchantry-wip's Issues

Add weight value for each good

When deciding to spend money on goods, there should be some other factors than its price. Merchants actually have to consider how much things weigh

De-clutter the visual info for goods

Thoughts about the market screen

Should always be visible: good's name, owned, last bought for, price today
Hide?: hover over good's area to reveal buttons for buy & sell

new UI feature: each location has art

Make a landscape art (for example, use my art tablet to trace the Tallinn skyline) for each location. Constantly display this art for each location. It will be adjacent to the UI we're already working with

Daily profit variable

Currently we have "Days Passed: 0.", which increments +1 when the user travels. Day is not a data structure yet though.
This info can be "Day: 1", and we begin to record not only the user's Money value, but each Day will now be a data structure that at least has the profit for each Day. This is because it will be a fun exercise for me as a programmer to work with this data further at a later point in my imagination, like, maybe the game's UI will have a way to see goods' prices over time, or the user can at least see a line graph of their daily profit over time.
(Money) - (Money value at end of day as user clicks the Travel to Stockholm button) = Day's profit

Example case:
Day 2, user starts with 100eur. This is one data to store. User buys some things and finishes the day with 96eur. This another data to store. The difference will be another data to store: the daily profit

change the date / time system

instead of Days Passed / Day number,
user starts game in a randomly generated month + day + year, e.g. between years 800 and 1400
Traveling still increments days by 1, same logic as before
I just need to figure out how to write dates in TypeScript

Transportation: each city has nodes

I want to implement the travel and transportation features of Merchantry by:
Each city will be given a list of other cities you can travel to from there.
For example: If the user's current city is Kutaisi, then they can travel directly to Zestafoni and Baghdati in this instance.

Save/load feature for the game

use either JSON or .csv to load and save game states.
Then, the user can resume their progress from their last session

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.