CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: semiprocoder on September 16, 2015, 03:40:21 AM

Title: [TI-Nspire] Nspire Flow
Post by: semiprocoder on September 16, 2015, 03:40:21 AM
TMP edit: Here is the code that draws the level menu. I also uploaded what it looks like:

function drawNumsBoard(gc, sBX, sBY, sX, sY, bW, bH)--sB-sizeBoard, sX-startX, sY-startY, bW-boardWidth, bH-boardHeight
local sizeRectX=bW/sBX
local sizeRectY=bH/sBY
gc:setColorRGB(Colors[boardColor][2])
    for i=0, sBY do
        gc:drawLine(sX, sY+sizeRectY*i, sX+bW, sY+sizeRectY*i)
    end
for i=0, sBX do
gc:drawLine(sX+sizeRectX*i, sY, sX+sizeRectX*i, sY+bH)
end
gc:setColorRGB(Colors[numColor][2])
for i=1, sBY do
for j=1, sBX do
centerText(gc, tostring((i-1)*sBX+j), sX+sizeRectX*(j-1/2), sY+squareSize*(i-1/2))
end
end
gc:setColorRGB(Colors[cursorColor][2])
gc:drawRect(sX+X*sizeRectX, sY+Y*sizeRectY, sizeRectX, sizeRectY)
gc:setColorRGB(0x000000)
end


Here is the line of code that runs it: drawNumsBoard(gc, 10, 5, 0, 0, dispX-1, dispY-1)--dispX and dispY are the screen sizes


EDIT: As of now I have 300 levels! And there is an updated menu!

There is an attached source this time because I am no longer coding in the actuall student software because it keeps crashing on me, so I now code in notepad++.

As for the controls, you move the rectangle with the arrow keys and click on a circle to select it's color. Then you aim it to the other color circle. The aim is to fill the board and connect all the circles. When you win the board you can press enter to advance to the next level by pressing enter. Hope that made sense. Btw I am still new to this forum how do you add images to the middle of the post instead of only the end. I don't really need to know that much but it would be nice.

The controls are also in the readme and in the help menu.

If you want to make levels use this code in processing. To add a new flow dot, just click on the square you want and it will go through all the colors currently available. If you want to change the size of the level then just change the boardSize variable to whatever you want. To actually play your level(sort of it is not as polished as flow) you press the right arrow key(and to go back to editing you press the left arrow key). Then while playing you click on a square with a full flow thingy, which selects the color, and then you click anywhere you want to create a smaller circle on the square you clicked on, which represents the path. To reset the board, simply press R. Then, to actually submit what you created to me, just reply with the latest string that was printed to the console. Here is the code to put in processing to make the levels.

int board[][]=new int[8][8];
int playBoard[][]=new int[8][8];
int boardSize=5;//change this for different board sizes-----------------------------
int X=0;
int Y=0;
int maxNum=12;
boolean play=false;
int prevX=-1;
int prevY=-1;
import java.util.Arrays;
void settings(){
  size(800,800);
}
void setup(){
  board=new int[boardSize][boardSize];
  playBoard=new int[boardSize][boardSize];
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      board[i][j]=0;
    }
  }
}
void fillColor(int i, int j){
  int temp;
  if(!play)
    temp=board[i][j];
  else
    temp=playBoard[i][j];
  if(temp>maxNum)
    temp-=maxNum;
  switch (temp) {
        case 1: fill(255, 0, 0);
          break;
        case 2: fill(0, 0, 255);
          break;
        case 3: fill(0, 255, 0);
          break;
        case 4: fill(255, 255, 0);
          break;
        case 5: fill(255, 128, 0);
          break;
        case 6: fill(0, 255, 255);
          break;
        case 7: fill(128, 0, 0);
          break;
        case 8: fill(0, 128, 0);
          break;
        case 9: fill(255, 30, 128);
          break;
        case 10: fill(128, 15, 128);
          break;
        case 11: fill(128, 128, 128);
          break;
        case 12: fill(255, 255, 255);
          break;
        default: fill(0, 0, 0);
          break;
      }
}

