Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [ID] Topic: Skull Knight could block?!  (Read 3181 times)

0 Members and 1 Guest are viewing this topic.

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1860
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
Skull Knight could block?!
« on: August 18, 2014, 11:38:00 PM »
0
Yup, I'm still around. Been distracted lately with girls and work. Hacking is boring stuff, too.

I went back to studying the boss coding in CV3. Messing around with a couple RAM offsets, I was able to understand a little better how the programmer assigned to the bosses handled things; it's a vastly different style from the normal enemies' programming. Anyway, while analyzing the Skull Knight (the first boss of CV3) code, I noticed an interesting line checking the controller state, specifically the attack key. Decades of gaming experience told me that could only be one thing -- a blocking algorithm. So I tested it. Sure enough, the Skull Knight can block. I probably saw it happening but was just too busy trying to kill him to notice. Anyway, it's pretty easy to force him to do it:

  • You must be standing at the same height as (or less than 8 pixels from) his feet
  • You must be closer than 80 pixels
  • You must be farther than 48 pixels
  • You must either press or hold the attack button
  • He must be walking toward you, it won't work if you're behind him
  • He must be between animations (walking is 4 frames long)

Also, his damage value changes in the Catacombs stage while blocking, I guess. Or maybe it's how CV3 handled immunity, I'm not sure on that yet.

It's pretty useless trivia though, considering if you try to make him block, he will attack you and typically you are close enough to get hit by his sword or nailed by one of his bones (in the Catacombs).
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Offline X

  • Xenocide
  • Master Hunter
  • *****
  • Posts: 9361
  • Gender: Male
  • Awards SuperOld Dungeonite: Members who have been around since the oldOLD days. The Unfazed: Never loses his/her calm, even in the most heated arguments. The Retro Gamer: Has a heated passion for the oldschool VG Titles.
    • Awards
  • Favorite Game: Super Castlevania IV (SNES)
  • Likes:
Re: Skull Knight could block?!
« Reply #1 on: August 18, 2014, 11:44:38 PM »
0
Quote
Skull Knight could block?!

You didn't know..?

Quote
Been distracted lately with girls and work.

Good excuse as any, lol!

Quote
Yup, I'm still around.

Welcome back TheouAegis :D
"Spirituality is God's gift to humanity...
Religion is Man's flawed interpretation of Spirituality given back to humanity..."

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1860
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
Re: Skull Knight could block?!
« Reply #2 on: August 19, 2014, 03:49:40 PM »
0
I was never really gone, just bathing in the moat beneath the castle.

Like I said, I probably saw him block but never noticed because I was too busy killing him. Anyway, this post was mostly about how to force him to block. It's useful info, since it prevents him from moving. He will block for a moment and then attack, neither action allowing him to move. With practice, you can get block lock him without getting in harm's way.
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Offline theANdROId

  • Master Hunter
  • *****
  • Posts: 1001
  • Gender: Male
  • Raiding the Castle's Treasure Room...
  • Awards 2014-12-FoodItem Sprite Contest 3rd Place Winner
    • Awards
  • Favorite Game: Castlevania: Legacy of Darkness (N64)
  • Likes:
Re: Skull Knight could block?!
« Reply #3 on: August 19, 2014, 06:51:52 PM »
0
I was never really gone, just bathing in the moat beneath the castle.

I thought I smelled lavender!!  :D ;)

Offline X

  • Xenocide
  • Master Hunter
  • *****
  • Posts: 9361
  • Gender: Male
  • Awards SuperOld Dungeonite: Members who have been around since the oldOLD days. The Unfazed: Never loses his/her calm, even in the most heated arguments. The Retro Gamer: Has a heated passion for the oldschool VG Titles.
    • Awards
  • Favorite Game: Super Castlevania IV (SNES)
  • Likes:
Re: Skull Knight could block?!
« Reply #4 on: August 19, 2014, 07:35:32 PM »
0
Usually it's just attacking him that would trigger the block move. But while he rarely does it in the beginning stage he will definitely block far more often in the cavern area.
"Spirituality is God's gift to humanity...
Religion is Man's flawed interpretation of Spirituality given back to humanity..."

Offline Inccubus

  • Wannabe Great Old One
  • Master Hunter
  • *****
  • Posts: 3265
  • Gender: Male
  • Warrior
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. SuperOld Dungeonite: Members who have been around since the oldOLD days. Permanent Resident: Seems to always be around to post/reply.
    • Awards
  • Favorite Game: Vampire Killer (MSX)
  • Likes:
Re: Skull Knight could block?!
« Reply #5 on: August 20, 2014, 03:11:07 AM »
0
Interesting tidbits as always. You ever look into where the code that draws the cross to the title screen is?
"Stuff and things."

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1860
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
Re: Skull Knight could block?!
« Reply #6 on: August 20, 2014, 06:44:21 PM »
0
Just the addresses I have already. I haven't delved into how vram is handled yet. Thanks for reminding me about that.

I just took a peek at the Cyclops. Bosses were definitely handled by somebody else. The same guy for some of them if not all of them. for enemies like sword skews and Dullahan, and whip skeletons, the collision points are calculated for the weapons based on the sprite, but bosses have a new object created solely for that. It us just like rookie programming in GM of melee attacks. No offense intended, it's the simplest logical method after all.

Oddly, the timelines for the skull knight handle his animation, the animation for the Cyclops is based on image speed like regular enemies. I'm not sure what that entails.

You can also tell the order bosses were programmed. $05F0 in the RAM is the timeline reference for each boss. Skull knight occupies #01 and {#09,#0C}, which suggests to me he originally just paced. then they later added jumping and attacking. Blocking seemed to come first (9) and backstepping (C) was an afterthought.
« Last Edit: August 20, 2014, 07:28:45 PM by TheouAegis »
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Tags:
 

anything