 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Sun Aug 21, 2005 2:56 am Post subject: LP 0.7 --> 0.8 problem |
|
|
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 |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Sun Aug 21, 2005 10:40 am Post subject: |
|
|
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 |
|
 |
|
|
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
|