X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=blobdiff_plain;f=tabakrolletjie%2Fscenes%2Fhelp.py;h=4ec31fc5d7e9b083b5940821f150f6fc5eff3bd1;hp=46c176d0943fe5817c13e22d913e3cf740acfff4;hb=8a3d3e9efc18aafa3acf347bd059d4fc41a23a2e;hpb=ab730f79ba451af8143fe7b7a6c7a33a4c31c9da diff --git a/tabakrolletjie/scenes/help.py b/tabakrolletjie/scenes/help.py index 46c176d..4ec31fc 100644 --- a/tabakrolletjie/scenes/help.py +++ b/tabakrolletjie/scenes/help.py @@ -95,35 +95,22 @@ class HelpScene(BaseScene): " varying properties. It is powered by your farm's battery" " during the night. The battery recharges during the day."), transform=Multiply(colour=COLOURS["yellow"])), + HelpItem(("48", "pulsatinglamp.png"), ( + "This is a pulsating lamp. Its light radius increases and" + " decreases."), + transform=Multiply(colour=COLOURS["cyan"])), HelpItem(("48", "spotlight.png"), ( - "This is a spotlight. Unlike a lamp, it has a rotating beam." + "This is a spotlight. Unlike a lamp, it has a beam which is" + " pointed in a particular direction. To change the direction of" + " a beam, right-click near the spotlight and drag. You can only" + " do this during the day. Some spotlights rotate."), + transform=Multiply(colour=COLOURS["red"])), + HelpItem(("48", "lamp.png"), ( " Lights can be multicoloured, like this one. You can toggle" " lights on and off at night to conserve power, and toggle the" " colour of multicoloured lights."), transform=ColourWedges(colours=("red", "green"))), - HelpItem(("32", "night.png"), ( - "When you have finished planting seeds and placing lights, you" - " can prepare for Boyd's night-time onslaught by clicking this" - " button.")), - HelpItem(("32", "pause.png"), ( - "You can pause the game during the night if you need to make a" - " more detailed analysis of why you're losing horribly.")), - HelpItem(("32", "day.png"), ( - "If you have run out of turnips, you can click this button to" - " skip to the next day. Or you can keep playing with your lights." - " If you have no power left either, or you are completely" - " bankrupt, the night will end automatically.")), - HelpItem(("32", "spotlight.png"), ( - "Click on a light icon like this to get a menu of colour options" - " available on your level.")), - HelpItem(("32", "spotlight.png"), ( - "Once you have selected a colour option, you will be able to" - " place the light."), - transform=Multiply(colour=COLOURS["magenta"])), - HelpItem(("32", "exit.png"), ( - "Click this icon to quit the level in disgust and return to the" - " menu.")), - ]) + ]) soil = HelpItem(("48", "square.png"), ( "This is soil. You can plant seeds in it and position lights on" @@ -149,6 +136,38 @@ class HelpScene(BaseScene): (0, 0), None, pgl.BLEND_RGBA_MULT) items.append(shrub) + items.extend([ + HelpItem(("32", "spotlight.png"), ( + "Click on a light icon like this to get a menu of colour options" + " available on your level.")), + HelpItem(("32", "spotlight.png"), ( + "Once you have selected a colour option, you will be able to" + " place the light, as long as this does not reduce your seed" + " count to zero. The cost will be deducted from your seed" + " total."), + transform=Multiply(colour=COLOURS["magenta"])), + HelpItem(("32", "remove.png"), ( + "Buyer's remorse? Use this icon to blow up unwanted lights. You" + " don't get your money back. Sorry.")), + HelpItem(("32", "default_cursor.png"), ( + "You can use this to change your cursor back to an arrow.")), + HelpItem(("32", "night.png"), ( + "When you have finished planting seeds and placing lights, you" + " can prepare for Boyd's night-time onslaught by clicking this" + " button.")), + HelpItem(("32", "pause.png"), ( + "You can pause the game during the night if you need to make a" + " more detailed analysis of why you're losing horribly.")), + HelpItem(("32", "day.png"), ( + "If you have run out of turnips, you can click this button to" + " skip to the next day. Or you can keep playing with your lights." + " If you have no power left either, or you are completely" + " bankrupt, the night will end automatically.")), + HelpItem(("32", "exit.png"), ( + "Click this icon to quit the level in disgust and return to the" + " menu.")), + ]) + return items def render(self, surface, gamestate): @@ -169,6 +188,9 @@ class HelpScene(BaseScene): height = 50 x_offset = SCREEN_SIZE[0] / 2 + for tool in self._tools: + tool.render(surface) + def event(self, ev, gamestate): if ev.type == pgl.KEYDOWN: if ev.key in (pgl.K_q, pgl.K_ESCAPE):