void mouseClicked(){
  if( !play){
  if(board[X][Y]<maxNum)
    board[X][Y]+=1;
  else
    board[X][Y]=0;
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      if(board[i][j]>0)
        print(Integer.toString(board[i][j]*2-1));
      else
        print(Integer.toString(0));
      if(j<boardSize-1)
        print(",");
    }
    print(" ");
  }
  println();
  }
  else{
    if(playBoard[X][Y]==0 || playBoard[X][Y]>maxNum){
      if(X>=0 && X<boardSize && Y>=0 && Y<boardSize){
        if(playBoard[X][Y]==0 && prevX>-1 && prevY>-1)
          playBoard[X][Y]=board[prevX][prevY]+maxNum;
      }
    }
    else{
      prevX=X;
      prevY=Y;
    }
  }
}

void draw(){
  fill(0,0,0);
  rect(0,0,width,height);
  stroke(250,255,255);
  for(int i=0;i<=boardSize;i++){
    line(0, i*height/boardSize, width, i*height/boardSize);
    line(i*width/boardSize, 0, i*width/boardSize, height);
  }
  X=mouseX*boardSize/width;
  Y=mouseY*boardSize/height;
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      noStroke();
      if(!play){
        fillColor(i,j);
        ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/2, height/boardSize/2);
      }
      else{
        if(playBoard[i][j]>0 && playBoard[i][j]<=maxNum){
          fillColor(i,j);
          ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/2, height/boardSize/2);
        }
        else{
          fillColor(i,j);
          ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/4, height/boardSize/4);
        }
      }
    }
  }
}
void keyPressed(){
  if(keyCode==RIGHT){
    play=true;
    for(int i=0;i<boardSize;i++){
      for(int j=0;j<boardSize;j++){
        playBoard[i][j]=board[i][j];
      }
    }
  }
  if(keyCode==LEFT){
    play=false;
  }
  if(key=='r'){
    for(int i=0;i<boardSize;i++){
      for(int j=0;j<boardSize;j++){
        board[i][j]=0;
        play=false;
      }
    }
  }
}
Title: Re: Nspire Flow
Post by: Strontium on September 16, 2015, 06:16:00 AM
I love Flow. Once I have the chance, I'll definitely try out your version.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 16, 2015, 07:40:57 AM
This looks very nice. I'll be sure to try it when I have a chance. Glad to see new games from you :)
Title: Re: Nspire Flow
Post by: semiprocoder on September 17, 2015, 01:17:38 AM
Now there are ten levels, and you press enter to advance through the levels. They are copies of the first ten levels of flow for android. Once I get the level editor up and running, I shall probably make some of my own levels.

Flow should now work for any api level now, because I set the api level. I also fixed some annoying bugs that I had before(not all though).
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 17, 2015, 01:37:27 AM
How many levels do you plan to have? And which bugs are still present?
Title: Re: Nspire Flow
Post by: semiprocoder on September 17, 2015, 02:12:53 AM
I don't see any right now but I had some crash that I couldn't explain before, so there might still be some crashes still, but they are rare because I don't know how it happened and I could not reproduce it. Maybe it was a test before I finished and I didn't realize, bu I am pretty sure that it happened after I finished bugfixing. I might be wrong about the bugs though. I hope so, obviously. I plan to have around 50 5 by 5 levels, 50 8 by 8, and 50 10 by 10, with some random other levels in between and maybe some up to like 16 by 16(if the nspire has enough pixels for that).
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 17, 2015, 02:53:17 AM
I guess in this case it will be better to wait to see if people reports the same issue and when. Perhaps if you know what they were doing before the crash it will make it easier to track down the bug. That kind of bug is the most annoying. >.<


And I see. That seems like a large amount of levels. Good luck finding ideas >.<
Title: Re: Nspire Flow
Post by: semiprocoder on September 20, 2015, 03:35:05 AM
So I made all the code that I need to add levels. Now all I need it so add strings, so I wrote a small program in processing(which is pretty java without full classes, only subclasses and that has a simple graphic library built into it, unless run in eclipse) for that purpose

