Home › Forums › Game Frame › General Discussion › Windows Simulator
- This topic has 12 replies, 5 voices, and was last updated 7 years, 11 months ago by boris.
-
AuthorPosts
-
March 6, 2016 at 8:32 pm #2374ErnoParticipant
Hi,
I am implementing a Game Frame Windows Simulator that can also run as a screensaver.
This way I can use the tablet I use as an (audio) Media Player to show the 8-bit pixel art
I have got 2 questions:
1. What is the default Hold value?
2. Wouldn’t it be more practical to play the animations in alpha numerical order instead of order that they were added? That way it is much easier to change the order or insert an animation in between.Thanks!
March 6, 2016 at 10:48 pm #2375NickParticipantWouldn’t it be more practical to play the animations in alpha numerical order instead of order that they were added?
If I remember hearing Jeremy correctly, this was a limitation on the library used when reading from the SD card, as space on the ROM was super tight (why we didn’t have both clock and game on the original GF).
March 6, 2016 at 11:18 pm #2376Jeremy WilliamsKeymasterYeah, the SdFat library doesn’t support any concept of alpha numeric sorting but I’d certainly do it on PC since it comes for free.
The default hold value is 200.
March 7, 2016 at 5:06 pm #2381ErnoParticipantThanks! As soon as I have a working app I will make it available.
March 7, 2016 at 8:50 pm #2382ErnoParticipantStandard sorting of the file names gives a new problem: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 sorts like: 0, 1, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9
Should I assume that bmp files only have a numerical name (before the .bmp)?
If so, I could parse the numbers and sort them by number.
If not, if e.g., pac1.bmp, pac2.bmp, pac3.bmp etc. is also allowed, I might need to implement some magic sorting.March 7, 2016 at 9:29 pm #2383Jeremy WilliamsKeymasterYes, with the exception of files in /00system, BMP files must have numerical names, starting with 0.bmp. Feel free to peruse the source code.
Things get a little more complicated once you start supporting CONFIG.INI though, and the methods of controlling the sequence of folders. You may not want to go that deep.
March 8, 2016 at 7:09 pm #2388ErnoParticipantAh, that is very useful, thank you.
(I already implemented the config file mechanism, that was fairly easy to do)
March 12, 2016 at 4:43 pm #2415PatrickParticipantNot sure since I don’t know all the details but you should be able to append extras zeros to the front so “1” would be “001” and “10” would be “010”. I think the sorting would then work.
March 12, 2016 at 5:14 pm #2416ErnoParticipantYes, prefixing with zeros might be a solution after determining the maximum length of the file names. However in C# it is trivial to sort based on the file names parsed to integers:
var sortedByValue = fileNames.OrderedBy(fileName => int.Parse(fileName).Select(fileName => fileName);
July 11, 2016 at 9:48 am #2698borisParticipantGrüße aus Deutschland!
Any progress on the Windows Simulator? I have two pretty useless Windows 8 inch tablets lying around that I would love to convert to emulated Game Frames…
Boris
July 11, 2016 at 10:20 am #2699ErnoParticipantHi Boris,
Yes, sorry about that. I have a working version. It still requires some cleaning up and then I will make it available.
July 11, 2016 at 11:58 am #2700borisParticipantPlease, don’t feel sorry! I am thankful that you have not abandoned this project.
All the best, Boris
November 25, 2016 at 12:49 pm #3303borisParticipantHello Erno,
I hope you are doing fine and will find the time to get the emulator for Win10 in a releasable state soon.
All the best from Germany, Boris
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.