If you have ideas how to remove the rather large safety margin off screen for the oversized tiles, feel free to share.
How about to determine max tile's size inside Map::load(std::string fname) while parsing bg layer ?
Yep, that is so.
I checked release and it does not stun or freeze.
Seems like VS debug is the reason.
I tried that from debug, and it just stun's the game
May be debug is the reason, but i have very good hardware(i7 3630QM @ 2.4GHz and 16 GB of ram), so it shouldnt
try to replace 3 enemygroups inmineshaft_longsword.txt
with this
[enemygroup]
type=miner
location=11,22,4,10
level=1,1
number=45,40
location=15,12,19,6
number=40,42
location=36,12,15,13
number=41,45
Run the game and come to mines, come close to all three groups (close enough when zombie's try to attack you)
Thanx for answering!
I already removed x2 multiplier )
But i didn't do this.
j = upperleft.y - tset.max_size_y/2 + tset.max_size_x;
Ill apply the whole fix.
Thanx alot again!
++
I tried to edit mineshaft_longsword.txt
Multiplied all enemygroups by 4
Was
number=10,12
After edit:
number=40,48
And when i came to all groups of enemies game just freeze and does not respond to input at all
i came to void GameStatePlay::logic()
and i commented that line hazards->logic();
and game went just fine (hehe i mean no freeze).
So hazards->logic() it causing game to freeze on large enemies groups.
Man, i have 640x480
Tile's size is 128x32
75 tiles needed to cover the screen.
2513 and 75, i think it is a huge difference
How about to determine max tile's size inside Map::load(std::string fname) while parsing bg layer ?
Yep, that is so.
I checked release and it does not stun or freeze.
Seems like VS debug is the reason.
I tried that from debug, and it just stun's the game
May be debug is the reason, but i have very good hardware(i7 3630QM @ 2.4GHz and 16 GB of ram), so it shouldnt
try to replace 3 enemygroups inmineshaft_longsword.txt
with this
[enemygroup]
type=miner
location=11,22,4,10
level=1,1
number=45,40
[enemygroup]
type=miner
location=15,12,19,6
level=1,1
number=40,42
[enemygroup]
type=miner
location=36,12,15,13
level=1,1
number=41,45
Run the game and come to mines, come close to all three groups (close enough when zombie's try to attack you)
Thanx for answering!
I already removed x2 multiplier )
But i didn't do this.
j = upperleft.y - tset.max_size_y/2 + tset.max_size_x;
Ill apply the whole fix.
Thanx alot again!
++
I tried to edit mineshaft_longsword.txt
Multiplied all enemygroups by 4
Was
[enemygroup]
type=miner
location=15,12,19,6
level=1,1
number=10,12
After edit:
[enemygroup]
type=miner
location=15,12,19,6
level=1,1
number=40,48
And when i came to all groups of enemies game just freeze and does not respond to input at all
i came to void GameStatePlay::logic()
and i commented that line hazards->logic();
and game went just fine (hehe i mean no freeze).
So hazards->logic() it causing game to freeze on large enemies groups.
Man, i have 640x480
Tile's size is 128x32
75 tiles needed to cover the screen.
2513 and 75, i think it is a huge difference
Man, i have 640x480
Tile's size is 128x32
75 tiles needed to cover the screen.
2513 and 75, i think it is a huge difference