It just draws a board and when you click on a square the circle changes colors. It rotates colors, so you can go around. Every time you click the mouse to change a color it outputs the string to make that sequence of colors to the console. I know this is not the best way of output, but I just wanted to make the code short. This is source code, so to run it you need to download processing itself and then compile the code with processing(or you could do it in eclipse and include processing but for simple projects that is annoying). To change the board size, all you need to need is change the boardSize variable in the third line. It currently has 12 colors, so only up to 10x10 or maybe 11x11, but not much more.

If anyone reading this has any skill in making these kinds of puzzles, could you please make me some levels and reply with the strings for the levels. I plan to have 50 5x5, 50 8x8, 50 10x10, and random other sizes. I will mention you in the readme but I honestly don't think that really matters but still.

Anyways, here is the processing code:


int board[][]=new int[8][8];
int boardSize=8;//change this for different board sizes
int X=0;
int Y=0;
int maxNum=12;
import java.util.Arrays;
void settings(){
  size(800,800);
}
void setup(){
  board=new int[boardSize][boardSize];
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      board[i][j]=0;
    }
  }
}

void mouseClicked(){
  if(board[X][Y]<maxNum)
    board[X][Y]+=1;
  else
    board[X][Y]=0;
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      if(board[i][j]>0)
        print(Integer.toString(board[i][j]*2-1));
      else
        print(Integer.toString(0));
      if(j<boardSize-1)
        print(",");
    }
    print(" ");
  }
  println();
}

void draw(){
  fill(0,0,0);
  rect(0,0,width,height);
  stroke(250,255,255);
  for(int i=0;i<=boardSize;i++){
    line(0, i*height/boardSize, width, i*height/boardSize);
    line(i*width/boardSize, 0, i*width/boardSize, height);
  }
  X=mouseX*boardSize/width;
  Y=mouseY*boardSize/height;
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      noStroke();
      switch (board[i][j]) {
        case 1: fill(255, 0, 0);
          break;
        case 2: fill(0, 0, 255);
          break;
        case 3: fill(0, 255, 0);
          break;
        case 4: fill(255, 255, 0);
          break;
        case 5: fill(255, 128, 0);
          break;
        case 6: fill(0, 255, 255);
          break;
        case 7: fill(128, 0, 0);
          break;
        case 8: fill(0, 128, 0);
          break;
        case 9: fill(255, 30, 128);
          break;
        case 10: fill(128, 15, 128);
          break;
        case 11: fill(128, 128, 128);
          break;
        case 12: fill(255, 255, 255);
          break;
        default: fill(0, 0, 0);
          break;
      }
      ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/2, height/boardSize/2);
    }
  }
}


Also DJ omninaga I think I fixed the crashing bug, because I didn't check for a nil statement of one of my variables. But when you click an empty square your previous line draws erases.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 20, 2015, 06:08:12 AM
Maybe it would be better to create a separate thread for level requests? It would be seen easier.
Title: Re: Nspire Flow
Post by: alexgt on September 20, 2015, 04:16:07 PM
Looks cool, I will definitely try it out sometime :).
Title: Re: Nspire Flow
Post by: Snektron on September 20, 2015, 08:50:33 PM
Quote from: semiprocoder on September 20, 2015, 03:35:05 AM
So I made all the code that I need to add levels. Now all I need it so add strings, so I wrote a small program in processing(which is pretty java without full classes, only subclasses and that has a simple graphic library built into it, unless run in eclipse) for that purpose

Processing is cool :) Such a shame openprocessing is dying because of java web dying (Was it ever really born though?).
Title: Re: Nspire Flow
Post by: semiprocoder on September 21, 2015, 01:31:00 AM
Well there's always processing.js but its impossible to implement and its in JavaScript, which I don't know yet, but it works for simple programs pretty well. And since its JavaScript all browsers pretty much support it.

EDIT: I now have a main menu where you select the level pack. Only 5 by 5 and 8 by 8 do anything though. 5 by 5 still has 10 levels but 8 by 8 has 5 levels now, but I apologize if the levels are too easy; I am not that good at making levels.

Also I updated my level making program so that you can kind of play it. You press the right arrow to go into play mode and then click on one of the circles and click anywhere where there is nothing. It will place a smaller circle representing path of the same color on that square. When you press left arrow it resets back to level editing:


