simon987 / Much-Assembly-Required

Assembly programming game
GNU General Public License v3.0
930 stars 87 forks source link

Constructing buildings #109

Closed djsheehy closed 6 years ago

djsheehy commented 6 years ago

This won't be easy but I think it's important. We need a use for all the copper, iron, and whatever other resources we might add to the game. Otherwise there's no point gathering them. Here's how my proposal will work.

  1. Gather metal with the drill as usual.
  2. Go to where you want to build.
  3. Set register A to the BUILD action ID.
  4. Set register B to the type of building you want.
  5. After a number of ticks, (or instantly?) an unfinished building will appear.
  6. Keep gathering materials and adding it to the building with the ADD_MATERIALS command.
  7. Maybe there's a way to check how much material the building needs.
  8. When it has enough materials, the building will appear.
arthurpaulino commented 6 years ago

i think that allowing players to build their own structures can lead to heavily polluted worlds. UNLESS the server has its own mechanics of corroding existing buildings. only maintained buildings would thrive against erosion. it would add a co-op feeling to the game experience.

djsheehy commented 6 years ago

I agree. I don't want permanent structures cluttering up the place.

simon987 commented 6 years ago

Definitely a planned feature, but I want to implement this later on, after v1.4a. Some structures ideas would be:

djsheehy commented 6 years ago

So you're going to have user code control multiple robots, like in Screeps?

simon987 commented 6 years ago

It is a planned feature, yes.