-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
At the moment the grass texture variant is based on a random number. The problem with this approach is that the texture changes while walking.
So we somehow want to determine and store the texture state on the server, for example as %Grass{texture: 2} and %Tree{texture: 4}.
This also means that tiles can have multiple layers, for example:
[
%Grass{texture: 2},
%Tree{texture: 4}
]Thoughts on this?
Would something like this make sense?
%Game{
field: [
# row 1 (11 tiles)
[
%Tile{layers: [%Grass{texture: 2}]},
%Tile{layers: [
%Grass{texture: 2},
%Bear{}
]},
%Tile{id: 3, layers: [%Grass{texture: 4}]},
# ...
],
# row 2 (11 tiles)
[
%Tile{layers: [%Grass{texture: 3}]},
%Tile{layers: [%Grass{texture: 2}]},
%Tile{layers: [
%Grass{texture: 1}
%Tree{texture: 3}
]},
# ...
]
# 9 more rows ...
]
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested