简体   繁体   English

Xamarin Forms 游戏开发

[英]Xamarin Forms Game Development

I am new to Game Development.我是游戏开发的新手。 However, have been using Xamarin and Xamarin.Forms for quite a while now.但是,使用 Xamarin 和 Xamarin.Forms 已经有一段时间了。

I am trying to build a game (for Android and iOS) which will have many screens, one of which will have a view like Clash Of Clans in game view (ie the attack view).我正在尝试构建一个具有许多屏幕的游戏(适用于 Android 和 iOS),其中一个将在游戏视图(即攻击视图)中具有像《部落冲突》这样的视图。 I am guessing it will like Isometric Projection ( https://gamedevelopment.tutsplus.com/tutorials/creating-isometric-worlds-a-primer-for-game-developers--gamedev-6511 ).我猜它会喜欢等距投影( https://gamedevelopment.tutsplus.com/tutorials/creating-isometric-worlds-a-primer-for-game-developers--gamedev-6511 )。 I know that I can build most of the gaming screen like Play Game, View account and so on using Xamarin Forms.我知道我可以使用 Xamarin Forms 构建大部分游戏屏幕,例如玩游戏、查看帐户等。

What I would like to know is, is it possible to build the isometric projection view using Xamarin.Forms and if so is it ideal to build it in Forms (like using Tiled with Cocosharp OR maybe using Unity or URHO)?我想知道的是,是否可以使用 Xamarin.Forms 构建等距投影视图,如果可以,在 Forms 中构建它是否理想(例如使用 Tiled with Cocosharp 或可能使用 Unity 或 URHO)?

Ideally, we would like to have one code base and hence we are going for Xamarin.Forms .理想情况下,我们希望拥有一个代码库,因此我们要使用 Xamarin.Forms 。 But I am not sure if it will provide the best outcome compared to building it seperatly for Android and iOS.但我不确定与为 Android 和 iOS 单独构建它相比,它是否会提供最好的结果。

Any help is appreciated.任何帮助表示赞赏。 Thanks.谢谢。

if you want to use Unity3D the only solution to use it within Xamarin.Forms would be to create a BrowserGame with Unity3D and then call it from a webview.如果您想使用 Unity3D,在 Xamarin.Forms 中使用它的唯一解决方案是使用 Unity3D 创建一个 BrowserGame,然后从 web 视图中调用它。 But if you are new to Game Development as you said, maybe CocosSharp is the way to go.但是,如果您像您所说的那样不熟悉游戏开发,那么 CocosSharp 可能是您要走的路。 You can add it as a NuGet to your existing Xamarin.Forms app.你可以将其作为 NuGet 添加到现有的 Xamarin.Forms 应用中。 There is also a neat official Xamarin.Forms Tutorial: https://developer.xamarin.com/guides/xamarin-forms/advanced/cocossharp/还有一个整洁的官方 Xamarin.Forms 教程: https : //developer.xamarin.com/guides/xamarin-forms/advanced/cocossharp/

As @Thameem stated in his comment this link: https://docs.microsoft.com/en-us/xamarin/graphics-games/game-development/ explain how to integrate games in xamarin apps.正如@Thameem 在他的评论中所说,这个链接: https ://docs.microsoft.com/en-us/xamarin/graphics-games/game-development/ 解释如何在 xamarin 应用程序中集成游戏。 Also provides several links for further searching in the option you choose.还提供了几个链接,用于在您选择的选项中进一步搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM