Creating a GUI for RPG text based game?

조회 수: 6 (최근 30일)
Jeffrey Lynn
Jeffrey Lynn 2017년 7월 11일
댓글: Geoff Hayes 2017년 7월 12일
I have a game in 1 editor that calls a bunch of functions I made in other editors (I used global variables to communicate between the two). The game functions by reading text that is an output as disp(' whatever ') with pause(#) so they can read 1 line at a time. The user is constantly prompted to type in something to continue the code in the form of input (' what do you want to do? [do this] or [do this]).
Once someone clicks run editor, I want a UI to pop up. It should display their name at the top, have hitpoints, inventory, gear window, ect. Most importantly however, is I want the command line to essentially be in the UI. Where the user can continue to read what is being displayed, and can type in their input in the UI.
The text base game currently is pretty messy, so having a UI that tracks a lot of essential stats will clean things up considerably.
Thank you.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2017년 7월 12일
Jeffrey - please clarify what your questions is. Have you tried to use GUIDE or App Designer to create your GUI?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Board games에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by