Giter Site home page Giter Site logo

3d.city's People

Contributors

lo-th 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  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

3d.city's Issues

Adding a stadium doesn't stop demand

Whenever I see "residents demand a stadium," and then I add a stadium, the message remains for years and years of game time. Adding the demanded stadium does nothing to eliminate that demand.

Moving 'load menu'

The load menu should be put in the starting screen when you click 'play game' it should direct to 'new game' or 'load game'.

Page unresponsive on map generation

idk if the author would notice this, but there has been a problem with the city builder. I tried to run the city generator but it got stuck on generating a map. This has been a recurring problem which really needed fixing. Please fix this ASAP.

Tech specs (for the curious):

  • 13-inch MacBook Pro, M1
  • Memory: 8 GB
  • Browser: Chrome ver. 110.0.5481.77

crashes

page unresponsive every time i gen a map. I can't even change the generation settings, this is fucking garbage. the old version was so much better.

Mobile compatibility

lo-th,
Good work on making this game! it s so fun that I want to install it on my friends ipad as a apple touch icon the link shows how to incorperate it into your game.

Also when on a mobile device the 'selecte tool' panel will cover the city.

i understand you have a liquid webpage design, you should move the 'selecte tool' panel to the bottom of the screen as a up arrow, when you tap (as you are on a mobile device) on the arrow the 'selecte tool' panel pops up, tap on - let's say residential area, then the 'selecte tool' panel disappears and goes back to your city, tap on a blank area and residential area is put there.

Also for debugging mobile versions of your game, if you are using Google Chrome:

  1. Press F12
  2. Press ESC
  3. Click the 3 dots in the panel that has just popped up
  4. Click 'Network Conditions'
  5. Uncheck select automatically
  6. I the drop-down list, select your browser you want

Read this for more

Regards,
Taiwei

Crashes

Every time I generate the map, it crashes.

Random tile glitches

Sometimes, there are some tile glitches where the wrong tile is displayed. The tile still is the right tile, for instance a railroad remains a railroad underneath, but what's displayed is a park. I've seen bridges missing road tiles and some light blue tiles randomly appearing in water and on bridge.

tiles not cut from png file correctly

screenshot from 2015-01-23 00 11 23

where the power crosses track the tiles seem to be one pixel out, and one has part of the other in it, this can't be a problem with the tiles32.png file, and i think is probably an issue with the calculation of where pixels are within the tile map.

A bit unclear-- just an idea to improve

Just a suggestion to improve the game:

Edit: i have just realized you have used console.log() to log 'game is save' but not all people apart from developers check the console

When you click the 'save' button it should tell you 'game saved' in a dialogue box by using:

