forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LP 0.7 --> 0.8 problem

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Sun Aug 21, 2005 2:56 am    Post subject: LP 0.7 --> 0.8 problem Reply with quote

well just tried to update VgSlag's Pyramid Panic to 0.8 compatibility (as a start, to use the 'engine')
well works fine till one problem comes:
Code:

-- Function to render the map
function f_drawMap()
   
   -- Render the map
   for i_counter_0 = 0, 16 do
      for i_counter_1 = 0, 29 do
      
         -- Is it data?
         if a_map_0_gfx[(i_counter_0 + 1)][(i_counter_1 + 1)] ~= 0 then
         
            -- Yes, use it
            Image:blit(16 * i_counter_1, 16 * i_counter_0, o_tiles[a_map_0_gfx[(i_counter_0 + 1)][(i_counter_1 + 1)]], g_backGround)
            
            -- Is it an animated tile?
            if a_map_0_gfx[(i_counter_0 + 1)][(i_counter_1 + 1)] == 50 then
            
               -- Push it into the table
               table.insert(o_torchesPosition, {i_counter_0, i_counter_1})
            end
         end
      end
   end
end

well i can tell where the problem is, but not how to solve it...
further this line is the problem:
Image:blit(16 * i_counter_1, 16 * i_counter_0, o_tiles[a_map_0_gfx[(i_counter_0 + 1)][(i_counter_1 + 1)]], g_backGround)

what does this line mean?
it means it draws the on position(x)=16 * i_counter_1, postition(y)16 * i_counter_0, draw image loaded previously and stored in array o_tiles[x][y], draw to background
thats what i think it means (guess i am right);

the strange thing is, that those animated things get drawn!

greets
LuMo
Back to top
View user's profile Send private message Visit poster's website
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Sun Aug 21, 2005 10:40 am    Post subject: Reply with quote

hab den fehler gefungen;
eigentlich ein dummer fehler :-S

Code:
g_backGround:blit(16 * i_counter_1, 16 * i_counter_0, o_tiles[a_map_0_gfx[(i_counter_0 + 1)][(i_counter_1 + 1)]], g_backGround)

wärs gewesen...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group