Creating a seperate high score file for Matlab game

조회 수: 4 (최근 30일)
Parker Stevens
Parker Stevens 2019년 11월 26일
답변: Rik 2019년 11월 26일
(Homework)
Hello, I am trying to create a seperate highscore file for a game but am not sure which data type to use. It was said to not use an "M" file so what are my next best options? The highscore file needs to include the name and score of the winners of my game. Thanks!

답변 (1개)

Rik
Rik 2019년 11월 26일
There are several options to store data. If you need to store it in a file you can either use a mat file (with the save and load functions), or use a text file. If you are not required to use an explicit file you can also store it internally to Matlab with getpref and setpref.
I would suggest using a mat file in this case.

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by