Render HP
This commit is contained in:
parent
d0302c3156
commit
1dc8aac4c7
5 changed files with 31 additions and 12 deletions
|
@ -42,14 +42,19 @@ allItems = [
|
|||
("key", "key.png" )
|
||||
]
|
||||
|
||||
allGui :: [(String, FilePath)]
|
||||
allGui = [
|
||||
("health", "health.png")
|
||||
]
|
||||
|
||||
-- Map of all renders
|
||||
library :: [(String, Picture)]
|
||||
library = unknown:entities ++ environment ++ gui ++ items
|
||||
where unknown = ("unknown", renderPNG (assetsFolder ++ unknownImage))
|
||||
entities = map (\(f, s) -> (f, renderPNG (assetsFolder ++ "entities/" ++ s))) allEntities
|
||||
entities = map (\(f, s) -> (f, renderPNG (assetsFolder ++ "entities/" ++ s))) allEntities
|
||||
environment = map (\(f, s) -> (f, renderPNG (assetsFolder ++ "environment/" ++ s))) allEnvironment
|
||||
gui = []
|
||||
items = map (\(f, s) -> (f, renderPNG (assetsFolder ++ "items/" ++ s))) allItems
|
||||
gui = map (\(f, s) -> (f, renderPNG (assetsFolder ++ "gui/" ++ s))) allGui
|
||||
items = map (\(f, s) -> (f, renderPNG (assetsFolder ++ "items/" ++ s))) allItems
|
||||
|
||||
------------------------------ Exported ------------------------------
|
||||
|
||||
|
|
Reference in a new issue