Author Topic: Tale of the Lost Map  (Read 82217 times)

0 Members and 1 Guest are viewing this topic.

Offline megajake03

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +1/-1
  • Luigi Rules!!
    • View Profile
Re: the Tale of Lost Map
« Reply #90 on: November 12, 2009, 09:28:34 am »
In the above quote, the second to last line needs to be
:2->R
That makes a whole lot more sense
What is crazy?..............................Me!
And Luigi rules!!!

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #91 on: November 12, 2009, 10:06:44 am »
No, I think the beginning of the subprogram does that for you.
Ans->R

which means if you entered
:2
:prgmROT

prgmROT stores 2 that's in Ans to R variable.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: the Tale of Lost Map
« Reply #92 on: November 12, 2009, 10:22:34 am »
(altough I'm sure Builderboy could maybe improve that)
You are too kind, I think you did a fabulous job :)

I myself use the Lbl subroutine jumping thing.  Although usually i will permit myself 1 subprogram if i need to.

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: the Tale of Lost Map
« Reply #93 on: November 12, 2009, 06:03:24 pm »
(that's a bit in reference on how trapped gets over like 8-10 FPS while Illusiat 13, which does fewer stuff during walking and has no moving enemies or objects, had trouble even reaching 6)

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: the Tale of Lost Map
« Reply #94 on: November 12, 2009, 06:07:14 pm »
No, I think the beginning of the subprogram does that for you.
Ans->R

which means if you entered
:2
:prgmROT

prgmROT stores 2 that's in Ans to R variable.
Exactly.

And there is a "fun" trick with :IS>( or :DS( IIRC.

(altough I'm sure Builderboy could maybe improve that)
You are too kind, I think you did a fabulous job :)

I myself use the Lbl subroutine jumping thing.  Although usually i will permit myself 1 subprogram if i need to.
I agree.

Curious. It has the advantage of being on the same program. Recursion (calling the program itself :prgmNAME) avoids Goto's with other costs. Example:

prgmNAME
:If fpart(Ans)=fpart(/pi/)
:Then //subroutine!
:Ans-/pi/->R
:If R=4
:Then

:End
://etc.
:End
:
://main loop
:/pi/+4
:prgmNAME
://code
:

Problems: if you execute the program with a bad ans, it will throw error. To solve, put a note on readme or use other program (maybe it is preferable to just use a subprogram to routines) like:

prgmGAME
:1
:prgmNAME

EDIT: other fix:
put this code before the :If fpart(Ans)=fpart(/pi/)
Ans(1 // solves problems with lists
but I don't know what to do with strings, matrices and maybe complex values...
« Last Edit: November 12, 2009, 06:11:26 pm by Galandros »
Hobbing in calculator projects.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #95 on: November 12, 2009, 07:22:18 pm »
hmmm... may be instead of Ans, you can manually store the value in Real variable, like 1->R or something like that. and the beginning of the program can be like,


prgmMAIN

If R=1
Then
//stuff
Return
End
If R=2
Then
//stuff
Return
End



//Stuff
1->R
prgmMAIN
//stuff



Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: the Tale of Lost Map
« Reply #96 on: November 13, 2009, 09:34:03 am »
hmmm... may be instead of Ans, you can manually store the value in Real variable, like 1->R or something like that. and the beginning of the program can be like,
Yes, that solves nicely. But there are 2 extra bytes for each call and remember R can be defined by other TI-BASIC programs or even by the user.
We can always add extra bytes using pi or e (euler constant). Like:
// While works nicely here to save bytes. If you need an explanation, ask.

While R=/pi/
//stuff
Return
End
While R=2/pi/
//stuff
Return
End

2/pi/->R
prgmMAIN
//stuff

This avoids triggering a subroutine by incident. Very rarely someone will have constant euler... pi is somewhat more common.

We are off-topic now but this was a good discussion for me and others.
Hobbing in calculator projects.

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: the Tale of Lost Map
« Reply #97 on: November 23, 2009, 02:42:04 am »
* DJ Omnimaga is wondering how this is progressing

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #98 on: November 23, 2009, 10:14:44 am »
I am writing out the storyline. I think I'm gonna get rid of the race part, and make the whole game in 3 parts, each with different race, and the whole story is same. it's to show the different perspective of the whole scenario in 3 races. First one probably will be human.
I am not doing a lot of coding right now.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

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: the Tale of Lost Map
« Reply #99 on: November 23, 2009, 01:13:59 pm »
Aaah ok, I thought you started, I hope it won't die, noticing there was no coding in months :(

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #100 on: November 23, 2009, 01:20:02 pm »
is it really months??? oh... I am coding from time to time, optimizing there, changing there, and modifying there...
I just implemented the saved file feature with the name, although it is kinda slow. It takes time to decode the name of the saved file (which is a single number) into string, using my encoding and decoding program that ProphetsDementia started...


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

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: the Tale of Lost Map
« Reply #101 on: November 23, 2009, 01:25:15 pm »
Aaah ok that's good at least. I was worried because when people stop coding for extended periods of time they seems to lose interest after a while :(

I was also hoping for new screenies soon :P. Plus I had thoughts about moving this in the featured RPG section with Iambian's one but I was first making sure it was doing any sign of coding progress (in the past I added RPGs there, only to notice they were not even updated anymore x.x)

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #102 on: November 23, 2009, 01:29:19 pm »
oh okay :) good to know. I'll try to post screenie within few days ^^
There doesn't seem to be much progress since last screenie, but I cut like 100 bytes in optimizing


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

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: the Tale of Lost Map
« Reply #103 on: November 23, 2009, 01:45:47 pm »
Aaah cool ^^

Since it has been a while, I'll have your nickname on the forums pink too, though.

j/k

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #104 on: November 23, 2009, 01:49:43 pm »
Ya mean You'll make me lobster too???
j/k haha :P


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*