Now we use Egret to start to develop a called "idiom big challenge" of the small game, about Egret development environment is not here wordy, directly to the official download installation can, Egret is I have seen the development environment deployment of the simplest solution, this series of tutorials, Using the Egret Wing and Resdepot, just install the two on the line, first open egretwing, select Create Project, enter the project name you want, project type "Egret Eui project", and then Next:
Because the game design is vertical screen, and the resolution of the material is 720x1136, so the setting is the above choice, and then choose to complete, a little bit will build a template project out, only need to develop on this basis, at this time for the cleanliness of me, compared to the template provided by the default skin, Because we have resources to develop the game, so these default resources are useless, but to create an empty Egret project, the matching EUI settings have to do their own, so just use the template to create a good after the following ways to kill useless resources:
After deleting the assets files and Eui_skins catalog footage, you have to edit the "Default.res.json" and "Default.thm.json" files to make sure they are OK, first turn on "Default.res.json", Delete to clean up lost resources:
Then open the "Default.thm.json" file, will not be configured to delete, and finally become the same as the next appearance
Suddenly feel more refreshing, this is just my personal preference, according to the above method can create a relatively clean project.
The resources prepared below are put into the project, and three directories are established under the assets directory: "Images", "res", "sound", descriptions of these three directories:
Images: Here to store the game in the title picture, because there are 400 questions, so, the title picture or on-demand load more reliable, about 13MB
Res: Here is a picture of the UI of the game, etc., in the future to preload pre-loading, put them together because the future convenient integration of packaging
Sound: This is the game's music and sounds, as to whether to load ahead of time, to see personal circumstances, the project uses asynchronous loading
For resource downloads, see the attachments at the end of the article.
Then refresh the current project, double-click to open "Default.res.json", you will find this prompt:
At this point, it is recommended not to point is, but point no, oneself by drag and drop in accordance with their own needs to arrange resources better control, will need to preload the resources to throw into the preload group inside
Well, before the start of the preparation of the work has been completed, the latter can enter the formal status, please visit the next article
The attachment materials used in this article are downloaded here:
Idiom Big Adventure picture 1.zip
Idiom Big Adventure picture 2.zip
Idiom Big Adventure picture other. zip
Due to the blog park restrictions, can only be uploaded into 3 packages
HTML5 Egret Game Development Idiom Big challenge (ii) Clean EUI Project and resource preparation