Author Topic: Anagramarama  (Read 20744 times)

0 Members and 1 Guest are viewing this topic.

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Anagramarama
« on: March 07, 2013, 06:57:07 pm »
Hey Guys,

I followed the nSDL porting tips (https://github.com/Hoffa/nSDL/wiki/Porting-tips) on a SDL game and would like to show you where I am at!

The game I ported is called Anagramarama (http://www.coralquest.com/anagramarama/).

So without further delay the download link to the source and binary files: https://dl.dropbox.com/sh/efhghoc0yxgwoq8/l8XGuHtdOa/anagramarama.zip

Here are some screenshots:










In the zip file download link above; just copy the .tns files in the bin directory to the same folder on your calculator.  Holler if you have any questions/concerns!

To start run nAnagram-sdl; it should start up within a second or two!  Type the letters in the order the word is in and hit [enter] to submit the word.  You can shuffle the available letters by pressing the [space] key!  If the word isn't recognized it remains in the guess area.  If it is recognized it is added to the answers.  But because of the limited screen size on the calculator only 20 answer box areas are drawn.  To clear the guess word press the [del] key.  To see the answers press the [tab] key.  And to get a new puzzle click the [plus] key.  And try to have fun!

To me this was more of a debugging exercise than a programming one!  Various C functions like fscanf, snprintf, strdup, etc had to be replaced since I could only use the function calls listed on this page: http://hackspire.unsads.com/wiki/index.php/Syscalls

It was a fun experience!

I plan on just doing just a tad more with this game.  I plan on fixing a few display issues, add in mouse support (such that you can click to play), and handling for if you don't copy over all files to the same directory.  But give it a try and let me know what you think.  All sources are included such that you can do whatever you'd like with it! :)

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Anagramarama
« Reply #1 on: March 07, 2013, 07:15:26 pm »
Looks very nice! Unfortunately, I'm afraid I don't have enough free space on my Touchpad... I'll probably load it on my CX soon. In all, awesome job! :D
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Anagramarama
« Reply #2 on: March 08, 2013, 02:37:01 am »
Looks good, indeed :)

I've spread out the word over at TI-Planet: http://tiplanet.org/forum/viewtopic.php?f=17&t=11371
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Anagramarama
« Reply #3 on: March 08, 2013, 06:06:19 am »
Very cool! I love these types of games.

And due to the screen size you won't be able to see a lot of the words entered (the longer ones), right? Also, would changing wordlist.txt let us potentially make wordlists for other languages (ignoring diacritic marks)? Or is there more to it than that?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Anagramarama
« Reply #4 on: March 08, 2013, 07:20:43 am »
Looks very nice and fun to play. :) I assume that despite showing 20 answers at once we can scroll left/right to see more, right? I never played the original so I wasn't sure how it was like. Gonna have to give this a try soon :)

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Anagramarama
« Reply #5 on: March 08, 2013, 08:23:19 am »
TheNlightenedOne: Thanks!

Lionel Debroux: Awesome!  I have seen the past games I've made show up on TI-Planet and it is wonderful!  Every time I saw them I would sent a link to friends/family!  Thank you for this!

chickendude: Yeah, that is true.  Each word has between 6 and 75 possible words you can make but by showing only 20 the longer ones are omitted.  This does have to change; I'll see if I can adjust it some!  As for making wordlists.txt for other languages (ignoring diacritic marks) I have some good news for you! :)  Take a look at this:


The original author added both French and Portuguese!  And so I zipped up their wordlist.txt file and their background image.  So for French download this: https://dl.dropbox.com/s/zq2oah5eftrb6g9/anagrama_fr.zip and Portuguese download this: https://dl.dropbox.com/s/nyaewh46gym9cji/anagrama_pt.zip  To use; extract the zip and transfer the two files over to your calculator replacing the one from the earlier zip file!  When I add the mouse support; there will be a third file that defines where the click regions are! :)

DJ_O: Right now, no, you cannot scroll left/right to see more.  After giving it some thought this morning; I think I should be able to add just a capability without too much trouble!  I'm glad you like it and enjoy playing it! :)

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Anagramarama
« Reply #6 on: March 08, 2013, 10:23:36 am »
So i just loaded it up and it's pretty cool, the one thing it seems to be missing (apart from the longer words) is a clock! Oh, and thanks for the extra two language packs :)

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: Anagramarama
« Reply #7 on: March 08, 2013, 01:59:57 pm »
Is it supposed to work on non-CX calcs ?
If yes, is there a specific directory in which files should be ?
And could you please edit pictures to make game playable in black/white, because I saw the background on my Clickpad and it seems very ugly and unplayable.

