Author Topic: DragonQuest (TI 84+ BASIC RPG)  (Read 7986 times)

0 Members and 1 Guest are viewing this topic.

Offline Cinaed666

  • LV2 Member (Next: 40)
  • **
  • Posts: 22
  • Rating: +2/-0
  • All your base are belong to us.
    • View Profile
DragonQuest (TI 84+ BASIC RPG)
« on: April 22, 2010, 02:39:34 pm »
Hey people, I'm back with a new project again.
I coded this over a week during class, found it to be a fun project.
There is only one quest, but if people like it, I might work on it some more.

Controls:

Overworld:
Dpad: move around
F1: stats/info
F2: quit dialog
Enter: Ok/scroll through dialog

Battle menu:
F1: attack
F3: Defend
F5: attempt to run away
Enter: Ok/scroll through dialog

Features:
Topdown Overworld view
Pokémon inspired battle menu
Weapon Shop
Inn
Training Hall
Quest
Unlockable (but so far useless) House
'randomized' monsters
Collision detection
Level up system


Seriously sped up preview. (Thanks DJ Omnimaga !!)
« Last Edit: April 25, 2010, 03:54:25 pm by Cinaed666 »

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: DragonQuest (TI 84+ BASIC RPG)
« Reply #1 on: April 22, 2010, 04:32:54 pm »
cool to see you're still into calc programming. I will test this later (and possibly do a screenshot)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #2 on: April 22, 2010, 06:16:53 pm »
This sounds cool. Can't wait to see a screenshot :) (Would try it but don't have my calc with me.)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: DragonQuest (TI 84+ BASIC RPG)
« Reply #3 on: April 22, 2010, 06:36:35 pm »
screenie

In one screenie attempt, I noticed a slow down after you enter houses a few times, though. Do you use Gotos inside Then/End blocks and the like?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #4 on: April 22, 2010, 06:45:01 pm »
So it's completely homescreen?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: DragonQuest (TI 84+ BASIC RPG)
« Reply #5 on: April 22, 2010, 06:46:49 pm »
It seems like so. I do not know his future plan for battles, though, and overworld dungeons. I would like some explorable dungeons and maybe some battles animations
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #6 on: April 22, 2010, 11:39:24 pm »
That looks really nice!  If you do indeed use Lbl/Gotos in your program, there are ways to fix the memory leak without restructuring code if you really dont want to go through the hassle.  I do recomend it though, if you plan to be adding a lot of more code like battle animations and such, as it can both make your code so much easier to read, and a lot faster.

Offline Cinaed666

  • LV2 Member (Next: 40)
  • **
  • Posts: 22
  • Rating: +2/-0
  • All your base are belong to us.
    • View Profile
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #7 on: April 23, 2010, 01:37:09 am »
That looks really nice!  If you do indeed use Lbl/Gotos in your program, there are ways to fix the memory leak without restructuring code if you really dont want to go through the hassle.  I do recomend it though, if you plan to be adding a lot of more code like battle animations and such, as it can both make your code so much easier to read, and a lot faster.
Yeah, I use tons of lbl/gotos etc, I noticed it slows down for me after a while too. So that's why ?
Also yes I'm planning for a dungeon and another town perhaps. The battle animations seem like a nice idea!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #8 on: April 23, 2010, 01:44:08 am »
Well using Lbl's in and of itself will not slow your program down, but doing things like this can:

Code: [Select]
Lbl 1
Repeat A<2
Goto 1
End

Whenever you enter a loop, the OS remembers this so that when it gets to an End, it can remember where to jump back to.  There is a problem with Goto, where if you goto outside of a loop, the OS is still looking for that End.  Once you enter the loop again, it thinks you are entering a different loop, and starts looking for TWO Ends.  As the calculator accumulates Ends, it runs out of memory and gets slower and slower.
« Last Edit: April 23, 2010, 01:44:34 am by Builderboy »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #9 on: April 23, 2010, 01:57:37 am »
Also, using Goto can be fairly slow if the Lbl is not close to the beginning of the program. The TI-Basic parser searches the program from beginning to end until it finds the label. Loop commands, on the other hand, do not require such searches.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: DragonQuest (TI 84+ BASIC RPG)
« Reply #10 on: April 23, 2010, 09:38:51 am »
That looks really nice!  If you do indeed use Lbl/Gotos in your program, there are ways to fix the memory leak without restructuring code if you really dont want to go through the hassle.  I do recomend it though, if you plan to be adding a lot of more code like battle animations and such, as it can both make your code so much easier to read, and a lot faster.
Yeah, I use tons of lbl/gotos etc, I noticed it slows down for me after a while too. So that's why ?
Also yes I'm planning for a dungeon and another town perhaps. The battle animations seem like a nice idea!
Cool ^^. If I was you, I would probably only have one town if you're gonna have just one dungeon, though, unless the enemy level range suddently increased somewhere in the dungeon and that the 2nd village had weapons the first 1st doesn't
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Cinaed666

  • LV2 Member (Next: 40)
  • **
  • Posts: 22
  • Rating: +2/-0
  • All your base are belong to us.
    • View Profile
Re: DragonQuest (TI 84+ BASIC RPG)
« Reply #11 on: April 23, 2010, 01:19:07 pm »
That looks really nice!  If you do indeed use Lbl/Gotos in your program, there are ways to fix the memory leak without restructuring code if you really dont want to go through the hassle.  I do recomend it though, if you plan to be adding a lot of more code like battle animations and such, as it can both make your code so much easier to read, and a lot faster.
Yeah, I use tons of lbl/gotos etc, I noticed it slows down for me after a while too. So that's why ?
Also yes I'm planning for a dungeon and another town perhaps. The battle animations seem like a nice idea!
Cool ^^. If I was you, I would probably only have one town if you're gonna have just one dungeon, though, unless the enemy level range suddently increased somewhere in the dungeon and that the 2nd village had weapons the first 1st doesn't

Thanks for all the feedback guys.
I'm bad at tracking down stuff that could possible slow down my code, or fixing those things if I do, so if anyone finds something in my code that can seriously speed things up (or at least get rid of some of the slowdown) let me know :)
Oh, and some storyline ideas are welcome, too.