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 - ajorians

Pages: 1 ... 4 5 [6] 7
76
TI-Nspire / Re: nHitori for Nspire
« on: May 24, 2013, 12:02:07 pm »
Hey Guys,

I found some time to add to this game.  It is attached below.  So I didn't change the graphics; I debated myself on that while concurrently added in some other visual improvements.  When you make two adjacent markings or isolate come cells I made it so the yellow cells will darkens & lighten until it is corrected.  Also I made it so when you move the selector it doesn't just move; but slides to its new spot.  If this sliding isn't desired; it is an option.  So under Options you can turn it off.

DJ Omnimaga: I agree with you!  These calculators are capable of some incredible stuff and so the bar is higher for the Nspire games.  Being a puzzle game I'm not sure exactly how far graphically I'd like to take this particular game though.

Hope you like it!  Have an amazing day!

77
TI-Nspire / Re: nHitori for Nspire
« on: May 22, 2013, 07:38:59 am »
Hey Levak,

You're right!  Thank you for your input.  I appreciate honest feedback and so I promise no offense was taken.  For the board it is just SDL_FillRect (aka just a solid rectangle) and the same for the cell highlighting.  But I could use a gradient and see if that improves the look a bit.

I recycled the "You Win" message from nTornado21; but maybe I'll add a particle effect or something! :)

Did you get to play the game a bit?  I claim this game is quite a lot of fun once you know how to play and formed techniques.

ElementCoder, SpiroH, AlexisVieira, joeym: Thanks!  I hope you are enjoying it!

Have an amazing day!

78
TI-Nspire / nHitori for Nspire
« on: May 20, 2013, 08:30:46 am »
Hey Guys,

I am very excited you show the latest project I have been working on!

It is the logic game called Hitori (http://en.wikipedia.org/wiki/Hitori).  I attached a little walkthrough to help you understand how to play because the game is more fun when you understand the rules. :)  This isn't a guessing game so it will help you to play by analyzing the board; this will help you in the bigger and harder levels.

This game comes with 100 levels (and solutions) built in.  Also when you beat a level you'll have a star next to the level name.  So try to beat all the levels.

There is undo/redo so you can go back (and forth) many moves.

This program registers the .hitori extension for external level files.  So in addition to the 100 levels; I included some extra external levels should you want to play some more levels!

It should be just about finished; so let me what you think!  I included all my source code as well!  I tested this with a TI-Nspire Touchpad and made it look/play alright on that device.  Though the Nspire CX's color screen is nice; it should play well on any Nspire.

Have a wonderful day!

79
TI-Nspire / Re: [Nspire C] Zombie Chase
« on: May 20, 2013, 08:09:47 am »
Hi Spenceboy98,

A couple of tips I've learned that may be able to help:
1. After free; you can set your pointer to NULL:
free(screen);
screen = NULL;
return 0;
And so I suggest for every free to set the pointer to NULL.  Because should you call free again on the same pointer, free(NULL) won't crash!  See the C standard 7.20.3.2: http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf
But that may be an indication that you are freeing the same memory twice.

2. Are you using an emulator or only transferring to your calculator?  I only say because if you use an emulator; besides being faster you can add printf (amongst other things) to see the values of variables:
printf("Screen pointer is at address %p\n", screen);

3. Are you using anything for the graphics?  That is entirely your choice; but nRGBLib (http://ourl.ca/14731) is really helpful!  In there is a macro:
#define GetNewScreenBuffer() malloc(SCREEN_BYTES_SIZE)
(https://bitbucket.org/totorigolo/nrgblib/src/9a736d6ff9e432e7e1df2122c03d8b39c05d6dd2/src/include/nCOMMON.h?at=default)
And I am thinking you could use that instead of writing it yourself.

If you post your source code I'll take a look to see why the calculator reboots on exit.  I've chased down a few of these now! :)

Have a great day!

80
TI-Nspire / Re: nFalldown for NSpire
« on: May 09, 2013, 05:19:11 pm »
Hi,

ExtendeD: It is probably because I don't have any SDL_Delay in the code.  When I test in nspire_emu I uncomment Game.cpp line 51 where there is a SDL_Delay.  So it just runs the loop; I didn't put any timer code in there.  I test on the actual calculator before releasing though!

CalebHansberry: Thanks buddy! :)

81
TI-Nspire / Re: nFalldown for NSpire
« on: May 09, 2013, 02:18:41 pm »
Hey Guys,

I updated my Falldown game.  I added in the ability to hit the 'p' key to pause/unpause.  As well as I tested it on a non-CX Nspire (TI-Nspire Touchpad) and made it work better on that.  Such as with the game over/highscore message, on a classic Nspire it'll have a white background instead of a blue one (which isn't blue when you don't have colors).  Also I fixed my bug I wanted to from earlier.

So I'm happy with it and will try to get to more interesting games/programs!

Download it if you'd like and let me know what you think!

Have a wonderful day!

82
TI-Nspire / Re: nFalldown for NSpire
« on: May 05, 2013, 09:39:02 am »
Hi ExtendeD,

Correct.  One reason I was really interested in using bFLT is an example showed loading up a "dynamic library" (that is what I call it).  So I eventually would like to make programs that have A.I. players in them and come with some number of A.I. players and have the ability to add some more later.  Not being able to use bFLT loader and nSDL had no bearing with C++ for me; the C++ I used worked perfectly fine with bFLT loader and C++ worked fine with nSDL.  I'd be perfectly okay using C and bFLT loader and nSDL.

Hope that helps!  Have a great day! :)

