为ThreeTsGame创建主菜单 [英] Creating Main Menu for threeTsGame

查看:60
本文介绍了为ThreeTsGame创建主菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai,我想显示游戏的主菜单,我想放两个按钮,按钮1让用户玩井字游戏,按钮2让用户玩井字游戏.我不明白如何将主菜单放入抽象类和方法中.:confused:

hai, I want to display a main menu for my games, where I want to put two buttons, button no.1 will let user play Tic Tac Toe Game and button no.2 let user for Toe Tac Tic Game. I do not understand how can I put the Main Menu into the abstract class and method.:confused:

推荐答案

我认为您会发现主菜单是附加到您的主要表格上,或者无论您希望它在哪里工作.

然后创建事件,并从这些事件中调用执行游戏所需的代码.
I think you''ll find that the main menu is attached to your main form or wherever it is that you wan it work from.

You then create events and from these events you call the code that does whatever you need it to do to make the game happen.


这篇关于为ThreeTsGame创建主菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