1 implementation module render
3 import StdIOCommon, StdPicture, StdPSt
5 import renderGameFlatlandish // the default rendering style
6 import renderGameFixCamera // 2.5D rendering with fixed camera and angles at south-east
8 instance nameOf RenderStyle where nameOf style = style.RenderStyle.name
10 allRenderStyles :: [RenderStyle]
11 allRenderStyles = [ renderFlatland
15 green :== RGB {r=30,g=140,b=40} // dark green works better on a beamer
16 home_colour :== RGB {r=255,g=255,b=70} // yellow works well on dark green background
17 away_colour :== RGB {r=102,g=255,b=255}
20 WestColour = home_colour
23 EastColour = away_colour
25 renderAttributes :: !*env -> (![PenAttribute],!*env) | accScreenPicture env
26 renderAttributes env = accScreenPicture attributes env
28 attributes :: !*Picture -> (![PenAttribute],!*Picture)
30 # ((_,font),picture)= openFont SmallFontDef picture
31 = ([PenBack green,PenFont font],picture)