int board[][]=new int[8][8];
int playBoard[][]=new int[8][8];
int boardSize=8;//change this for different board sizes
int X=0;
int Y=0;
int maxNum=12;
boolean play=false;
int prevX=-1;
int prevY=-1;
import java.util.Arrays;
void settings(){
  size(800,800);
}
void setup(){
  board=new int[boardSize][boardSize];
  playBoard=new int[boardSize][boardSize];
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      board[i][j]=0;
    }
  }
}
void fillColor(int i, int j){
  int temp;
  if(!play)
    temp=board[i][j];
  else
    temp=playBoard[i][j];
  if(temp>maxNum)
    temp-=maxNum;
  switch (temp) {
        case 1: fill(255, 0, 0);
          break;
        case 2: fill(0, 0, 255);
          break;
        case 3: fill(0, 255, 0);
          break;
        case 4: fill(255, 255, 0);
          break;
        case 5: fill(255, 128, 0);
          break;
        case 6: fill(0, 255, 255);
          break;
        case 7: fill(128, 0, 0);
          break;
        case 8: fill(0, 128, 0);
          break;
        case 9: fill(255, 30, 128);
          break;
        case 10: fill(128, 15, 128);
          break;
        case 11: fill(128, 128, 128);
          break;
        case 12: fill(255, 255, 255);
          break;
        default: fill(0, 0, 0);
          break;
      }
}

void mouseClicked(){
  if( !play){
  if(board[X][Y]<maxNum)
    board[X][Y]+=1;
  else
    board[X][Y]=0;
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      if(board[i][j]>0)
        print(Integer.toString(board[i][j]*2-1));
      else
        print(Integer.toString(0));
      if(j<boardSize-1)
        print(",");
    }
    print(" ");
  }
  println();
  }
  else{
    if(playBoard[X][Y]==0 || playBoard[X][Y]>maxNum){
      if(X>=0 && X<boardSize && Y>=0 && Y<boardSize){
        if(playBoard[X][Y]==0 && prevX>-1 && prevY>-1)
          playBoard[X][Y]=board[prevX][prevY]+maxNum;
      }
    }
    else{
      prevX=X;
      prevY=Y;
    }
  }
}

void draw(){
  fill(0,0,0);
  rect(0,0,width,height);
  stroke(250,255,255);
  for(int i=0;i<=boardSize;i++){
    line(0, i*height/boardSize, width, i*height/boardSize);
    line(i*width/boardSize, 0, i*width/boardSize, height);
  }
  X=mouseX*boardSize/width;
  Y=mouseY*boardSize/height;
  for(int i=0;i<boardSize;i++){
    for(int j=0;j<boardSize;j++){
      noStroke();
      if(!play){
        fillColor(i,j);
        ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/2, height/boardSize/2);
      }
      else{
        if(playBoard[i][j]>0 && playBoard[i][j]<=maxNum){
          fillColor(i,j);
          ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/2, height/boardSize/2);
        }
        else{
          fillColor(i,j);
          ellipse((4*i+2)*width/boardSize/4, (4*j+2)*height/boardSize/4, width/boardSize/4, height/boardSize/4);
        }
      }
    }
  }
}
void keyPressed(){
  if(keyCode==RIGHT){
    play=true;
    for(int i=0;i<boardSize;i++){
      for(int j=0;j<boardSize;j++){
        playBoard[i][j]=board[i][j];
      }
    }
  }
  if(keyCode==LEFT){
    play=false;
  }
}
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 21, 2015, 03:14:33 AM
Quote from: Cumred_Snektron on September 20, 2015, 08:50:33 PM
Quote from: semiprocoder on September 20, 2015, 03:35:05 AM
So I made all the code that I need to add levels. Now all I need it so add strings, so I wrote a small program in processing(which is pretty java without full classes, only subclasses and that has a simple graphic library built into it, unless run in eclipse) for that purpose