But it seems to be a nice job, continue like this ! I didn't know anything about this game, but dictionnaries seem pretty complete so maths will be less and less annoying (thanks to Ndless ^^ )

PS: my Clickpad is actually crashing, after failed to open the 4 pics.
____________

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Anagramarama
« Reply #8 on: March 08, 2013, 03:39:16 pm »
chickendude: Sweet!  And regarding the clock; I suppose if you really think that is necessary it could be added in (as it is in the original)!  How about the clock counts UP instead?  It is set to the same amount of time and I'm sure some words are harder to come up with than others!  Plus, I might be slow because the five minutes it is set at isn't enough time for me! :)

zero44: Well, I haven't tried yet on a non-CX calc.  But I now do have an non-CX calc to test with so I'll try to make sure it'll work (and look alright).  It might take a week or so before I can get the next iteration out there!  Hopefully I'll see why your Clickpad is crashing after failing to open the image files.  I do intend on adding error handling code.  Thanks!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Anagramarama
« Reply #9 on: March 08, 2013, 11:24:27 pm »
One quick and cheap way to check if the game is playable on old Nspire models: Just open the screenshots in an image editor then convert them to grayscale, but decrease the contrast between the white and black a bit :P

« Last Edit: March 08, 2013, 11:26:47 pm by DJ_O »

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: Anagramarama
« Reply #10 on: March 09, 2013, 07:06:01 am »
I just opened the bmp files with mViewer, I don't know how the boxes are on non-CX.
It said me something like : "failed to open *.bmp : Abort/Continue" and I continued 4 times.
But when you click Abort it's fine.

I think I could port it to z80, compressing dictionnaries to... 100 to 150kb :) (enormous)

EDIT: if it can help you, my calc showed during minutes the turning indicator (thing like a clock) with file explorer in background, keyboard was useless so I pulled a battery out.
« Last Edit: March 09, 2013, 03:53:08 pm by zero44 »
____________

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Anagramarama
« Reply #11 on: March 13, 2013, 07:38:12 pm »
Hi guys,

I updated the program!  You can download it from this post's attachment!  I added the clock (counts up).  Also I made it so all answers are accessible.  To see answers use the left and right parentheses buttons; when you complete a word it will auto-scroll.  I added in some error handling.  I will have to look at mouse stuff; I wasn't satisfied with the initial mouse code (the mouse moved way too slow) so I didn't include that code.  I didn't do all of the graphic fixes I intend on yet.

But it is in a pretty good shape!  The modified source is included, as well as I included a Readme file too!

I tested this on a non-CX calculator and it looks OK to me!  I removed the numberBank.bmp.tns file so it is one less file than the last version.

So enjoy!  Let me know if you guys have any questions or concerns!  I like knowing what you guys think!

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Anagramarama
« Reply #12 on: March 13, 2013, 10:05:52 pm »
It's much better now that you can see all the words! I finally managed to find all the words, it took me just over 15 minutes, about 8 minutes trying to find the last word (ATOP ;)). I really like the timer as well, it's a nice feature. Do you have any other features you plan to add? I think it's seems pretty complete/ready for release :)

I know it's a port of another game, but one thing i really liked about a lot of these style games was having to get X amount of points within a certain time limit to advance to the next set of letters, kinda like this one here: http://www.wiredarcade.com/game/1772/Word-Ruffle.html

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Anagramarama
« Reply #13 on: March 13, 2013, 10:23:51 pm »
It looks amazing! I'll try it soon.
Sig wipe!

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Anagramarama
« Reply #14 on: March 14, 2013, 07:22:40 am »
chickendude: Awesome!  I'm so glad you solved it!  For what it is worth it makes me so happy to see somebody using something that I had a part of (and liking it)!  I still want to take a small look at the letters that show up in the available letters & guess area.  I re-sized a graphic to get those letters; but I need to do it again (and better) because I see a pink-ish outline on them.  Other than that (and an eventual mouse support) I don't intend on adding to this game.  Which means more fun games!  The mouse support I'd like to get to; but I'll probably start other games beforehand.

You're right that games with achievements, high-score table, etc do add to a game!  Maybe someday I'll add a configuration such that you could make the game easier/harder.  And probably add a high-score table too! :)  Thanks for the link!

Yeong: Thanks buddy!  I really do hope you enjoy it!