Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: aeTIos on December 13, 2010, 03:28:48 am

Title: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 13, 2010, 03:28:48 am
Hi,

after that my calc was resetted, i decided to start again. I started up an Pokemon RPG.
Storyline:
after you have gathered all the information in your Pokedex, a guy of Team Rocket stealed it! you have to get it back, because a Pokedex is not cheap.
if you hold on, you will get it back!

Featuring all things of Pokemon games, Link cable battling(!) and more.
 
Screenie attached.           source and compiled exec as well.                         
Edit: look at the post somewhere on the bottom of this page, source and compiled exec is attached there (maze demo)
Title: Re: Pokemon RPG: the forgotten quest
Post by: Yeong on December 13, 2010, 08:11:05 am
looks good
Title: Re: Pokemon RPG: the forgotten quest
Post by: ztrumpet on December 13, 2010, 08:13:26 am
This looks great!  I like how the greyscale isn't very flickery. :)  Great job.

How long do you think this will be?  (Time wise)
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 13, 2010, 09:41:44 am
*bump*
I think ~4 hours
Title: Re: Pokemon RPG: the forgotten quest
Post by: yunhua98 on December 13, 2010, 02:12:47 pm
Nice!  So its really just a battle/chase game and not a full fledged Pokemon RPG?
I guess that means it'll be done sooner.  :D
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 13, 2010, 02:13:57 pm
excactly! i think it will last 2-3 months (i hope less, though) to complete it
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 13, 2010, 02:16:13 pm
Interesting. I was gonna ask if you were gonna make a small version of Pokémon or an arena type game the other day since you haven't coded RPGs before but I'm glad you took the smaller route since a full Pokémon game could take a while (although feasible). Good luck!
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 13, 2010, 02:20:20 pm
thanks. btw, i really need sprites, as my spriting capabilities arent very high. i need a rocket grunt overworld sprite and a battle sprite (you are only going to fight with Rockets in trainer battles) and ~20 pokemon 16x16 sprites. oterwise, the battle engine would look very boring without sprites.
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 13, 2010, 02:34:27 pm
Please ask sprite requests in the sprite section, else they will most likely be ignored even more.
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 13, 2010, 02:37:02 pm
okay, thanks for letting me know.
btw, i'm doing a shot on spriting too
and, im going to make a maze to demonstrate the tilemapper.
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 13, 2010, 02:40:58 pm
Ah I see. Good luck!
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 13, 2010, 04:10:18 pm
I'm writing the full storyline tomorrow here. as well with some details for the gameplay. im now busy with sprites and more of that stuff. it is kinda cool, i think. done a front view pikachu sprite yet
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 13, 2010, 04:18:42 pm
Ah cool, can't wait for tomorrow then :)
Title: Re: Pokemon RPG: the forgotten quest
Post by: meishe91 on December 13, 2010, 07:38:29 pm
Seems like an interesting concept. Good luck on this :)
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 14, 2010, 10:16:25 am
okay, the time has come, i release my maze demo for demonstrating the tilemapper. no screenie else the maze will be 'unmazed'. source also attached, tile2
attachments come in a minute...

