From 90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 15 Mar 2010 14:46:14 +0100 Subject: Reorganized code to add Debris class --- src/Render.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Render.hs') diff --git a/src/Render.hs b/src/Render.hs index fddfbcb..e243580 100644 --- a/src/Render.hs +++ b/src/Render.hs @@ -6,6 +6,7 @@ module Render ( setup import Paths_htanks import Game import Level +import Tank import Texture import Control.Monad.State @@ -89,13 +90,13 @@ render = do texCoord $ TexCoord2 (0 :: GLfloat) (0 :: GLfloat) vertex $ Vertex2 0 lh - texCoord $ TexCoord2 lw 0 + texCoord $ TexCoord2 (lw/2) 0 vertex $ Vertex2 lw lh - texCoord $ TexCoord2 lw lh + texCoord $ TexCoord2 (lw/2) (lh/2) vertex $ Vertex2 lw 0 - texCoord $ TexCoord2 0 lh + texCoord $ TexCoord2 0 (lh/2) vertex $ Vertex2 (0 :: GLfloat) (0 :: GLfloat) forM_ tanklist $ \tank -> preservingMatrix $ do -- cgit v1.2.3