Permalink
Browse files

Switch to saving in colormonster directory since bug in SdFat is fixed.

  • Loading branch information...
dulsi committed Jun 23, 2018
1 parent 7f7e044 commit 1433f65ea1f255ca8989f702fa92660c6526176b
Showing with 5 additions and 5 deletions.
  1. +2 −2 README.md
  2. +3 −3 colormonster.ino
@@ -7,8 +7,8 @@ Battle other trainers.
# Building
Color Monster is montser training game designed for the TinyArcade platform.
Load the viobyte.ino in the Arduino IDE. Install the TinyScreen library and you
should be able to build it for your device.
Load the viobyte.ino in the Arduino IDE. Install the TinyScreen and SdFat
library and you should be able to build it for your device.
If you want to play it on a Linux computer, you can use the tinyscreensim
program (https://github.com/dulsi/tinyscreensim). Install glfw3 library.
@@ -226,7 +226,7 @@ void Painter::update()
{
if (!active->saved)
{
if (!dataFile.open("colormn1.dat", O_WRITE | O_CREAT | O_TRUNC))
if (!dataFile.open("colormonster/colormn1.dat", O_WRITE | O_CREAT | O_TRUNC))
{
}
else
@@ -513,9 +513,9 @@ void setup()
while(1);
}
lastTime = millis();
if (sd.exists("colormn1.dat"))
if (sd.exists("colormonster/colormn1.dat"))
{
if (!dataFile.open("colormn1.dat", O_READ))
if (!dataFile.open("colormonster/colormn1.dat", O_READ))
{
}
else

0 comments on commit 1433f65

Please sign in to comment.