Code Monkey home page Code Monkey logo

Comments (2)

Glimmericious avatar Glimmericious commented on May 25, 2024 3

So, I did a little more checking around. The boundaries of the stages are set at the following places in the RAM:

Top Boundary: 03002B71
Right Boundary: 03002B75
Bottom Boundary: 03002B81
Left Boundary: 03002BD1

Modifying them does change the area of the map that you can control characters in, which is great.
image
I'm not sure where they are in the ROM yet, still looking for that.

06018400 is where the background color of maps is stored in the RAM.

030029C0 to 03002A5F seem to control what wall sprites are present.
image
The format of a wall looks like this:
image
The first one is the type of wall - in Emerald Coast, this alternates between two types of walls, while setting it to 00 just does some weird thing with the colors. Setting the first value high enough will make the wall completely disappear. The third value relates to the palette. The second and fourth, so far as I know, don't do anything.

03002A80 controls the placement of these sprites.
image
Each value has two variables. The first seems to control the placement, while the second controls the... orientation of the sprites? It looks like it controls how each sprite changes based on the player's location. Changing it match another wall's seems to make it rotate the same as it? It's really odd.

03002B90 to 03002BDF seems to control the size of the collision for walls.
image
It may be a bit hard to see, but I'm standing on the upper layer. The format of the wall works like this:
image
The second value is how far the wall extends to the right, the fourth is how far to the left it extends, the third is how far down, and the fourth is how far forward. That part is pretty straightforward. I have no idea how to apply wall sprites to the collision yet. I've tried to modify the 80 values and nothing happened, but unlike some other useless values, the game resets them to 80 when the map is loaded - I can only assume they do something, I just dunno what that something is.

I'll find the ROM values for everything some other time.

from sbhs.

LavenderTheGreat avatar LavenderTheGreat commented on May 25, 2024

Once this progresses I should be able to work on implementing it in my move editor, but I need to know a few things:
A: How is width measured? In small tiles (Like the ones you added to the platform in greenhill) or in big tiles (Like the platforms in Emerald Beach)?
B: Collision needs more cracking, but I suppose I can go ahead without the wall sprites.
C: I suppose I also need to wait for phase to implement map tiles in SBHS too.
Once that is done I can probably do some stuff and make a make shift map editor and map image exporter (Latter is a big maybe).

from sbhs.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.