paths mismatch

Game development with Board Game Arena Studio
Post Reply
User avatar
ddyer
Posts: 64
Joined: 01 April 2011, 19:55

paths mismatch

Post by ddyer »

Can someone explain why pathnames in gomoku.css do not correspond to
the file structure in the sample sources?


.gmk_stone {
width: 30px;
height: 30px;
position: absolute;
background-image: url( '../../img/gomoku/stones.png');
}

seems like this should be '../../img/stones.png'
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: paths mismatch

Post by sourisdudesert »

Hello,

The "img" directory in BGA studio is a facility created to access your game image directory. In reality (ie: when your game is deployed on BGA), the real path to your images is "../../img/<yourgame>/", and should always be used as this.

Cheers,
Post Reply

Return to “Developers”