Processing is cool :) Such a shame openprocessing is dying because of java web dying (Was it ever really born though?).
I blame Oracle for ruining web Java with their security crap. Nowadays it's almost impossible to run any third-party web applet. >.< Standalone java programs seems better, though.
Title: Re: Nspire Flow
Post by: semiprocoder on September 23, 2015, 02:29:33 AM
Nah, I think java is just too slow to be put into a web browser. It takes too long too load and its not that easy to load in huge libraries because you would have to load it in every time you visit the browser. But yeah, standalone java programs are pretty good.

Also should I just copy the levels from the original flow in android, because I am having too much of a hard time coming up with levels.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 23, 2015, 02:53:17 AM
Isn't it the opposite? Because TI-Smartview actually runs much faster in a browser than standalone O.O

And yeah it would be fine if the license allows it. After all, if that game is popular, then people might want to play the original levels anyway :)
Title: Re: Nspire Flow
Post by: semiprocoder on September 23, 2015, 03:21:22 AM
well, honestly for the web being slower I now for sure about the loading part but I am not sure about performance. It is just what I've heard and read. Also flow doens't really provide any information on its main page in the android game page, so I have no idea how to check whether I could use the levels. I am going to try emailing them but I am not sure how I would explain my situation.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 23, 2015, 03:49:40 AM
Well, good luck then. Hopefully they are cooperative, especially since it's a fan game :)
Title: Re: Nspire Flow
Post by: semiprocoder on September 26, 2015, 10:31:10 PM
So after I few days I just got the reply:
"Hi Andrew - Please search online for number link. It is similar to Flow Free.

Thanks and Good luck.


-sharon
Big Duck Games LLC"

Does that mean that I should ask number link because flow free is not letting me use their levels and they're sending me off, or are they sending me off and saying that number link is going to actually give me their levels. BTW I actually kinda like number link its not bad.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 28, 2015, 03:10:11 AM
Hm I am not sure really. Maybe someone else might know. It might be that their game is based on Flow Free and they would rather have you ask permission to Number Link authors or it might be that Big Duck Games don't want you to use their levels, but don't mind if you use the ones from competitors. It's kinda confusing.
Title: Re: Nspire Flow
Post by: semiprocoder on September 29, 2015, 04:24:19 AM
So I'm gonna send an email to number link asking them if I could use their levels. I would probably say how flow denied me and I want to get levels from them, but um what are your recommendations for the email to number link?
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on September 29, 2015, 04:59:43 AM
Not sure really. Just ask permission I guess. Otherwise, you could try to make some levels, even if not many, release the game and tell people they are free to send you levels.
Title: Re: Nspire Flow
Post by: semiprocoder on September 29, 2015, 08:22:44 PM
eh I'm lazy I'm gonna forward the emails to number link directly instead of writing my own, and yeah, I will make some basic levels for all the packs. I think 10 5x5 of my own since right now my 5x5 are the same as in flow free except roated 90 degrees(due to how my array for the level works), 5 more(after all the others are done) 8x8, 5 10x10, and somewhere around 10 variety levels. As I am not that good at making levels they will most likely be overly easy, but at least they will be in the game.

