Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - battlestar

Pages: [1]
1
TI-Nspire / Re: Battlestar for Nspire
« on: July 22, 2013, 08:47:19 am »
I still need to fix the descriptions. What do people think of this game so far?

2
TI-Nspire / Re: Battlestar for Nspire
« on: July 19, 2013, 02:44:02 pm »
I apologize. I will keep that in mind. :)

3
TI-Nspire / Re: Battlestar for Nspire
« on: July 19, 2013, 01:52:51 pm »
I have just finished the first version! go to the first comment to download!

4
TI-Nspire / Re: Battlestar for Nspire
« on: July 19, 2013, 01:16:36 pm »
In ten minutes, the first version of battlestar for nspire will be released (I couldn't wait until I finished). Battlestar is a text-based role playing game.
I have implemented most of the features.
At the moment, these are the features I have yet to implement:
  -saving and loading games
  -backspace (this is first priority)
  -spaceship fight scene

please notify me if there are any changes you would like me to make.

5
TI-Nspire / Re: Battlestar for Nspire
« on: June 22, 2013, 07:28:57 pm »
It isn't related to battlestar galicatica, but it is a text-based RPG.

6
TI-Nspire / Re: Battlestar for Nspire
« on: June 22, 2013, 10:34:10 am »
It is a port from the original source. I have not learned enough c to actually rewrite the whole thing.

7
TI-Nspire / Re: Battlestar for Nspire
« on: June 22, 2013, 02:49:08 am »
I am doing it with ndless, not on linux for the nspire.

8
TI-Nspire / Battlestar for Nspire
« on: June 22, 2013, 02:43:56 am »
Hello! I am starting to port a text-based game called battlestar to the Nspire. It is included in the BSD-games package, and I plan on porting many others, such as phantasia and adventure.

I fixed backspace.

I am having trouble with savefiles, but I think I have almost fixed them.
Also, The screen is kind of buggy (at least on my non-CX), so I am trying to figure that out.

9
TI-Nspire / Re: nspire Linux Questions
« on: January 23, 2013, 04:54:35 pm »
When I enter nano on linux, the ctrl key state reverses, so whenever I press ctrl, it is off, and when I release ctrl it thnks that it is on. How do I fix this ???

10
Ndless / Re: Ndless v3.1 Read text file
« on: January 22, 2013, 05:27:41 pm »
Well, I have only recently learned c. I admire the structure of your code, I just didn't understand the file reading part.

11
Ndless / Re: Ndless v3.1 Read text file
« on: January 21, 2013, 10:06:00 pm »
I've looked at the sources, but they are confusing.  ???

However, I just figured it out. I used "rt", when I should have been using just "r".
Thank you for your help.

12
Ndless / Re: Ndless v3.1 Read text file
« on: January 21, 2013, 09:59:25 pm »
It still displays nothing.

13
Ndless / Re: Ndless v3.1 Read text file
« on: January 21, 2013, 09:34:10 pm »
So I could use:
Code: [Select]
FILE *test;

test = fopen("/documents/devel/file.tns", "rt");
char line[80];
while(fgets(line, 80, test) != NULL) {
   displn(line,1); //Display string with newline
}
fclose(test);

And it would work?

14
Ndless / Ndless v3.1 Read text file
« on: January 21, 2013, 07:36:26 pm »
I am currently working on a port of battlestar(from bsd-games package) to the nspire. To get comfortable with programming, I am learning how to do the basics. I have mastered basic input and output, but I am clueless as how to read a file, say "file.tns". It is all text.

Right now my code is something like this: (not exactly, but all the code pertaining to the file reading)

Code: [Select]
FILE *test;

test = fopen("file.tns", "rt");
char line[80];
while(fgets(line, 80, test) != NULL) {
   displn(line,1); //Display string with newline
}
fclose(test);

I have "file.tns" in the same directory as my program on the nspire.

The nspire displays gibberish.
Any suggestions? I am using the latest version of ndless.

Pages: [1]