Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
18 May, 2013, 16:13:53 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2] 3 4 ... 8   Go Down
  Print  
Author Topic: Chips Challenge for TI-Nspire -  (Read 11196 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Topic starter
Total Post Ratings: +118

View Profile
« Reply #15 on: 28 August, 2010, 16:48:49 »
0

I was looking over the code for Tile World, and it looks like it might be pretty easy to port it to the Nspire instead of completly starting from scratch.  It seems as if it does not use too many functions that we don't already have for the Nspire.  The main problem would be printf(, but I could just use dialog boxes. Smiley This would lead to several advantages in the game:

1. I would probably finish faster, as I would not have to start from scratch
2. It would read the original .dat files for Chips Challenge, which would save me time from importing levels
3. As calc84 said, the game would be very accurate
4. No level editor would need to be written, as a computer one could be used to make it into a .dat file, which could be used by my program

The only drawback to this would be that I could not include the original level .dat file.  But, I am sure I could get permission to include the CC Level Pack 2 .dat file!
« Last Edit: 28 August, 2010, 16:53:06 by apcalc » Logged


JonimusPrime
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 05:43:52
Date Registered: 09 February, 2010, 00:18:56
Location: TheWauwatosa
Posts: 418


Total Post Ratings: +20

View Profile WWW
« Reply #16 on: 28 August, 2010, 17:36:51 »
0

Yeah, Tile World is a pretty fun clone, but iirc it doesn't support entering passwords to go to a specific level, but maybe that was because I was using an old build for Windows CE.

Also since I have the Full Windows Entertainment Pack from Win95 getting the .dat file won't be an issue for me. Tongue
Logged


"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Topic starter
Total Post Ratings: +118

View Profile
« Reply #17 on: 28 August, 2010, 17:37:46 »
0

I was almost sure when I was going through the source I saw a function that allowed entering a password, but if it is not there, I will just add it in. Smiley
Logged


DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:41:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Total Post Ratings: +2611

View Profile WWW
« Reply #18 on: 28 August, 2010, 19:08:41 »
0

What does printf( do? Does it just display text? Having text seems like a major issue on the Nspire from what I read so far. Couldn't you just create a custom font routine? Even in TI-83+ BASIC it's possible (although it's very large compared to xLIB/DCS, Axe and ASM)
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #19 on: 28 August, 2010, 19:10:40 »
0

Exactly right, DJ. He'll probably end up needing to make a custom routine (or using dialog boxes, like he said).
printf() is difficult to get working because, on the Nspire, it doesn't output to the screen, but to an internal serial port, IIRC.
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Hot_Dog
If you can't find a cat, look for its tail.
Support Staff
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 09 May, 2013, 19:22:43
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Total Post Ratings: +428

View Profile
« Reply #20 on: 28 August, 2010, 19:11:49 »
0

Exactly right, DJ. He'll probably end up needing to make a custom routine (or using dialog boxes, like he said).
printf() is difficult to get working because, on the Nspire, it doesn't output to the screen, but to an internal serial port, IIRC.

The nice thing about a custom font is, though, one can create "letters" that aren't exactly letters.  In S.A.D., I use Belthium Crystal Icons, Oxygen Icons, and Lobster Icons as part of the font.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Topic starter
Total Post Ratings: +118

View Profile
« Reply #21 on: 28 August, 2010, 19:12:16 »
0

Well, bwang wrote a DrawStr( function that I could use also.  printf( essentinally draws text to the screen, but it also allows you to add numbers, other variables to the string.  I don't think this will be too much of a problem, thankfully!
Logged


DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:41:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Total Post Ratings: +2611

View Profile WWW
« Reply #22 on: 28 August, 2010, 19:13:47 »
0

I wonder if eventually ExtendeD or someone else will write a text routine for Ndless. Text seems like an essential programming command to me x.x. And yea Hot Dog. In old FF games, they had stuff such as armor and weapon icons.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #23 on: 28 August, 2010, 19:14:28 »
0

Ah, yes, I forgot the 'f', for 'format' Grin. You've checked the source to make sure it doesn't over-use this, I assume?
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Topic starter
Total Post Ratings: +118

View Profile
« Reply #24 on: 28 August, 2010, 19:16:29 »
0

Well, I really have only had time to skim over the source, as I am busy with work for school, but once I have some free time (probably this weekend) I will look through the source a bit closer to make sure it won't be too hard to port.
Logged


calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #25 on: 28 August, 2010, 19:19:22 »
0

Yeah, writing your own printf() would be a pain. Does C for the Nspire have the sprintf() function, which you could use with DrawStr()?
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Topic starter
Total Post Ratings: +118

View Profile
« Reply #26 on: 28 August, 2010, 19:22:55 »
0

Sprintf is defined for the Nspire, but I am not sure if it can be used (it might be like printf, only for RS232).  I will have to check with someone to find out exactly, as I never have really used it.
Logged


calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #27 on: 28 August, 2010, 19:24:28 »
0

sprintf() writes to a string, which is exactly why I suggested it.
Coupled with DrawStr(), your problems are solved Cheesy
Edit: Well, mostly Tongue
« Last Edit: 28 August, 2010, 19:24:47 by calcdude84se » Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Hot_Dog
If you can't find a cat, look for its tail.
Support Staff
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 09 May, 2013, 19:22:43
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Total Post Ratings: +428

View Profile
« Reply #28 on: 28 August, 2010, 19:27:44 »
0

So how were these routines discovered?  I know TI didn't just GIVE them to people who used ndless!
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Topic starter
Total Post Ratings: +118

View Profile
« Reply #29 on: 28 August, 2010, 19:29:00 »
0

I believe the Ndless team disassembled the OS and looked through them to find all of the functions.
Logged


Pages: 1 [2] 3 4 ... 8   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 1.272 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.