简体   繁体   English

如何使用基本的C#和ASP .NET知识对此游戏进行编程?

[英]How to program this game with basic C# and ASP .NET knowledge?

I would love to brainstorm with you guys on how to program this game (originally a flash game) in C#. 我很乐意和你们一起讨论如何在C#中编写这个游戏(最初是一个flash游戏)。 I'm studying C# right now and my knowledge is pretty limited: I know the pretty much the basics of C# but I need your help with the concept. 我正在学习C#,我的知识非常有限:我知道C#的基础知识,但我需要你对这个概念的帮助。 Here's the game: http://www.composica.com/product/samples/AstroHops/content/scaler.html alt text http://img12.imageshack.us/img12/5735/frogim3.jpg 这是游戏: http//www.composica.com/product/samples/AstroHops/content/scaler.html alt text http://img12.imageshack.us/img12/5735/frogim3.jpg

I thought about using imagebutton for each lilypad that would trigger a modal window with question. 我想过为每个百合花使用图像按钮会触发一个有问题的模态窗口。 I also thought about placing a picture of a frog on each lilypad, set to visible = false. 我还想过在每个lilypad上放一张青蛙的照片,设置为visible = false。 When the a certain lilypad is selected the frog's visibility will be set to true. 当选择某个百合花时,青蛙的能见度将被设置为真。

Any thoughts, ideas, suggestion on how to this better? 关于如何更好的任何想法,想法和建议? Maybe links to a similar game coded with c#? 也许链接到用c#编码的类似游戏?

Thanks! 谢谢!

ASP.NET (and HTML generally) isn't directly suited to compete with flash - they simply work differently. ASP.NET(和HTML一般)不直接适合与闪存竞争 - 它们的工作方式不同。 Perhaps look at Silverlight ; 也许看看Silverlight ; that is the MS offering that is closest to flash, and you can use C#. 这是最接近flash的MS产品,你可以使用C#。

Marc solution seems like best one, but if you really need it in C# (in ASP.NET Right?) then you might consider AJAX but yea it is sort of bad approach. Marc解决方案似乎是最好的解决方案,但是如果你真的需要它在C#中(在ASP.NET中吗?)那么你可能会考虑使用AJAX,但是它是一种糟糕的方法。

If it is winforms you are talking about, then i would consider using some 2d graphics engine for that. 如果是你正在谈论的winforms,那么我会考虑使用一些2D图形引擎。 otherwise your idea CAN work with the default .net forms, it just wont look very nice.... 否则你的想法可以使用默认的.net表格,它看起来不会很好....

you might take a look at this, seems like a nice start point for working with directX and c# http://www.csharp-home.com/index/tiki-print_article.php?articleId=146 你可以看看这个,似乎是使用directX和c# http://www.csharp-home.com/index/tiki-print_article.php? articleId=146的一个很好的起点

Good luck with your project! 祝你的项目好运!

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

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