lo-th / 3d.city Goto Github PK
View Code? Open in Web Editor NEW3d city builder game
Home Page: http://lo-th.github.io/3d.city/index.html
License: Other
3d city builder game
Home Page: http://lo-th.github.io/3d.city/index.html
License: Other
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.
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
save and load, results is changed heights.
Constructing individual tiles of parks, as well as arrays of parks seem to be bugged. Building them beside residential areas and/or other types of tiles also does not work.
i cant reduce the pollution in my city, someone please help!
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.
"new map" appears to do nothing, but if you then do a save and load the map is then different.
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:
Here's what happens when I add a stadium:
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.
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
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!
how to start the game with the costume map?
I want to start the game with the same map that has 2 streets
When 'use strict' is at the top of the page, it says "'self' is not defined" even though it is a reserved keyword.
Hey lo-th,
I have a few ideas for the simulation.
I will add to this if I find any more ideas!
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!
I get strange FPS drops from 60 fps to 30 after placing one street/wire/rail. After six placements it comes down to 4 FPS. Does anyone has ideas why this could happen?
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):
Whenever I use the frag tool, I think the game lags and the graphics becomes glitchy.
In one direction it works (you see dotted yellow lines), but in an orthogonal direction, you get little sections of road.
INFO typo in tile chears=cheats
include a page with console cheats like thie page:
This also a chrome experiment
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.
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.
Every time I click to place something down, it doesn't work. Maybe because im on a Chromebook.
Every time I generate the map, it crashes.
crashes every time i load new map
Please keep working on this game i love it
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
also click sound not heard until moving cursor to another location, all tiles.
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
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.
The load menu should be put in the starting screen when you click 'play game' it should direct to 'new game' or 'load game'.
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
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.
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:
Read this for more
Regards,
Taiwei
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.
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.
The city seems to always have a huge crime issue. You can add tons of police stations, far more than one would expect, but still have high crime reported as an issue. See the HN reference as a potential fix. https://news.ycombinator.com/item?id=8147471
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.