endymc / city-simulator Goto Github PK
View Code? Open in Web Editor NEWMy thought is to make something like Stonehearth, even though I've never played the game at all
Home Page: https://endymc.github.io/City-Simulator/
My thought is to make something like Stonehearth, even though I've never played the game at all
Home Page: https://endymc.github.io/City-Simulator/
On the far right side, the hover effect isn't updated at all. The cause is probably the infopanel which is sometimes shown there. But even when it's not, the hover is still blocked by it.
Assign blocks to chunks so that it isn't needed to loop over every single block and just chunks, if the chunk matches, then it can loop over it too. The chunksize can be either 2^n blocks and n is everything between log(64)/log(2) and 1. Or it can be a static size of something like 8.
There's something weird going on when updating the frames. Even though the whole requestAnimationFrame
callback takes 7ms - 8ms the game is sometimes only updated 30 or 40 times per second. This is mainly on Firefox, Chrome seems to be more stable and holds 60fps with the same frametime.
No idea why, but whenever I have this website open in firefox, it starts messing with and corrupting all of the other pages I have open.
The usage of CPU, RAM and GPU were below normal and it worked fine in Chrome.
When to world is loading, there's currently only some plain text in the middle of the screen. It would be cool if this text was moved to the bottom right corner and instead of x/10 there should be an arc (a circle, maybe a donut) which is filled when the content is loaded. Taking up most of the screen, there should either be some cool image or a render of the world as it is currently, since it probably looks pretty cool when in the process of creating the world.
Blacksmith
Fletcher
The current way to save the world only seems to work in Firefox, the IndexedDB just doesn't load at all in Chrome. According to the devtools it doesn't exist. Which should result in a fresh database getting created. But nothing happens...
Edge has similar issues to chrome.
Since there's quite alot of water on the map, it should be appropriate to introduce boats in all their forms. Maybe make the terrain generation so that it favors long rivers even more.
Not sure if this way is better than the current way, but there's a chance that it's faster. If anything, it should make a more diverse terrain, much more mountainous than now.
The game won't load, I think this is because the chunk images are so large that it takes up the whole amount of memory available. The fix for this would be to make the images smaller or making the chunks smaller so that there's more amount of chunks which are the same as each other.
The game doesn't zoom towards the middle of the screen, it instead zooms towards the top-left corner, as that is it's origin. This isn't intuitive.
Similar to boats, this could be used to transport goods and population to and from the map. This type of vehicle should be able to move on land tiles, but should get a speed/security boost when traveling on path tiles. To pass over water, there is a need to build a bridge.
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.