Author Topic: Reuben Quest Axe Remake  (Read 78078 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Reuben Quest Axe Remake
« Reply #270 on: April 15, 2014, 05:58:02 am »
That moving might be then because of which collisions I check first. I bet i'll have to re-write the moving engine eventually :P
Also, I already have all the enemy sprites in my program, the only sprite for the battle engine which I'm missing in 4LVL greyscale is the one for the magic menu (the arrow key magic menu one)

EDIT: Now I officially suck at making animations
« Last Edit: April 15, 2014, 07:26:40 am by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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: Reuben Quest Axe Remake
« Reply #271 on: April 15, 2014, 08:47:47 am »
Welp, you got the attack animations and battle background wrong D: (although it looks cool so far). This is actually the forest background from Reuben 2, unless you decided to use that one instead? :P




(Btw, the sword is a standalone sprite which is XOR'ed over Reuben's hand)
« Last Edit: April 15, 2014, 09:05:31 am by DJ Omnimaga »

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #272 on: April 15, 2014, 09:00:11 am »
EDIT: Now I officially suck at making animations
LOL.
Also, I do like it. :P

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Reuben Quest Axe Remake
« Reply #273 on: April 15, 2014, 10:13:21 am »
The background and stuff is very easily changable, the only thing i'm paying attention to currently are the animations, lol.

So, open sprite requests:
4lvl magic menu
4lvl reuben sword

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #274 on: April 15, 2014, 12:32:02 pm »
If you aren't already, you should consider using GrayLib. :P It looks like there isn't a whole lot of motion between frames and you should have a lot of time for grayscale updates, so this kind of program should be fairly amenable to its use. If it scares you (it scares me sometimes), I can help with it.

Also, it looks awesome so far. Keep it up!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Reuben Quest Axe Remake
« Reply #275 on: April 15, 2014, 03:59:28 pm »
Do i see it correctly that you have your own double-buffering implement and own pause routines?
Because with my double-buffering I sometimes do nasty things like drawing to the real screen so that I can erase that easy by copying the backup-buffers over. Using GrayLib would mean I'd have to re-write a lot of code then.......

Also, can you make it use L1 and L2 instead of 1.5k more ram?

EDIT: I can't get it to not crash my calc ._. Plus it is so large O.O
« Last Edit: April 15, 2014, 04:22:39 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #276 on: April 15, 2014, 04:22:29 pm »
I guess that's possible actually.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Reuben Quest Axe Remake
« Reply #277 on: April 15, 2014, 04:27:33 pm »
Also, I do re-draw a lot in the moving engine, so maybe I shouldn't use this after all?
EDIT: Could it be that getKey^r causes it to crash? >.<

Also, something on exiting, also in the example progs, causes my calc to crash

Also, am i supposed to draw my sprites etc to L6 and L3? (the normal buffers)
« Last Edit: April 15, 2014, 04:55:02 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #278 on: April 15, 2014, 05:19:26 pm »
Oh by the way, Reuben is my second name so you might wanna rename it to Streetwalrus Quest or something. :trollface:

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #279 on: April 15, 2014, 06:49:50 pm »
Do i see it correctly that you have your own double-buffering implement and own pause routines?

Yup, GrayLib uses two pairs of buffers. One set is the drawing pair, and the other set is the displaying pair. And setting the constant °GIW (GrayLib Include Wait) to a nonzero value results in the inclusion of the pause routines GWait(), GWaitG(), and GWaitN() routines, which wait until the frame currently being displayed has been updated with each dither mask rotation, has been updated the given number of times, or has been updated r1 times, respectively.

Because with my double-buffering I sometimes do nasty things like drawing to the real screen so that I can erase that easy by copying the backup-buffers over. Using GrayLib would mean I'd have to re-write a lot of code then.......

I'm not quite sure I understand what you mean, but I'm going to assume that you mean you don't have a second pair of buffers dedicated to storing the background/tilemap and simply draw sprites, display, and then erase the sprites by redrawing the background/tilemap that was under them. You can still employ this tactic with GrayLib, but when you "send" a buffer pair for display, you'll need to burn a little extra time and copy them back to the drawing buffers, and then you can erase them on the drawing buffers. So something like the following:

Code: [Select]
.Draw sprites on drawing buffer pair GB1/GB2
GDisp()
Copy(GB3,GB1)
Copy(GB4,GB2)
.Erase sprites on drawing buffer pair GB1/GB2

Also, can you make it use L1 and L2 instead of 1.5k more ram?

The comments I left tell me that, by default, GrayLib uses L6, L3, L2+103, and L4-512 as buffers (one important thing to note about the last one is that it will be destroyed by Archive, Unarchive, or Copy() from flash). If you want, you can suppress these default values and provide your own by setting the constant °GII (GrayLib Include Initializations) to 0 and storing your own values to GB1-GB4. Keep in mind that suppressing the default initializations means it can't initially clear the buffers for you, so you'll have to do that yourself.

With the default buffer setup, if you use your own extra pair of buffers to store the background/tilemap, you could still manage to fit one of them into L1, but the other would probably have to be allocated in a temporary variable.

EDIT: I can't get it to not crash my calc ._. Plus it is so large O.O

You say "so large," I say "fully featured." :P

Also, I do re-draw a lot in the moving engine, so maybe I shouldn't use this after all?

I thought the character was the only thing that needed to be redrawn, since the tilemaps are static and don't smoothscroll. Is that not the case?

EDIT: Could it be that getKey^r causes it to crash? >.<

It's probably best to stay away from getKeyr with GrayLib, since it can probably mess up a number of things (reinstating the OS interrupt, drawing modifiers in the top-right corner of the screen, etc.). If you don't need the 2nd and alpha modifier logic and really just wanted the waiting key check, you could set the constant °GSGK (GrayLib Support getKey) to 1 and use a routine like the following:

Code: [Select]
Lbl KeyWait
 While 1
  Stop
 EndIf getKey
Return

Also, something on exiting, also in the example progs, causes my calc to crash

Hmm... the example programs certainly don't crash my calculators. Can you reproduce that on an emulator? If so, I could debug it more easily.

Also, am i supposed to draw my sprites etc to L6 and L3? (the normal buffers)

I was sort of lazy in the GrayLib post and readme and basically told people to look at examples to learn how to use it, so the confusion is understandable. You want to do all your drawing to the buffer pair GB1 and GB2. GB3 and GB4 are the buffers currently being displayed by the interrupt, and GDisp() "sends" a frame by swapping the buffer pointers held by GB1 and GB2 with GB3 and GB4, respectively.

And now that I look at this, I should probably make GDisp included by default, since it's basically the most important command... You currently have to request its inclusion by setting the constant °GID (GrayLib Include Display) to 1.
« Last Edit: April 15, 2014, 06:59:35 pm by Runer112 »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Reuben Quest Axe Remake
« Reply #280 on: April 15, 2014, 07:28:32 pm »
understanding more and more now! (definetley going to use this! :D) And last time on exiting the calc randomley didn't crash, maybe it was only me messing stuff up because using L1-L6 in my prog and not paying attention to stuff :P
ALso, so far I used L2 as a complete screen buffer just fine.

EDIT: Ok, fully using greylib now, and i must say, IMO it is worth the 700 bytes :P
« Last Edit: April 15, 2014, 07:57:11 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #281 on: April 15, 2014, 08:20:11 pm »
You've got it working fine? That's awesome, I was actually expecting it to be a lot more of a hassle. :P  Let me know if you have any other questions about it.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #282 on: April 16, 2014, 05:54:12 am »
Well, that's pretty nice ! :D

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Reuben Quest Axe Remake
« Reply #283 on: April 16, 2014, 08:12:38 am »
Here's the sword. Just recolored the one from DJ's animated colored sprite. It *should* be ok. Feel free to modify it as need be. *edit* Forgot to mention that I made the middle sprite match the width of the other diagonal sprites.


*Edit* Added magic menus and normal menus. :D
« Last Edit: April 16, 2014, 08:44:23 am by Art_of_camelot »

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: Reuben Quest Axe Remake
« Reply #284 on: April 16, 2014, 03:18:58 pm »
Oh I like those Art :D. However, for the menu I think it would be best if the sword for the attack icon didn't use dark gray since we won't be able to see it well.


By the way, it has been a long while since I used Axe, but in Axe is it easy to switch L3/L6 buffers around to generate the flashing animations demonstrated in the second screenshot above? (In the above, I simply XORed the black sprites over and over)
« Last Edit: April 16, 2014, 03:21:02 pm by DJ Omnimaga »