<button` onclick="myFunction()">SAVE</button>
<script>
function myFunction() {
    alert("Game has been saved");
}
</script>

or display a tick or beside the 'save' button
or..... grey out the 'save button' and replace it with 'saved'

Regards,
Taiwei

Very slow on Safari browser

Cool, but it seems to have problems with Safari. It is too slow to be usable (my Safari version is 7.0.5, OS X 10.9.4). It is well below 1 FPS, and it hangs often. It works fine with Chrome v35.0.1916.153 on the same computer. There must be something related to the specific WebGL implementation in Safari.

How to edit buildings

Hey @lo-th,

Great work ! I was wondering if there was a way to 'mod' your game by changing the 3d images of the buildings.

Thanks,

JLM

Create a guide directory

Would be useful if we can create a directory where guides can be created for how different buildings impacts city eval and just generally how things work in the game.

Add a few 'Easter-eggs' -- a tip to improve

To lo-th,

An 'Easter-egg' is a secret function you can unlock when you carry out a comand such as type something (try typing 'awesome' [without qoutes] into a fullscreen youtube video [that's playing]) (also google search up 'do a barrel roll' [without quotes] ) there more egxamples here, read more about 'Easter eggs' here

You could probably insert the 'konami code' to your game to unlock more cash, or a secret building:
you could cheack out a list of page that use the konami code to ulock funstuff: here to access page press 'up', 'up', 'down', 'down', 'left', 'right', 'left', 'right', 'a', 'b'

(no quotes)
(using the arrow keys for the up, down, left, and rights and use letters on the keyboard for 'a', and 'b')

Regards,
Taiwei

Display pop-up when you hoer over a button for more details

you add a pop up when you hover over a button, for instance when you hover over you money it wll display 'your money' , and when you hover over the times of the days, it will display 'day', 'dawn' 'dusk', or, 'night'.

<div id="parent">
This is the main container.
<div id="popup" style="display: none">some text here</div>
</div>
var e = document.getElementById('parent');
e.onmouseover = function() {
  document.getElementById('popup').style.display = 'block';
}
e.onmouseout = function() {
  document.getElementById('popup').style.display = 'none';
}

or just using CSS you could get rid of the javascipt.

#parent #popup {
  display: none;
}

#parent:hover #popup {
  display: block;
}

you could also use the 'title attribute.

I'm not sure if the info above will help as you don't seem to be using HTML, only using javascript a lot and linking it to the <canvas> tag

Ragerds,
Taiwei

Can't Place Things Down.

Every time I click to place something down, it doesn't work. Maybe because im on a Chromebook.

crashes

crashes every time i load new map

no money after load

or people etc, and when you try to add track, which you can't afford, where a tree is, you get just the tree shadow.
screenshot from 2015-01-24 23 39 36

Tile deletions are not reflected in game

After I reached a certain point in the game, deleting a used tile would erase the buildings. However, the tile itself would still contain the placeholder for what that tile used to be (C/R/etc.). Here's a screenshot of a bulldozed residential area that is 'clear' when queried:
capture

Tile modifications cease being rendered

Eventually, in every game that I play, I reach a point when new tiles cease to be rendered. That is, if I add a residential block or a stadium, the tile appears to be vacant, although all other indications are that the residential block (or stadium) exists. Cities don't have to be particularly large before this starts to occur. For instance, this is my current city:

city

Here's what happens when I add a stadium:

missing

The no-power indicator on vacant land is where the stadium is. Using the query tool, I have queried that spot, and you can see that it reports that it's a stadium.

This happens anytime I add anything, even if I save the game, close my browser window, start a new game, and reload. I assume that indicates that something is wrong in the city data, as opposed to a rendering bug or a memory error.

To be clear, I don't know that this is about the size of the city. Perhaps it's after a certain amount of time elapses. Or perhaps it's random, and I have coincidentally only encountered it when my cities have matured some.

Cannot read property 'vertexNormals' of undefined

After a little bit of playing, I cannot build anymore and everything I try I get::
13three.min.js:183 Uncaught TypeError: Cannot read property 'vertexNormals' of undefined
three.min.js:183 Uncaught TypeError: Cannot read property 'vertexNormals' of undefinedthree.min.js:183 THREE.BufferGeometry.fromGeometryview.min.js:45 V3D.Base.rebuildTreeLayerview.min.js:44 V3D.Base.removeTreePackview.min.js:58 V3D.Base.buildview.min.js:9 cityWorker.onmessage

WHAT IS THIS

I do not no if it is a glitch or if its just alien trying to invade my city but here it is.
image

Error creating webgl context (firefox) in demo

Unfortunately the demo won't run in firefox 41.0.2 on Debian 8.

Error creating webgl context Three.min.js, line 525

Followed by typerror l is null on 525 col 472
...c();Ca={}},!1)}catch(Dc){console.error(Dc)}void 0===l.getShaderPrecisionFormat&

Apparently, it's a problem with my syste/browser!

Violates GPL V3 License

All files in the src/ directory are taken from https://github.com/graememcc/micropolisjs, with various minor modifications.

micropolisJS is licensed under the GPLv3, and as such contains a LICENSE file, a COPYING file, and copyright headers at the start of every other file. The GPLv3 requires that any modifications should also contain the GPL license, COPYING file, and must preserve the copyright headers from the original source.

The GPL license and copyright headers from micropolisJS have been stripped from the files in the src directory which violates the licensing terms. They must be restored.

'self' is not defined

When 'use strict' is at the top of the page, it says "'self' is not defined" even though it is a reserved keyword.

keyboard controls

Hi, I love the old sim city and play from time to time with your implementation, but for me it would really help to be able to control the camera with the keyboard (up, down, left, right). there are some tiny bugs (not beeing able to set power cables for example at some spots), but I've not been able to reproduce it until now...
happy coding!

Move license to AGPLv3

AGPLv3 would be a more appropriate license for a web app such as this, since it would prevent people from hosting the code themselves and creating proprietary forks that don't have to be served because they technically aren't being distributed.

Ideas

Hey lo-th,

I have a few ideas for the simulation.

  1. Add individual residence buildings: House, Apartment, Hotel, etc.
  2. Add hospital
  3. Add grocery stores, supermarkets, malls, etc.

I will add to this if I find any more ideas!

Zones Disappear

After a certain amount of time, new zones are suddenly no longer visible. Saving and opening again in a new tab seems to help, until it doesn't.

Now after a "reset", even previously visible zones are gone. This land was fully populated before, and the traffic suggests it's fully populated now despite being invisible.

untitled-1

track issues

track over water not joining up

erasing track not updating surrounding track

screenshot from 2015-01-21 00 59 12

start with costume map

how to start the game with the costume map?
I want to start the game with the same map that has 2 streets

Have no clue on what to do from the start

Hey there,
I just saw this game and saw it as a very interesting Idea so tried out your game but i must be missing something because unlike everyone else, i couldn't even get people to spawn in so i thought i should send a recommendation to you saying that you should add a tutorial of some sorts.
In the tutorial, show a step-by-step run down of how to get started whenever the user starts a new world. The tutorial is optional though for those users with lots of experience, they can just toggle the tutorial off in the map generation area with a switch or something of the sort.
Please consider this because currently i have no clue on what to do after the game has started.
From,
DHUNT3ER1

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.