Pac-It for Pokemon Mini

PM development, programming, hacking and all that fun stuff.
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

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.
Image
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

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.

Image
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

Suppose I have an 8x8 tile that I want to place at a specific location. How would I tell it to do this?
User avatar
YasaSheep
Posts: 205
Joined: November 20th, 2005, 04:04
Location: Portland (Also the discord)
Contact:

Re: Pac-It for Pokemon Mini

Post by YasaSheep »

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
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

I didn't get any doc folder with my version of PokeMini I have.
User avatar
YasaSheep
Posts: 205
Joined: November 20th, 2005, 04:04
Location: Portland (Also the discord)
Contact:

Re: Pac-It for Pokemon Mini

Post by YasaSheep »

Download the dev version.
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

EDIT: OK, I found it.
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

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?
User avatar
YasaSheep
Posts: 205
Joined: November 20th, 2005, 04:04
Location: Portland (Also the discord)
Contact:

Re: Pac-It for Pokemon Mini

Post by YasaSheep »

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.
VirtualChris
Posts: 153
Joined: February 21st, 2015, 22:53
Location: United States
Contact:

Re: Pac-It for Pokemon Mini

Post by VirtualChris »

This is my map.
Image
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
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?
Post Reply