lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

From: "Joe Smith" <>
Reply-To: Lua list <>
Subject: Re: A newbie has problems with Lua
Date: Mon, 14 Aug 2006 12:15:11 -0400

"Vegetable" wrote in message">

The error come in

function draw_map()
       for i=0,map_size_x-1 do
               for j=0,map_size_y-1 do

That code looks odd...

Check that you really want
"(i-x_map)" and not "(x_map-i)".
Same with y_map.

x_map and y_map is the position of the tile at the left and the top of the screen.

If i do x_map-i, if x_map==0 then i do (-i) what is not what i want

The problem is that something corrupt lua's internal state and i don't know what...

Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search !