added snowflake object

This commit is contained in:
troido 2019-01-20 16:41:30 +01:00
parent c51bf0cd77
commit a23533980f
3 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@
"closeddoor": ["",1 ,3],
"opendoor": ["",3],
"raindrop": ["",12],
"snowflake": ["",15],
" ": [" ", 7]
},
"default": ["", 7],

View File

@ -41,6 +41,7 @@
"closeddoor": ["+",1, 3],
"opendoor": ["\"", 3],
"raindrop": [":", 12],
"snowflake": ["*", 15],
" ": [" ", 7]
},
"writable": {

View File

@ -28,3 +28,5 @@ entities["roomexit"] = lambda destRoom, destPos=None, mask=(False, False), sprit
entities["wound"] = lambda duration=4, height=0.2: Entity(sprite="wound", name="", height=height, components={"volatile": Volatile(duration), "serialize": Static(None)})
entities["raindrop"] = lambda: Entity(sprite="raindrop", name="", height=10, components={"weather": Weather(speed=2.5, spread=0.2), "serialize": Static(None)})
entities["snowflake"] = lambda: Entity(sprite="snowflake", name="", height=10, components={"weather": Weather(speed=1, spread=0.5), "serialize": Static(None)})