IMG32=$(TURNIP) $(MOULD_BODY) $(MOULD)
IMG64=$(MOULD_BODY) $(LIGHT)
+CURSORS=seed
+
PNG16=$(patsubst %, 16/%.png, $(IMG16))
PNG32=$(patsubst %, 32/%.png, $(IMG32))
PNG64=$(patsubst %, 64/%.png, $(IMG64))
+PNG_CURSORS=$(patsubst %, cursors/%.png, $(CURSORS))
-all: $(PNG16) $(PNG32) $(PNG64)
+all: $(PNG16) $(PNG32) $(PNG64) $(PNG_CURSORS)
16/%.png: %.svg
@mkdir -p `dirname $@`
@mkdir -p `dirname $@`
@inkscape -z -e $@ -w 64 -h 64 $<
+cursors/%.png: 32/%.png
+ @cp $< $@
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
- inkscape:window-width="1264"
+ inkscape:window-width="1366"
inkscape:window-height="720"
- inkscape:window-x="102"
+ inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
+ <dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-698.0315)">
- <g
- id="g4144"
- transform="translate(0.02251533,17.209779)">
- <path
- sodipodi:nodetypes="sssss"
- inkscape:connector-curvature="0"
- id="path4136"
- d="m 302.14284,870.2193 c 0,53.25603 -56.71062,106.55148 -125,96.42857 C 99.47207,955.1343 52.142841,923.47533 52.142838,870.2193 c -3e-6,-53.25603 75.250122,-122.14286 144.285712,-122.14286 69.0356,0 105.71429,68.88683 105.71429,122.14286 z"
- style="opacity:0.98000004;fill:#552200;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- sodipodi:nodetypes="sssss"
- inkscape:connector-curvature="0"
- id="path4141"
- d="m 277.85714,822.00509 c 2.34061,26.45347 -15.00264,35.353 -40.35715,33.21428 -19.02523,-1.60483 -45.25008,-19.65903 -60.35714,-39.64285 -16.6767,-22.06016 -0.60652,-48.69986 46.07143,-41.78571 37.337,5.53053 52.61984,25.35028 54.64286,48.21428 z"
- style="opacity:0.98000004;fill:#a05a2c;fill-opacity:1;stroke:none;stroke-width:5;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- </g>
+ <path
+ style="opacity:0.98000004;fill:#800080;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 302.16536,887.42908 c 0,53.25603 -56.71062,106.55148 -125,96.42857 C 99.494585,972.34408 52.165356,940.68511 52.165353,887.42908 c -3e-6,-53.25603 75.250127,-122.14286 144.285717,-122.14286 69.0356,0 105.71429,68.88683 105.71429,122.14286 z"
+ id="path4136"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sssss" />
+ <path
+ style="opacity:0.98000004;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:5;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 277.87966,839.21487 c 2.34061,26.45347 -15.00264,35.353 -40.35715,33.21428 -19.02523,-1.60483 -45.25008,-19.65903 -60.35714,-39.64285 -16.6767,-22.06016 -0.60652,-48.69986 46.07143,-41.78571 37.337,5.53053 52.61984,25.35028 54.64286,48.21428 z"
+ id="path4141"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sssss" />
</g>
</svg>
""" Be prepared. """
import pygame.locals as pgl
+import pygame.surface
import pymunk
import pymunk.pygame_util
@debug_timer("day.render")
def render(self, surface, gamestate):
- surface.fill((0, 0, 155))
+ surface.blit(loader.load_image("textures", "soil.png"), (0, 0))
+ brightness = pygame.surface.Surface(surface.get_size())
+ brightness = brightness.convert_alpha()
+ brightness.fill((255, 255, 255, 50))
+ surface.blit(brightness, (0, 0))
+
for turnip in self._turnips:
turnip.render(surface)
self._lights.render_light(surface)
""" In the night, the mould attacks. """
import pygame.locals as pgl
+import pygame.surface
import pymunk
from ..enemies import Boyd
from ..events import SceneChangeEvent
from ..utils import debug_timer
+from ..loader import loader
from ..turnip import Turnip
@debug_timer("night.render")
def render(self, surface, gamestate):
- surface.fill((0, 0, 155))
+ surface.blit(loader.load_image("textures", "soil.png"), (0, 0))
+ darkness = pygame.surface.Surface(surface.get_size())
+ darkness = darkness.convert_alpha()
+ darkness.fill((0, 0, 0, 150))
+ surface.blit(darkness, (0, 0))
+
self._mould.render(surface)
+
for turnip in self._turnips[:]:
if turnip.eaten:
self._turnips.remove(turnip)