I kept wondering if my city was going to burn down any minute.
Does it make any difference if power lines are over a road?
I kept wondering if my city was going to burn down any minute.
Does it make any difference if power lines are over a road?
The power lines are used for the flood fill algorithm to check what is powered by the power plant. I was planning to use a similar flood fill to determine which buildings are connected by the road network to weight how buildings influence one another.
Early on I did consider have the 2-bit tile map represent clear, road, power line or railway but ultimately thought it would be better to just skip having the railways and allow power lines to overlap roads like in the original SimCity.
This is super cool and extremely polished but I feel that the game is quite easy as is, I mean I do not remember the old simcity but I used to suck on several āsimā games
@jhhoward Are you going to add some objectives or challenges besides disasters?
It probably is a bit too easy right now for the townās population to grow quickly. There are several factors that affect growth based on crime, pollution and the types of buildings placed. I will probably tweak these for the next release to make gameplay more challenging. I could potentially add easy/medium/hard difficulty levels by having different sets of values so that e.g. there is more crime in hard mode.
In terms of objectives, the original SimCity has scenarios with existing cities, but Iām not currently planning to add those right now. It also had dialog popups with milestones once the city had achieved town, city and metropolis status which is something I might add to give some feedback on how you are doing.
This is like the coolest thing in the world. Itās my new favorite game to show people
Great job on creating a Sim game!!
Just a quick question, Is it normal that when this game is on my arduboy, when the arduboy boots thereās always 0BBB0 under the arduboy text? Was just wondering if itās an issue with my arduboy or if itās somewhat normal. Itās not doing this when i use other games.
additional info: I uploaded the .hex file using Arduboy Mate.
@bateske Thanks! Glad to hear you are enjoying the game
@Vampirics I believe this is a feature from the Arduboy2 library:
A user settable unit name of up to 6 characters can be saved in system EEPROM memory. If set, this name will be briefly displayed at the bottom of the boot logo screen, after the logo stops scrolling down.
Iām not entirely sure how you change this though? Anyway, doesnāt sound like there is anything wrong with your hardware!
Itās displaying the Unit Name from EEPROM which must have been set by a previous sketch (perhaps one that illegally wrote to the system EEPROM area). You can set a Unit Name, or disable the displaying of it, using the SetNameAndID example sketch included in the Arduboy2 library.
From the Arduino IDE select
File > Examples > Arduboy2 > SetNameAndID
Thank you for your quick reply.
You could probably rework the render engine to give you the 1kb from the buffer back for actual game use, but if the goal was to fit the save state into the 1kb of EPROM (which makes sense if you want to save to play later) then getting more RAM isnāt really going to help you much since you canāt effectively persist it.
If you have space left in flash some type of bit-wise RLE encoding on the road and power line data could possibly be quite effective.
This is amazing. Thank you for creating MicroCity.
Could you please add a license to your github project, so we know what terms youāre distributing under.
Thanks <3
Yup Iām @jameshhoward
Yeah this is something I initially considered but as you mentioned the EEPROM size is the real limit. I actually reuse the screen buffer memory when doing the flood fill for determining which buildings are connected to the power grid.
I also thought about how else I could compress this as it takes up such a huge chunk of space. The only problem with something like RLE is you canāt guarantee how much it is going to compress down to. It would really suck if sometimes you couldnāt save the game because you just so happened to have made a pattern that doesnāt compress well enough to fit.
Thanks! Iāve updated the github repo to include a license (GPLv3)
Build a ātoo many roadsā errors into the game and stop someone from building more road if they get close. Iād wager for 99% of cases (lots of straight roads and long stretches of uninterrupted land) youād be just fine with no issue at all. You could obviously do you own tests to confirm this or not.
This is the first time Iāve played an Arduboy game for multiple hours. The save feature is really great in this one.
Iāve got a small city going right now that is perfectly stable. Iāve just been carrying the device around with me and hitting the B button every 66 seconds or so to get past the financial data that pops up every year. Itās nice to be able to just let a city go like that.
Great game! Thatās currently the permanent game of one of my 2 arduboys. Looking forward for the fire to destroy my too rich city!
@jhhoward you might want to edit your post and warn people that they may need to use flashlight mode to reprogram their device as it seems like this game hits yeā olde magic number glitch.
Iāve updated the top post for anyone who gets stuck unable to flash a new game. Do you know what causes this glitch and how I might be able to work around it?
I have an update in the works which includes fire simulation but it isnāt quite ready to release yet. I just need to find some time to finish off a version 1.1
The work around is flashlight mode. There is a fixed location in RAM used for a āmagic keyā that tells the bootloader to enter command mode after a reset, to allow uploading a new sketch. The problem has to do with this location also being used by the sketch, and the key being overwritten before the reset occurs.
The next release of the Arduboy boards package will include a fix that will all but eliminate the problem, without requiring flashlight mode.