So I remade all ten 5x5 levels. Now for the hard part.
Title: Re: Nspire Flow
Post by: semiprocoder on September 30, 2015, 07:57:34 PM
Ok so numberlink rejected me as well :(. Turns out that the were referring to a generic numberlink that is a practically stub on wikipedia. So I wil have to either make my own levels or someone could make me some levels(plz someone do this).
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on October 03, 2015, 02:21:53 AM
That sucks. I guess you could just do some levels since the community is too small to find any level designers, but have less included in the final game and mention in the readme that new levels are needed.
Title: Re: Nspire Flow
Post by: semiprocoder on October 04, 2015, 03:35:34 AM
Yeah I mentioned in the readme levels are needed. I don't know if it is the best request, but it works. I havent had any emails, but that is expected as I only have gotten 34 downloads the three days my code has been on ticalc.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on October 04, 2015, 03:37:08 AM
Good luck then. But yeah level designers are hard to come by in the community, especially for less popular games. >.<

I also made this topic also show up in the downloads section.
Title: Re: Nspire Flow
Post by: semiprocoder on October 04, 2015, 04:51:58 AM
I think I've hit a stroke of luck, for I have posted flow on cemetech, and I got a reply from people who made flow for the ti 84. They already have a bunch of levels and say they can convert some of them for me to my method of storing the levels. I just replied with my method, and am awaiting for them to reply. Hoping for the best here :)
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on October 04, 2015, 06:36:42 AM
Ooh awesome. I forgot that there was the TI-8x port. Hopefully tgey let you use their levels :)
Title: Re: Nspire Flow
Post by: semiprocoder on October 06, 2015, 03:15:49 AM
So while I'm still waiting for the ti 8x guy to help me out, I am hoping to add a random mode which randomly generates levels. Unfortunately, I do not know how to do so, as I obviously want the levels to be winnable(otherwise what would be the point of them). If anyone has a generator for something random that can pertain to this, that would be quite awesome if you could share the mechanics behind it with me so that I could make a random level generator. In the meantime, I will try to make a random level generator, but I have 0 garantees as I will most likely not finish it.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on October 06, 2015, 07:09:18 PM
Keoni29 once posted a topix explaining random number level generators. I don't know if it would be useful?  https://codewalr.us/index.php?topic=658.0
Title: Re: [TI-Nspire] Nspire Flow
Post by: semiprocoder on October 25, 2015, 01:30:07 PM
Great news! Johnbush gave me 200 of his levels! All my packs now have 50 lvls(I deleted my old levels cause I think nothing of them, but I have an old copy of flow so I can restore them), with the variety pack having randomly ordered 5-10 size levels. I will update the original post for the new download(and some new screenies). Now all I have to do is make a better menu, like in the sudoku game I will post once I get some levels for that. Also I need to make a level select screen, so that you don't have to restart everytime you restart flow. As a casual change, I(though I did this before but whatever) added the clear key to go back to main menu.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on October 28, 2015, 11:54:02 PM
Lol for a while I started wondering if awesome333 on Cemetech was really you, because in your Cemetech topic I couldn't find any screenshot of the TI-Flow program there, so I was sure it was a different game (plus it mentioned Connect 4 so I thought that Cemetech game was the actual Connect 4 game with black and red tokens). But then I saw it was in Cemetech archives. I guess I am too used to CW archives being tied directly to the forums and download/screenshots being in the first post :P

Anyway I'm glad that you got more levels and nice updates :)
Title: Re: [TI-Nspire] Nspire Flow
Post by: semiprocoder on October 29, 2015, 01:37:30 AM
Yeah, I am awesommee333 on cemetech. Its just that I made cemetech before codewalr, before I adopted my new username. However, ticalc and codewalr use semiprocoder. Also I am still updating this game(jonbush is working on giving me 12x12 and 14x14 and I am going to try to redo part of my code, or at least just add more colors for the 14x14 levels), but I am not working on making stuff for the nspire as much because I have more schoolwork and extracurricular homework/just more of it, cause some started late, than I did in september, so I don't have as much time.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on October 29, 2015, 04:21:38 AM
Aah ok, good luck with your school work. By the way, for this game what will be the max level size? And how big is the game so far in KB?
Title: Re: [TI-Nspire] Nspire Flow
Post by: semiprocoder on November 03, 2015, 03:00:43 PM
Well, I've just updated this game so that it now has 300 levels. I do have 12x12 and 14x14 now. I guess I could really make the level size anything I want, but I only have 17 colors right now, so they would have to have that many colors. The size of the actual game is still <20 kb(although the source is ~135 kb), which is really small for a calc that has 100 mb rom and 64 mb ram. Nevertheless, I could remove ~700 lines of codes, replacing them with a much smaller amount that is just in a for loop, but I would have to remake a few things for that. Right now I want to focus on making sudoku(which is like my flow game was originally, with very little levels), as at this state this game is fully playeable.

Also I have a lot more time this week as today and two more days this week I have school off.
Title: Re: Nspire Flow
Post by: Dream of Omnimaga on November 05, 2015, 09:23:12 AM
Wow, 300 levels is a lot! I'm glad you could manage to keep the size low despite the small amount of levels. I think 14x14 is fine because if there are too many colors then it might get hard to follow.
Title: Re: Nspire Flow
Post by: alexgt on November 05, 2015, 03:19:55 PM
Wow O.O 3000 levels are awesome :)