Search found 125 matches

by SusiKette
Mon Nov 16, 2020 4:40 am
Forum: Newbie Help Center
Topic: Question about collision detection with other objects
Replies: 13
Views: 716

Re: Question about collision detection with other objects

How do you then detect from which side the player "penetrates" the solid object? Do you need a special case if the player penetrates the object exactly from a corner?
by SusiKette
Mon Nov 16, 2020 3:34 am
Forum: Newbie Help Center
Topic: Question about collision detection with other objects
Replies: 13
Views: 716

Re: Question about collision detection with other objects

Here are few examples: 1. Player jumps while moving left/right and hits the bottom of solid object. You would need to push the player down here. But if you push player on X axis first the player would zip to the side of the solid object. 2. Similar case if player falls while moving left/right and hi...
by SusiKette
Mon Nov 16, 2020 2:29 am
Forum: Newbie Help Center
Topic: Question about collision detection with other objects
Replies: 13
Views: 716

Re: Question about collision detection with other objects

I mean if object moves diagonally into another object and you want to push the object out, whether you should push the object out in X or Y axis first? If it depends, how do I figure out in which case X is first and when Y? I think having the order wrong can cause incorrect behavior when the code at...
by SusiKette
Mon Nov 16, 2020 1:47 am
Forum: Newbie Help Center
Topic: Question about collision detection with other objects
Replies: 13
Views: 716

Re: Question about collision detection with other objects

I'm assuming you can also use the distance required for collision to calculate how much the other object needs to be pushed back to not be inside the other object. Since you are checking X and Y separately, does it matter which one you check first? Especially if moving into another object diagonally...
by SusiKette
Sun Nov 15, 2020 6:35 am
Forum: Newbie Help Center
Topic: Question about collision detection with other objects
Replies: 13
Views: 716

Re: Question about collision detection with other objects

Do these two detection methods have any differences? Like speed or some advantages?
by SusiKette
Sat Nov 14, 2020 3:35 am
Forum: Newbie Help Center
Topic: Question about collision detection with other objects
Replies: 13
Views: 716

Question about collision detection with other objects

I have been looking into collision detection and found one method where rather than using hitboxes, the code uses a distance to measure if a hit has occurred. The required distance seems to be calculated something like this: pw = width of player's hitbox ow = width of object's hitbox dist_x = ((pw/2...
by SusiKette
Tue Oct 27, 2020 12:01 pm
Forum: Newbie Help Center
Topic: Zelda 1: understanding the 'scrolling'
Replies: 8
Views: 2091

Re: Zelda 1: understanding the 'scrolling'

To my understanding MMC1 is capable of switching the mirroring mode between horizontal and vertical. I don't know what the nametable updates in this game look like during up/down and left/right screen scrolling, but I would guess that it changes the mirroring mode for the scrolling to happen and the...
by SusiKette
Sat Oct 17, 2020 2:24 pm
Forum: Newbie Help Center
Topic: cc65 custom string conversion
Replies: 5
Views: 1506

Re: cc65 custom string conversion

.charmap seems to be one option, although it's a shame that you can't map characters using .charmap "A",$0A A custom program might work too. I'm not sure if compression algorithms work well on text, but one could be built in the program too. Although you probably need a lot of text to need compress...
by SusiKette
Sat Oct 17, 2020 12:58 pm
Forum: Newbie Help Center
Topic: cc65 custom string conversion
Replies: 5
Views: 1506

cc65 custom string conversion

When you define a string in cc65 it seems to convert it to bytes according to ASCII table, but I was wondering if there is a way to map the letters to different values. Many NES games have $00-$09 as numbers from 0-9, $0A-$23 as letters from A-Z and some bytes after that as special characters. It wo...
by SusiKette
Sat Oct 10, 2020 12:01 pm
Forum: SNESdev
Topic: PEA/PER/PEI instruction and stack relative addressing modes
Replies: 16
Views: 4472

Re: PEA/PER/PEI instruction and stack relative addressing modes

So, these things are used mostly for relocatable code then? I guess they mostly won't be necessary on SNES since the code is at fixed location. By the way, this is a bit off topic, but what do the "Main Screen" and "Sub-Screen" on the SNES actually mean? There seem to be some registers that point to...
by SusiKette
Thu Oct 08, 2020 12:25 pm
Forum: Newbie Help Center
Topic: Reset code and interrupt questions
Replies: 5
Views: 929

Re: Reset code and interrupt questions

I'm not aware of any Mega Man games using 4 name tables. They do mirror name tables in the same direction of the scroll at times, which may leave one of them unused. I did make a mistake there. The game does use only two, but I made a mistake when I looked at the nametable viewer. As for the reset ...
by SusiKette
Thu Oct 08, 2020 5:56 am
Forum: Newbie Help Center
Topic: Reset code and interrupt questions
Replies: 5
Views: 929

Reset code and interrupt questions

I was looking at Mega Man 6's code and found some pieces of code that don't make sense to me, so I wanted to ask if anyone knows if they actually have any significance. First one is in the reset. It seems to compare one byte to #$08 and then two strings of bytes to see if they are equal. The banks t...
by SusiKette
Sun Oct 04, 2020 9:29 am
Forum: SNESdev
Topic: PEA/PER/PEI instruction and stack relative addressing modes
Replies: 16
Views: 4472

PEA/PER/PEI instruction and stack relative addressing modes

I got back into SNES assembly and I guess the first thing to start is to try to clear few things I haven't been able to find answers to yet. 1. According to this site PEA/PER/PEI instructions push an effective address to stack. What is the point of these instructions and what are some practical uses...
by SusiKette
Sun Oct 04, 2020 7:02 am
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 382
Views: 206094

Re: Mesen-S - SNES Emulator

I don't really get the point, but it can still cause incorrectly displayed code if the "BRK operand" is actually the next opcode. In this case a branch jumps over the BRK instruction. The BRK code itself is a JML instruction pointing to itself. I guess the debugger needs a check to see if the byte a...
by SusiKette
Sun Oct 04, 2020 2:12 am
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 382
Views: 206094

Re: Mesen-S - SNES Emulator

I was looking through Super Metroid's code and I came across BRK #$9C . To my understanding BRK shouldn't have an operand, so is this a disassembly error in the debugger or is there another reason why it is displayed this way? Also, would it be possible to add options in the debugger to hide RAM and...