83
TI-Nspire / Re: nFalldown for NSpire
« on: May 04, 2013, 11:14:45 am »
Hi Guys,

Thank you for all of your replies!

ExtendeD: Yes; I did use tangrs's technique.  But I didn't use new/delete.  On a C++ branch of his (https://github.com/tangrs/ndless-bflt-toolchain/tree/c%2B%2B/tools) he did make it so new/delete/new[]/delete[] are built-in so you wouldn't need to add them in each program you use.  I did set that up; but I've been alright with just using malloc/free.  And it actually works well for me.  I like the separation of view (UI) code and the data.  I like object orientated programming; so even when I use C; I am thinking encapsulation!  Holler if you have any questions!  I love the work you (and others) have been doing!

aeTIos: I was pretty excited yesterday so I might have gotten a little carried away with a certain punctuation symbol! :)  I am betting it might be needing a <= instead of just a < in one of the for loops.  Or something else rather small.  I know it seems so simple.  I'll find it!

ElementCoder & adriweb:  You both are right there have been Falldown for the Nspire!  Whoops!  Upon actually doing some searching (http://ourl.ca/17270) there have been a few for the Nspire already (http://tiplanet.org/forum/archives_voir.php?id=3520).  I'll still fix up some bugs and then go onto more projects! :)  ardiweb: Your Lua equivalent from two years ago looks good!

Stefan Bauwens: I know it makes the program larger; but I like the idea of having a small menu.  For the images; I used image search for terms like Falldown.  I never knew it was your avatar before or came from Myst.

Thank you all very much and have an amazing day!


84
TI-Nspire / nFalldown for NSpire
« on: May 03, 2013, 05:02:39 pm »
Hey Guys,

I had a tad amount of time and decided to see if I could make Falldown for the NSpire!  I always liked playing that on the other calculators and since the NSpire didn't have one; I created one!

I currently have an embarrassing bug where sometimes the ball can go through the line!  I'll see if I can find and fix that one!

This had only been tried on the NSpire CX CAS.  Testing on the various calculators is one thing I certainly need to do more of!

But here it is such that you can play it over the weekend!  Let me know what you think!

I wasn't thinking of working on this one for too long; mainly because I want to get to some really fun games! :)  There are so many cool ideas with Falldown such as power-ups and breaking away lines and much more; but I think I'll keep it simple.  I might add ability to choose difficulty when starting out for beginners to this game!  I included all my sources if somebody ever wanted to add to it!

Well I hope you like it!

85
TI-Nspire / Re: nTornado21 for NSpire
« on: April 30, 2013, 07:42:51 am »
Hi Guys,

(I hope this isn't a double-post)

I made some updates!  I added in little history view on the bottom to the side.  You can cycle through the history of completed columns using the plus and minus keys.  I made a few tweaks including adjusting the position of the deck of cards.

Let me know if you have any thoughts on this!  As I think it is practically complete!

Oh and have a fantastic day!

86
TI-Nspire / Re: nTornado21 for NSpire
« on: April 29, 2013, 07:35:23 am »
Hi mdr1,

Regarding the key; let's do both!  I can make it so either Ctrl or Enter will draw the card!  Thanks for the suggestion; that will be really helpful!

I did not compress any of the pictures!  And you are right the program is large.  There are a couple of places where I used images which might not have been necessary: the highscore screen and the help screen (I'll probably do something with this one).  If I were to compress the images I think the size of the program will be about 1/2 megabyte (maybe).

Thanks for your feedback and enjoy your day!

87
TI-Nspire / Re: nTornado21 for NSpire
« on: April 29, 2013, 12:01:02 am »
Thanks DJ Omnimaga,

If it helps I think I got a coworker addicted to playing it! :)

Whenever you do get time I'd like to know what you think of it!  But until then have a great day!

88
Calculator C / Re: HighScoreLib for NSpire
« on: April 28, 2013, 11:57:17 pm »
Hi Dapianokid,

If I understand what you are asking: in addition to the score and the name, you are wondering if the highscores can be tamper-proof?  There is a number field where you can put anything you wanted.  For the most-part I figured a date or something relevant to the game (such as number of balloons popped if that is what the game was about).  You could make it a security verify field in case you suspect tampering with the score value.  Something simple like modulus 13 (for example) might be sufficient.  So if the score was 1128, keep the number 10 with it.  Somebody tampering with the highscore file will know to change the 1128 to some other score but won't know what to change the 10 to!  Would something like that meet your needs or would you need the score to be encrypted?

Well have a wonderful day!

89
TI-Nspire / nTornado21 for NSpire
« on: April 28, 2013, 11:32:29 pm »
Hey Guys,

I've been working on creating a card game for the TI-NSpire!  It is based on the Yahoo Games's game (games.yahoo.com/games/login2?page=t21&ss=1) of the same name.  I've added in the subtle rules found from a fanpage: https://www.allegro.cc/depot/Tornado21/

If you are up for it, give it a try!  All source is also included as well!  For the most-part the game is rather simple; as you just choose a column to play your card.  But there are ways to get more points (Gold cards, bonuses) and as such the game has a far amount to it!

So far I only tested in on the TI-NSpire CX CAS; but I'll test on another calculator or two and make sure it looks alright!

I got a few code loose ends.  I am tempted to add an animation of the card moving to the column (as well as animate off the screen when the column is completed) if it is necessary.  I might add a small history like the Yahoo Game version too.  Also I did run into a case where I got a Joker card by completing a column which caused more Jokers over and over; which might be on purpose but I might still do something about it!

Well I hope you like it!  Let me know what you think!

90
Calculator C / HighScoreLib for NSpire
« on: April 26, 2013, 07:12:40 pm »
Hi Guys,

Some of my favorite calculator games have highscore tables!  My next calculator game will have a highscore table! :)  If you are programming a game and wanted a highscore table you could create one; they are not difficult to program.  But it would take some time; and probably some bugs to fix along the way.

I figured I'd write it once in a simple, neat, sharable way such that myself and others could use it!  All source is included such that you can make any modifications you'd like!  It is written in C.  And hopefully it is able to meet all of your highscore needs!

It is in the form of a static library (meaning you compile it in with your program).  There is even a little nspirio program to test it.  I added unit tests which tests that the functionality does work as intended so hopefully there shouldn't be any problems!

The initial concept was simple; it is a table of scores and names.  Thinking a little more I figured somebody might want to make a game with difficulties such as "easy", "medium", "hard" and keep highscores for each difficulty.  I used the term identifier; and this library can do that! :)

I used a singly linked-list for the highscore items and there is a way to add extra data should you want to keep more than a name and score.  There is some usage information in the Readme file in the zip attachment.  But just let me know if you have any questions!

Thank you for reading!
Enjoy your day!

Pages: 1 ... 4 5 [6] 7