I realized something: I have no idea what I'm doing. I have a little experience in assembly with Odyssey^2 programming. But I still have no idea how to make a sprite appear and move it around. I looked at the Orange and Zelda code and I didn't understand most of it. I understood that in Zelda, it checked for Link's collision detection, but that's about it. I need someone to dumb down the code and just make a barebones, include only what's needed example of how to get a sprite on screen and move it around.
I fixed Marill's eyes. I also made it so when you press A, it displays the word "test" and the game doesn't do anything else.
Pac-It for Pokemon Mini
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
Re: Pac-It for Pokemon Mini
After hours of trying various things, I finally got a little Marill to move around the test screen. I don't know how, but I did. The thing that bothered me the most was that I unwittingly kept trying to make a tile instead of a sprite. Since the Marill is supposed to be swimming, I don't plan to have any animation for it. Just drawing this in a 16x16 pixel was hard.
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
Re: Pac-It for Pokemon Mini
Suppose I have an 8x8 tile that I want to place at a specific location. How would I tell it to do this?
- YasaSheep
- Posts: 205
- Joined: November 20th, 2005, 04:04
- Location: Portland (Also the discord)
- Contact:
Re: Pac-It for Pokemon Mini
Tilemapping has to be enabled, your map that contains the tile needs to be set as the tilemap in use, then you set that position in the map to the tile's index. Tilemaps are different from sprites in that you don't specify an exact position for each tile, they're placed in 8x8 tiles back to back.
In the documentation supplied with PokeMini, check out doc/PM_PRC.html#Map_Rendering_Stage
In the documentation supplied with PokeMini, check out doc/PM_PRC.html#Map_Rendering_Stage
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
Re: Pac-It for Pokemon Mini
I didn't get any doc folder with my version of PokeMini I have.
- YasaSheep
- Posts: 205
- Joined: November 20th, 2005, 04:04
- Location: Portland (Also the discord)
- Contact:
Re: Pac-It for Pokemon Mini
Download the dev version.
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
Re: Pac-It for Pokemon Mini
EDIT: OK, I found it.
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
Re: Pac-It for Pokemon Mini
Suppose I want to choose a tile from a map that isn't being displayed. Is it possible to do that without displaying the entire map?
- YasaSheep
- Posts: 205
- Joined: November 20th, 2005, 04:04
- Location: Portland (Also the discord)
- Contact:
Re: Pac-It for Pokemon Mini
You don't display the entire map at once. Rather a tilemap is meant to contain unique entries of each tile that can be displayed together. You select which tiles are displayed at any given time by setting the indexes in RAM, which is also the only way to display them. If you want to not display anything, so to speak, you need to have an empty tile in your tilemap.
-
- Posts: 153
- Joined: February 21st, 2015, 22:53
- Location: United States
- Contact:
Re: Pac-It for Pokemon Mini
This is my map.
When I go to select something from the bottom row, though, the one with numbers, it doesn't display the numbers I've chosen.
How do the pros do scores if they can't use more than one map at a time and you can't choose tiles offscreen?
When I go to select something from the bottom row, though, the one with numbers, it doesn't display the numbers I've chosen.
Code: Select all
mov x1,$13C0 ; pick out a tile (the number 0)
mov x2, $1376 ; where i want the tile to be (below "mins)
mov a, [x1]
mov [x2], a
mov x1,$13C0 ; pick out a tile (the number 0)
mov x2, $1377 ; where i want the tile to be (below "mins")
mov a, [x1]
mov [x2], a