My C# game menu implementation. Is it good?
My C# game menu implementation. Is it good? Hi.So I have written this. Can it be done better and less dirty?using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Legend_Of_The_Black_Sword{public class Menu { public string Title { get; set; } public bool AllowWrap { get; set; } public string BackGroundMusic { get; set; } private int Cursor = 0; private List Options = new List(); public Menu(string title, bool allowWrap, string backGroundMusic) { Title = title; AllowWrap = allowWrap; BackGroundMusic = backGroundMusic; } public void AddOption(string Option) { Options.Add(Option); } public void MoveCursorUp() { if (this.AllowWrap && this.Cursor == 0) { Cursor = this.Options.Count - 1; } else { this.Cursor -= 1; } } public void MoveCursorDown() { if (this.AllowWrap && this.Cursor == this.Options.Count - 1) { this.Cursor = 0; } else { this.Cursor += 1; } } public int GetCursorIndex() { return this.Cursor; } public string GetCursorElement() { return this.Options[this.Cursor]; } }} URL: https://forum.audiogames.net/post/475121/#p475121 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu @nuno69 add a key handler to capture the arrows and your activate button, and you're done ... URL: http://forum.audiogames.net/post/404005/#p404005 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu @jonixterArray and a cursor index. It should be OK. URL: http://forum.audiogames.net/post/403760/#p403760 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu Ethin wrote:@6, again, some. However, I'd encourage you to write your own; you will learn much more that way.That‘s true. URL: http://forum.audiogames.net/post/403754/#p403754 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu @6, again, some. However, I'd encourage you to write your own; you will learn much more that way. URL: http://forum.audiogames.net/post/403751/#p403751 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu Ethin, Ok. What about menu in AKG for Python? Some developers use this. URL: http://forum.audiogames.net/post/403737/#p403737 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu @4, no, not all developers. dynamic_menu is a template that is designed to be expanded upon. It is meant as a base. But in an actual game, that isn't written in BGT, you create your own menu system. URL: http://forum.audiogames.net/post/403729/#p403729 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu Ethin, What about Dynamic_menu in BGT?All BGT developers use this and feel comfortable, and for them this is a one-stop solution. URL: http://forum.audiogames.net/post/403722/#p403722 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu There is no "algorithm" for a game menu. That kind of thing you need to come up with yourself. A game menu (and the ways it can be used), its internals, and so on, depends on what your developing. There is no "one fits all" solution. URL: http://forum.audiogames.net/post/403719/#p403719 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Game menu
Re: Game menu I‘d be able to write it in bgt. If you want. URL: http://forum.audiogames.net/post/403716/#p403716 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Game menu
Game menu Hello.Guys, can anyone formulate an algorithm for the game menu? Guided by which, I can develop this menu in any programming language.Thanks in advance! URL: http://forum.audiogames.net/post/403708/#p403708 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
[Audiogames-reflector] mainstream game menu layout requests
mainstream game menu layout requests Hi,I have a request for the following menu layouts:Super street fighter iv arcade editionResident evil 6URL: http://forum.audiogames.net/viewtopic.php?pid=154439#p154439 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com http://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector