youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Give the human and NPCs a home #74

Closed holke closed 4 years ago

holke commented 4 years ago

Add a picture of a house or better multiple houses, where the player and the NPCs can live. These pictures can then be used in level design.

maccxs commented 4 years ago

Multiple NPCs should live in one home, otherwise we clutter the map with houses. We could have single persons or families with kids live there, maybe add a high storage building where, even more can live.

maccxs commented 4 years ago

See a1803cabea6529d9b08896de0580dd28361f118a for an example.

maccxs commented 4 years ago

Maybe also add a hospital?

maccxs commented 4 years ago

I added a hospital in the same folder of that branch. The num of smileys at home and in the hospital could be variable, so one picture for each possibility. The NPCs would then be invisible once they enter the house, instead the picture of the house would show up with the appropriate num of smileys. Or the hospital.

maccxs commented 4 years ago

If this is reasonable I can provide pics for all these possibilities.

maccxs commented 4 years ago

A more fancy variant is also provided in the folder. Maybe I like that even better.

maccxs commented 4 years ago

AdditionalData/fancyHouses4Smileys.png

maccxs commented 4 years ago

I will open a new branch for this.

holke commented 4 years ago

Nice! I especially like the colored houses. I fear that the hospital with only black outlines is not really visible on the map, though.

maccxs commented 4 years ago

I provided the fancy colored houses with up to 8 inhabitants. But then I thought, well, this already takes a lot of time. How about we add the player and then the player gets infected, need separate house for that, then infected smiley, another house for that, another infected smiley.... this will never stop! What we have to do: If NPC touches door to come home:

Same for the house of the player. I could provide the house and the windows separately which looks quite nice when you place the sprite behind the house and before the window (see exampels 1...8). It would also be easy to add more similar houses in different color. I would only place 2 smileys in one window, not 4 (see examples).

holke commented 4 years ago

Having extra sprites for each NPC in a home indeed takes a lot of time.

Why not make this simpler? The NPC move to its house and when its there it does not vanish but just stays on top of the house?

maccxs commented 4 years ago

On top of the house? On the roof?

maccxs commented 4 years ago

Added hospital

holke commented 4 years ago

Like on top of the sprite as seen from the camera view. This

/    \
| :) |
|__ _|

Not this

  :)
/    \
|    |
|__ _|
maccxs commented 4 years ago

But my way looks better ;-)

maccxs commented 4 years ago

Making the sprite vanish is no real problem, you only have to change their layer and stop their movement as if they were dead and invisible. But maybe I still don't understand you- It's all this disco music.

holke commented 4 years ago

ok, then i misunderstood you. I thought you meant it was a lot of work to make the smileys disappear and appear in the houses.