Author Topic: Jumpman  (Read 137734 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Jumpman
« Reply #135 on: December 31, 2010, 03:19:21 pm »
Not sure if that mode needs to be added, since in most school only one person out of 1000 students usually care about calcs, but we never know, it might actually be used by more people than we think.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Ranman

  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: Jumpman
« Reply #136 on: January 17, 2011, 09:55:26 am »
Some Jumpman action and updates...



Updates include:

 - Rewrite of main game loop
 - Titlescreen now loops infinitely until a timeout occurs or user input
 - Added an intermediate title screen for each level
 - Can now actually complete a level (by collecting all bombs)
 - Can transition from a completed level to the next level
 - 5 levels currently implemented
 - Speed can be adjusted before a level actually begins (5 speeds)
 - Contrast can be adjusted at any time
 - Implemented bonus points based upon how fast a level is completed
 - Jumpman can now shoot diagonally
 - Implemented reset button to go back to main titlescreen
 - Jumpman can now shoot up to 3 bullets at a time
« Last Edit: January 17, 2011, 09:55:46 am by Ranman »
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Jumpman
« Reply #137 on: January 17, 2011, 10:11:15 am »
Wow!  This is certainty starting to look very amazing!  I am confident my friends in school (who have all resorted to calc gaming during homeroom :P) will want to try this when they see it! :)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Jumpman
« Reply #138 on: January 17, 2011, 10:26:24 am »
Wow nice Ranman! I cant try, but its very good i think!
I'm not a nerd but I pretend:

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Jumpman
« Reply #139 on: January 17, 2011, 11:33:10 am »
Oh my, this is looking great! I especially like the titlescreen's antics with the "n," the UFOs, and the intermediary level transitions are great as well! Keep up the great work! ;D
« Last Edit: January 17, 2011, 11:33:29 am by squidgetx »

Offline Ranman

  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: Jumpman
« Reply #140 on: January 17, 2011, 07:50:54 pm »
Thanks for the encouraging comments! :)
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Jumpman
« Reply #141 on: January 18, 2011, 02:09:42 am »
I love it Ranman, great job! :thumbsup:
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: Jumpman
« Reply #142 on: January 18, 2011, 06:04:27 pm »
That titlescreen is epic. I love it Ranman

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Jumpman
« Reply #143 on: January 18, 2011, 06:05:56 pm »
Are you the one who controls the guy in the main screen?

Offline Ranman

  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: Jumpman
« Reply #144 on: January 18, 2011, 06:19:50 pm »
Are you the one who controls the guy in the main screen?

Thanks for the question. By "main screen" do you mean the titlescreen where "Jumpman" is spelled out one letter at a time? If so, you do not control the Jumpman during the titlescreen... It is all done automagically via a set of scripted moves.

For the title screen, I have two independent lists of moves -- one list for Jumpman and one list for the letters. Each list is an array of the following user defined data type:

typedef struct
{
   uint1 count;
   uint1 direction;
   uint1 action;
} SCRIPTED_MOVE_Type;

Where 'count' is the total number of steps in the specified 'direction. I use the 'action' field for Jumpman jumping and for the switching to the next letter. When the total number of steps reaches the 'count', I move to the next element in the array of moves.

This is kind of a brute force method that utilizes a relatively small amount of RAM. It took a few attempts to get the letter movement's synced up to the Jumpman's movements. T'was a fun task to implement.

For those interested, here is the lists of moves:

Code: [Select]
SCRIPTED_MOVE_Type* scripted_jumpman_move;
SCRIPTED_MOVE_Type  scripted_jumpman_move_list[] =
{
         // go get the "J"
{38, DIR_Right, false},
{74, DIR_Left,  false},

         // go get the "u"
{74, DIR_Right, false},
{64, DIR_Left,  false},

         // go get the "m"
{64, DIR_Right, false},
{54, DIR_Left,  false},

         // go get the "p"
{54, DIR_Right, false},
{44, DIR_Left,  false},

         // go get the "m"
{44, DIR_Right, false},
{34, DIR_Left,  false},

         // go get the "a"
{34, DIR_Right, false},
{24, DIR_Left,  false},

         // go get the "n"
{24, DIR_Right, false},
{14, DIR_Left,  false},
{14, DIR_None,  false},
{14, DIR_Up,    true},
{14, DIR_Right, false},
{14, DIR_Left,  false},
{14, DIR_None,  false},
{14, DIR_Up,    true},
{14, DIR_Right, false},
{39, DIR_Left,  false},
{39, DIR_Right, false},
{14, DIR_Left,  true},
{25, DIR_Left,  false},
{99, DIR_None,  false},
{14, DIR_Up,    true},
{0,0,0},
};

SCRIPTED_MOVE_Type* scripted_letter_move;
SCRIPTED_MOVE_Type  scripted_letter_move_list[] =
{
// "J"
{38, DIR_None,  false},
{72, DIR_Left,  false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

// "u"
{58, DIR_None,  false},
{62, DIR_Left,  false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

// "m"
{48, DIR_None,  false},
{52, DIR_Left,  false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

// "p"
{38, DIR_None,  false},
{42, DIR_Left,  false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

// "m"
{28, DIR_None,  false},
{32, DIR_Left,  false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

// "a"
{18, DIR_None,  false},
{22, DIR_Left,  false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

// "n"
{ 8, DIR_None,  false},
{14, DIR_Left,  false},
{14, DIR_Right, false},
{28, DIR_None,  false},
{14, DIR_Left,  false},
{14, DIR_Right, false},
{28, DIR_None,  false},
{49, DIR_Left,  false},
{37, DIR_Right, false},
{17, DIR_Down,  false},
{ 1, DIR_None,  true},

{0,0,0},
};
« Last Edit: January 18, 2011, 07:20:01 pm by Ranman »
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Jumpman
« Reply #145 on: January 19, 2011, 10:56:36 am »
Yeah, it is quite good Ranman, and it makes me laughe ;D

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Re: Jumpman
« Reply #146 on: January 26, 2011, 07:52:18 pm »
Looks great Ranman! Love the little animations of him :)

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Jumpman
« Reply #147 on: January 26, 2011, 08:03:33 pm »
Is this close to done? Or do you still have some "special" things to add?

Ashbad

  • Guest
Re: Jumpman
« Reply #148 on: January 26, 2011, 08:07:25 pm »
To tell the truth I haven't seen Ranman for a few days.  Maybe something's going on IRL for him, hope not (because usually if something's going on it's bad)

Too bad I don't have a 68K calc... I really would love to help test this and eventually play the 1.0.

Maybe once that 68K emu for Nspire becomes complete-ish, I'll buy to test on that ;D

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Jumpman
« Reply #149 on: January 26, 2011, 08:09:13 pm »
Well, it says he was last active only 4 hours ago :P

Anyway, good luck with this project and all that; it looks great so far...