Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructing buildings #109

Closed
djsheehy opened this issue Jan 5, 2018 · 5 comments
Closed

Constructing buildings #109

djsheehy opened this issue Jan 5, 2018 · 5 comments

Comments

@djsheehy
Copy link
Contributor

djsheehy commented Jan 5, 2018

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
Copy link
Contributor

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
Copy link
Contributor Author

djsheehy commented Jan 5, 2018

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

@simon987
Copy link
Owner

simon987 commented Jan 6, 2018

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

  • Battery (Store energy)
  • Solar panel (Outputs to adjacent batteries)
  • Obstacle (blocks path)
  • Rocket (Rocket #36)
  • Nuclear Power Plant (Outputs to adjacent batteries, Nuclear Power Plant #38)
  • Crusher (Suicide booth for user-controlled NPCs + trap -> crushes NPCs to get otherwise unobtainable item)
  • Gate (Blocks path, open with comport or with special radio tower message)....

@djsheehy
Copy link
Contributor Author

djsheehy commented Jan 6, 2018

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

@simon987
Copy link
Owner

simon987 commented Jan 6, 2018

It is a planned feature, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants