开发者

XNA linking two games

开发者 https://www.devze.com 2023-02-18 18:17 出处:网络
does anyone know how to link one game after another? e.g. after completing all the levels of the default game, the next game will load up (kinda like a bonus game for completing the first game).

does anyone know how to link one game after another? e.g. after completing all the levels of the default game, the next game will load up (kinda like a bonus game for completing the first game).

At the moment i'm using the platformer starter kit distribute开发者_开发问答d from Microsoft and would like that game to link to my own game after all the levels in the platformer have been completed.

Thanks


The most integrated way would be to use have one solution (but separate projects, if need be) that contains all of your code. This way you can easily call any code you need between the games.

If you wanted this to all happen in the same window, you could swap out the view that controls the platformer game in place of the view that controls your game logic. Here is a very good example for managing game state; you could use this to swap the views in and out.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号