Edit:
Done.
Title: Re: Pokemon RPG: the forgotten quest
Post by: holmes221b on December 14, 2010, 10:31:11 am
It looks really good.
The only issue I'm having is that it's difficult to get around the maze for some reason--though that may be 'cause I'm playing it using Wabbit...
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 14, 2010, 12:22:41 pm
!? i thought the maze wasnt really that difficult
Title: Re: Pokemon RPG: the forgotten quest
Post by: holmes221b on December 14, 2010, 12:28:45 pm
It's not that it's difficult, it's when I press the arrow keys, the little trainer person doesn't always move--even though I know for a fact that I can go in that direction, since I had just come from that direction.
Title: Re: Pokemon RPG: the forgotten quest
Post by: Builderboy on December 14, 2010, 01:53:39 pm
Hmmm i didn't encounter the movement issue, and the tilemap works really well and fast :) I do have a couple suggestions tho.  Maybe make your character default to the standing position whenever you are not pressing a key?  Also, i have to ask, what is the ground doing? ;D
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 14, 2010, 03:10:41 pm
its the grayscale, i have to fix that, because it will get slower as the map size grows (will have to check how big the map can be without having very low speeds, tho) also, maybe the movement issue might be encountered by the (little) time that it takes to load the map, shoud fix that it loads the map every time you move and make place saving
Title: Re: Pokemon RPG: the forgotten quest
Post by: Builderboy on December 14, 2010, 04:29:10 pm
Hmmm are you using Axe's default greyscale or something else?
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 14, 2010, 04:30:05 pm
yes
i use axe's default grayscale with some random pixel sprite
Title: Re: Pokemon RPG: the forgotten quest
Post by: holmes221b on December 14, 2010, 05:09:28 pm
its the grayscale, i have to fix that, because it will get slower as the map size grows (will have to check how big the map can be without having very low speeds, tho) also, maybe the movement issue might be encountered by the (little) time that it takes to load the map, shoud fix that it loads the map every time you move and make place saving
Or perhaps because I'm using Wabbit? That's what I think it is.
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 14, 2010, 06:17:39 pm
maybe, wabbit is a bit slower
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 15, 2010, 03:29:57 am
Is grayscale supposed to update like 8 frames per second? It seems like DispGraphr isn't recalled often enough. 1, you do not need a DispGraph when you use DispGraphr. Also instead of DispGraphr:Pause 150 you need to run DispGraphr through a small For loop or something. It would help a bit, although if a lot of stuff is ran afterward it might still flicker a bit.
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 15, 2010, 05:08:29 am
okay, btw little update and speed fix: it doesnt draw the whole map so it runs at steady speed independent from how big the map is.
how did i do this:
i made 2 list pointers that give the littlest y and x value of the map, then i drew the map from {L1}to{L1}+11, (x) and from {L1+2} to {L1+8} (y)
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 15, 2010, 01:47:06 pm
Nice, you mean that it only draws the row/column of the map you are scrolling into?
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 15, 2010, 01:48:07 pm
yes, that is. i tried it with grayscale (removed it silly me) and it runs really fast :D
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 15, 2010, 03:07:29 pm
That's good to hear :)
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 15, 2010, 03:15:48 pm
Also, did you see my new userbars? (i think they're nice)
And, i started working on the Battle engine!
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 15, 2010, 03:17:41 pm
Yeah I like them actually. You should maybe put 3 to the right and 4 to the left, though.
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 15, 2010, 03:20:46 pm
yes, that would take up less space, if you meant that :P
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 15, 2010, 03:59:14 pm
Yeah I wondered because you had 6 bars to the left, but only one to the right. It would be closer to being equal with 3 to the right. :P
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 15, 2010, 04:06:41 pm
i hope its better now? i grouped the 4 bars
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 15, 2010, 04:08:54 pm
I guess that can do. I meant more like the following, though. :P

(http://userbars.removedfromgame.com/userbars.php?bg=custom&msg=Pokemon%20RPG%3A%20the%20forgotten%20quest&pct=5&lines=true&bgurl=http://img542.imageshack.us/img542/7676/ashcyndaquil.png)(http://userbars.removedfromgame.com/userbars.php?bg=custom&lines=true&bgurl=http://viathibgames.free.fr/userbar3.png)
(http://userbars.removedfromgame.com/userbars.php?bg=custom&msg=BATTLE%20ENGINE&pct=0&lines=true&bgurl=http://img222.imageshack.us/img222/2750/totodileanime.png)(http://omnimaga.org/images/userbars/84+se_sig.gif)
(http://userbars.removedfromgame.com/userbars.php?bg=custom&msg=tilemapper&pct=100&lines=true&bgurl=http://img542.imageshack.us/img542/7676/ashcyndaquil.png)(http://img259.imageshack.us/img259/561/oietwinklesj.gif)
(http://userbars.removedfromgame.com/userbars.php?bg=custom&msg=maps&pct=0&lines=true&bgurl=http://img542.imageshack.us/img542/7676/ashcyndaquil.png)
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 15, 2010, 04:09:43 pm
ah ok
ill see what i can, its kinda hard to regroup them that way :P
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 16, 2010, 01:29:02 am
Actually now it doesn't look too bad. Fortunately, it wraps on a new line when on a lower resolution or smaller window so it should be fine. :)
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 16, 2010, 02:55:49 am
ah ok.
Btw, minor update: added Pokecenter, Mart and tall grass sprites, now going to work on attack generation when walking in tall grass and i made the colission detection line {gdb1+.....} in r6 so its less type work to build it up
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 16, 2010, 04:36:36 am
Cool to see more progress. :) What do you mean by attack generation when walking in tall grass, though? ???
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 16, 2010, 09:57:09 am
omg sorry about wrong word. its an engine to generate attacks of pokemon if you walk in tall grass
i think the word i had to use is attack generator ???

EDIT:
added screenie with current progress
(i messed up filename for anti-sameattach)

in the actual game, the ground looks much better
plus i should add a clrdraw in the pokecenter textbox

EDIT2:

Added stunning pokemon sprites!
Title: Re: Pokemon RPG: the forgotten quest
Post by: yunhua98 on December 16, 2010, 02:29:44 pm
Those look really nice on-calc!
btw, you may want to put DiagnosticOff at the beginning of your code to remove the run indicator and "Done", and also, would it be possible to make those in 3lvl grey?  :o

you want the backs of them too, right?
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 16, 2010, 02:32:59 pm
 as for the grayscale, unfortunately no, i dont use pt-on for those sprites, check out the "24x24 sprites?" topic for the actual routine
for the backs: yes please!
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 16, 2010, 10:30:42 pm
omg sorry about wrong word. its an engine to generate attacks of pokemon if you walk in tall grass
i think the word i had to use is attack generator ???
I take it you mean "random enemy encounters" and/or "random battles"? This is how it is called in RPGs when you walk around then suddently everything disappears to show a battle scene.

Also the grayscale looks nicer in your screenshot, now.
Title: Re: Pokemon RPG: the forgotten quest
Post by: JosJuice on December 17, 2010, 01:56:58 am
omg sorry about wrong word. its an engine to generate attacks of pokemon if you walk in tall grass
i think the word i had to use is attack generator ???
I take it you mean "random enemy encounters" and/or "random battles"? This is how it is called in RPGs when you walk around then suddently everything disappears to show a battle scene.
I think he's talking about generating movesets for the Pokémon that are encountered.
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 17, 2010, 02:20:30 am
Hmm I wonder how complicated that would be, especially if there are all sorts of elemental properties and criterias for each kind of Pokémon and if attack names have to be generated as well.
Title: Re: Pokemon RPG: the forgotten quest
Post by: AngelFish on December 17, 2010, 02:32:41 am
They managed to do it on the Game boy, so it should be possible.

This site (http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_base_stats_data_structure_in_Generation_I) seems to have some good information on the game structure.
Title: Re: Pokemon RPG: the forgotten quest
Post by: shmibs on December 17, 2010, 03:09:19 am
this looks rather nice.

why do you disable gray while displaying text? if you were to draw the speech window to both buffers and use dispgraphr you could keep it on all the time.
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 17, 2010, 09:34:43 am
Actually wouldn't he only need to display it on the main buffer if he uses 3 level grayscale?
Title: Re: Pokemon RPG: the forgotten quest
Post by: JustCause on December 17, 2010, 09:37:28 am
why do you disable gray while displaying text? if you were to draw the speech window to both buffers and use dispgraphr you could keep it on all the time.
But can you draw text to both buffers? I've looked through the Axe documentation and I didn't think text->backbuffer was implemented.
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 17, 2010, 09:39:21 am
Yeah I'm not sure if Text can even be displayed on the backbuffer. You can always use Copy, though.
Title: Re: Pokemon RPG: the forgotten quest
Post by: FinaleTI on December 17, 2010, 02:47:17 pm
You can't draw text to the back-buffer, but if you draw it to the buffer, then immediately copy it to the back-buffer it'll work.
Although, if you're using 3lvl grey, you shouldn't even need to copy it the back-buffer, as anything black on the main buffer will be drawn as black if I'm not mistaken.

Edit: Here (http://www.gamefaqs.com/gameboy/367023-pokemon-red-version/faqs) is another good repository of info for Pokemon. The FAQ on the battle mechanics is tremendously helpful.
Title: Re: Pokemon RPG: the forgotten quest
Post by: yunhua98 on December 17, 2010, 02:49:13 pm
You can't draw text to the back-buffer, but if you draw it to the buffer, then immediately copy it to the back-buffer it'll work.
Although, if you're using 3lvl grey, you shouldn't even need to copy it the back-buffer, as anything black on the main buffer will be drawn as black if I'm not mistaken.
yeah, that is true, but I think the reason he's not using grey is because he doesn't use Pt-On to display his sprites, look in the 24x24 sprites topic for more info.  ;)
Title: Re: Pokemon RPG: the forgotten quest
Post by: FinaleTI on December 17, 2010, 02:51:42 pm
But I thought this was about when text is displayed when you interact with something on the map...
Title: Re: Pokemon RPG: the forgotten quest
Post by: yunhua98 on December 17, 2010, 02:52:58 pm
Actually I'm not that sure, but last time I was chatting with him on IRC, he said something about not being able to have greyscale pokemon sprites because he doesn't use Pt-On for sprite displaying... although he could still use copy...
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 17, 2010, 06:07:21 pm
How does he draw the sprites? ???
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 20, 2010, 10:53:34 am
I draw them this way:
Code: [Select]
[store pic info here]->pic1
0->X->Y
For(A,0,23
{A*3+Pic1}r->{A+Y*12+L6+X}r
{A*3+Pic1+2}->{A+Y*12+L6+X+2}
End
DispGraph
Repeat getKey
End
^^ instead of splitting them into 9 8*8 sprites
Title: Re: Pokemon RPG: the forgotten quest
Post by: yunhua98 on December 20, 2010, 10:55:01 am
what's the advantage of doing this?  (sorry, I have trouble reading other people's code.  D:)
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 20, 2010, 10:56:10 am
you dont have to split your 24*24 sprite into 9 8*8 sprites, so its less work and less time
Title: Re: Pokemon RPG: the forgotten quest
Post by: yunhua98 on December 20, 2010, 10:57:14 am
I see.  Was your crash related to displaying the sprites?

EDIT:  WOW!  I just realized, your time registered was at 00:00:00
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 20, 2010, 11:05:11 pm
Ooh I see now. Direct memory storage. Seems like a nice trick if you want to use large sprites. Is it slower or faster?

EDIT:  WOW!  I just realized, your time registered was at 00:00:00
O.O
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 21, 2010, 09:00:03 am
Ooh I see now. Direct memory storage. Seems like a nice trick if you want to use large sprites. Is it slower or faster?
i think same speed
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 21, 2010, 03:45:25 pm
Ah ok, well it's good if it's not too slow. It should make using large sprites much easier if used through a Sub() routine.
Title: Re: Pokemon RPG: the forgotten quest
Post by: shmibs on December 21, 2010, 03:55:05 pm
even if he's drawing in only 3 levels of gray he would still have to clear the back buffer area underneath the text-box so as to avoid having bits of gray show through inside the box.

oh, and it would be interesting to know which of those runs more quickly. i doubt they're exactly the same speed
Title: Re: Pokemon RPG: the forgotten quest
Post by: Runer112 on December 21, 2010, 05:09:05 pm
aeTIos, did you ever see the last post I made in your 24*24 sprites (http://ourl.ca/8370/154386) thread? If you're content with copying the sprite without clipping to byte boundaries on the buffer, then that's the most optimized code I could get. One code section is optimized for size, the other for speed.
Title: Re: Pokemon RPG: the forgotten quest
Post by: aeTIos on December 30, 2010, 06:13:56 am
*bump*
its still going on.... but slowly
Title: Re: Pokemon RPG: the forgotten quest
Post by: DJ Omnimaga on December 30, 2010, 11:13:46 pm
Good to hear, and nice to see you back. :)