This commit is contained in:
parent
628caff495
commit
48197daae3
3 changed files with 41 additions and 33 deletions
|
@ -306,7 +306,9 @@ void CGameScene::initLevel()
|
|||
m_player->setRespawnPos(Level.getPlayerSpawnPos());
|
||||
m_player->init();
|
||||
m_player->setLayerCollision(Level.getCollisionLayer());
|
||||
m_player->setMapSize(Level.getMapSize());
|
||||
DVECTOR mapSize=Level.getMapSize();
|
||||
CPlayer::CameraBox camBox={0,0,mapSize.vx,mapSize.vy};
|
||||
m_player->setCameraBox(camBox);
|
||||
|
||||
// Init actors (needs moving and tidying
|
||||
int actorNum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue