Giter Club home page Giter Club logo

micropolisjs's Introduction

micropolisjs's People

Contributors

annikacodes avatar emalron avatar gbraad avatar graememcc avatar ian-moore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

micropolisjs's Issues

JS error when loading from saved game

When I saved and reloaded the page then clicked "load game" this is in the console. Tried multiple times to re-load. Firefox 96.0.3 on osx. EDIT: just also gave it a go in Chrome, same error.

Uncaught TypeError: A.Position is not a constructor
    ue http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    mapScan http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    init http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    bi http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    ys http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    vn http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    jQuery 8
    dn http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    Pn http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    setTimeout handler*f http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    _verifyImage http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    lA http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    Sn http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    Tn http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    setTimeout handler*lA http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    un http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    setTimeout handler*f http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    _verifyImage http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    lA http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    <anonymous> http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    i http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    <anonymous> http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1
    <anonymous> http://www.graememcc.co.uk/micropolisJS/src/micropolis.js?f750f1ad7f255ea64b6a:1

EDIT: wow, the fact that this landed on the front-page of HN but appears to be inactive for 4 years is amazing. Kudos!

A way to make the code into external scripts only?

I am working on a chrome extension with a games launcher and am currently incorperating this into it. Because of chrome's strict content security policy for chrome extensions, I cannot use any inline scripts in any manner so I was wondering if you knew how to get this game to run completely off of external scripts which are allowed in chrome extension pages

Data overlays

We need a way to paint data overlays so the player can identify hotspots for crime etc

Touchpad scroll?

I have no idea how to make the map scroll(/pan) by just using a touchpad. Arrow keys seem to work, but only when the map has focus? It seems if I click the menus, arrow keys stop working until I click the map.

Can't build railways

When I attempt to place railways, I get the red outline and I can't place them, except over roads for some reason. Reproduced on the latest Chrome and Firefox.

Need a splash screen with map selection and difficulty selection

The user should be able to generate a new map if the first map generated isn't to their liking. Before the game proper launches, we should show the full map, and provide an option to regenerate. This screen should also contain controls for setting the game's difficulty.

Sound

micropolisJS needs sound, in particular background music and effects. In addition, the UI must expose some way for the user to silence the app.

Power capacity message proves too persistent

If a city is built to the extent that there is insufficient power generation capacity, then the blackouts message will prove remarkably persistent, even when the problem has been solved.

Changable Tilesets

I doubt the code in GameCanvas works at the moment. This code needs fixed up, and the functionality should then be exposed in the UI.

Randomise crashes

If there's no plane in the air, but there is a helicopter, then the sim should crash that instead.
If neither exist then it should randomly spawn a plane or a copter and crash it.

Pause on blur

The sim should pause on a window blur, and resume on focus.

Multiple saves

Allow the user to save multiple cities, and pick which one to load. (Watch out for that localStorage 5MB restriction though: might need to switch to IndexedDB)

Demolition issue

Let's say your building is half destroyed by a fire or monster.

That's just bad luck. I should demolish the building and rebuild it, but here is the issue. If the center of the building was destroyed, you cannot demolish the other parts. If the middle is intact then it's fine.

running on local?

Hey guys,

I'd like to run it on local, however there is no helpful description neither README nor wiki. I've grabbed the code, get required libs via npm install, build grunt tasks without errors. And then, ...

Medium Speed Setting in IE11 and Chrome is exceptionally fast

When using the speed setting in IE11 and Chrome, the speeds do not match up to their labels. Slow works fine, Medium is exceptionally fast, and Fast appears to be Medium.

Had a small town built (~3000 people) and tried changing the speed. Console repeats the following warning: "Unexpected speed 2" from the main.js file

Spread budget spending over year

Budget changes don't kick in to the following January. Instead of spending all the cash in January, we should instead spend Math.floor(1/12 costs) each month Feb-Dec and the remainder in January, allowing the player to see an immediate effect.

Add a way to dampen pollution

Once you introduce an airport or port, you are going to be stuck with high pollution messages ad nauseum. Perhaps we should introduce a mechanism where some tiles (e.g. parks) mitigate the pollution.

Static site hosting on GitHub

It seems most (all?) of this project can be served from a static website, or even run locally. Maybe you should consider creating a gh-pages branch on this repository, just to serve content using GitHub Pages: https://pages.github.com/

It is easy, requires essentially zero maintenance, and it will be kept online as long as the repository is also online.

Trim CSS

The CSS has been put together somewhat piecemeal. I'd bet there are opportunites to remove redundant rules, and combine others. (Of course, what's really needed is someone who can make the site prettier than my feeble attempts).

Issues with UI

  1. I don't know what the graphs at the bottom are meant to show - profit/cash flow
  2. The top and bottom bars are annoying, I'd like there to be a fullscreen mode
  3. Click to donate loses the save game

Need a minimap for disasters

Most disasters happen at random positions. If this happens to be outside the area the user is looking at, they have no confirmation that the action was successful. A minimap should be provided that jumps to the point of interest.

It should be possible to use the existing GameCanvas code here.

Spritesheet for sprites

Consider moving the sprites into a single sheet, and splitting into individual images. This may prove faster than the current hammering of the network.

Water drying tool

After aprox. one hour of gameplay, the player reaches the phase when all of the ground is built-up and there's only a little to improve. A (very expensive) water drying tool would allow them to extend the building space and enjoy the game even longer. Also floods would leave water instead of clear ground.

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.