Graphics in Data Folder keep getting deleted?

Monkey Forums/Monkey Programming/Graphics in Data Folder keep getting deleted?

Amon(Posted 2011) [#1]
Hi! This has been frustrating me for a good while, basically from what I know all assets for the game go in the html5/data folder. When I put my gfx etc. in that folder they get deleted everytime I hit build and run.

Why is it doing this? What noobo dillo am I doing wrong?


Warpy(Posted 2011) [#2]
They need to go in a data folder at the same level as the source code. So if your source file is mygame.monkey, put them in a folder called mygame.data. Look at the sample games.


sknightly(Posted 2011) [#3]
The gfx get copied from mygame.data to mygame.build/html5/data when the game is built.