luteijn
Member
Tux is falling down; looks like the level is autoscrolling in the mean time at quite some speed.
tux set to x: -1 y: -1
overriding to 1,1
action: base.x: 1 base.y: 1
base.x: 1 base.y: 2.156
action: base.x: 1 base.y: 2.156
base.x: 1 base.y: 4.268
action: base.x: 73 base.y: 4.268
base.x: 73 base.y: 7.404
action: base.x: 145 base.y: 7.404
base.x: 145 base.y: 11.892
action: base.x: 217 base.y: 11.892
base.x: 217 base.y: 17.536
action: base.x: 289 base.y: 17.536
base.x: 289 base.y: 24.336
action: base.x: 361 base.y: 24.336
base.x: 361 base.y: 32.832
action: base.x: 433 base.y: 32.832
base.x: 433 base.y: 41.709
action: base.x: 505 base.y: 41.709
base.x: 505 base.y: 52.011
action: base.x: 577 base.y: 52.011
base.x: 577 base.y: 63.469
action: base.x: 649 base.y: 63.469
base.x: 649 base.y: 75.679
action: base.x: 721 base.y: 75.679
base.x: 721 base.y: 89.415
action: base.x: 793 base.y: 89.415
base.x: 793 base.y: 104.78
action: base.x: 865 base.y: 104.78
base.x: 865 base.y: 120.862
action: base.x: 937 base.y: 120.862
base.x: 937 base.y: 139.186
action: base.x: 1009 base.y: 139.186
base.x: 1009 base.y: 158.806
action: base.x: 1081 base.y: 158.806
base.x: 1081 base.y: 179.106
action: base.x: 1153 base.y: 179.106
base.x: 1153 base.y: 200.631
action: base.x: 1225 base.y: 200.631
base.x: 1225 base.y: 222.697
action: base.x: 1297 base.y: 222.697
base.x: 1297 base.y: 245.203
he's falling down past 240, at which point the 'kill' function is called..
I suspect the levels are set up for 640x480.. probably need to halve all the coordinates in them when reading them in..
P.
Edit:
In level.cpp I replaced a couple of occurences of '32' with '16' and divided some positions in the levels by 2:
collision detection seems to be a little off still, but already looks a lot better.
probably there's still places in the code where you need to divide by 2, have fun looking for them and completing the port.
P.
tux set to x: -1 y: -1
overriding to 1,1
action: base.x: 1 base.y: 1
base.x: 1 base.y: 2.156
action: base.x: 1 base.y: 2.156
base.x: 1 base.y: 4.268
action: base.x: 73 base.y: 4.268
base.x: 73 base.y: 7.404
action: base.x: 145 base.y: 7.404
base.x: 145 base.y: 11.892
action: base.x: 217 base.y: 11.892
base.x: 217 base.y: 17.536
action: base.x: 289 base.y: 17.536
base.x: 289 base.y: 24.336
action: base.x: 361 base.y: 24.336
base.x: 361 base.y: 32.832
action: base.x: 433 base.y: 32.832
base.x: 433 base.y: 41.709
action: base.x: 505 base.y: 41.709
base.x: 505 base.y: 52.011
action: base.x: 577 base.y: 52.011
base.x: 577 base.y: 63.469
action: base.x: 649 base.y: 63.469
base.x: 649 base.y: 75.679
action: base.x: 721 base.y: 75.679
base.x: 721 base.y: 89.415
action: base.x: 793 base.y: 89.415
base.x: 793 base.y: 104.78
action: base.x: 865 base.y: 104.78
base.x: 865 base.y: 120.862
action: base.x: 937 base.y: 120.862
base.x: 937 base.y: 139.186
action: base.x: 1009 base.y: 139.186
base.x: 1009 base.y: 158.806
action: base.x: 1081 base.y: 158.806
base.x: 1081 base.y: 179.106
action: base.x: 1153 base.y: 179.106
base.x: 1153 base.y: 200.631
action: base.x: 1225 base.y: 200.631
base.x: 1225 base.y: 222.697
action: base.x: 1297 base.y: 222.697
base.x: 1297 base.y: 245.203
he's falling down past 240, at which point the 'kill' function is called..
I suspect the levels are set up for 640x480.. probably need to halve all the coordinates in them when reading them in..
P.
Edit:
In level.cpp I replaced a couple of occurences of '32' with '16' and divided some positions in the levels by 2:
Code:
uteijn@dollar:~/devel/gp2x/gp2x-supertux-0.1.3/src$ diff level.cpp ../../supertux-0.1.3/src/level.cpp
371,372d370
< pos.x>>=1;
< pos.y>>=1;
396,397d393
< bg_data.x>>=1;
< bg_data.y>>=1;
455c451
< x*16, y*16, false));
---
> x*32, y*32, false));
778,779c774,775
< yy = ((int)y / 16);
< xx = ((int)x / 16);
---
> yy = ((int)y / 32);
> xx = ((int)x / 32);
probably there's still places in the code where you need to divide by 2, have fun looking for them and completing the port.
P.