Changing the prince
-
- Scholar Scribe
- Posts: 1
- Joined: June 20th, 2011, 1:13 am
Changing the prince
Is there a tool that will let me edit how the prince himself (kid.dat) and the sword looks, possibly like a Microsoft Paint type of a thing? Everybody uses all these level editors (don't get me wrong, these are cool), but where are are the object editors? Thanks if you can find (or make) one!
Re: Changing the prince
The following is not meant as an actual suggestion. Merely a flight of fancy.
This would be pretty insane to implement in practice, but I think it's interesting to contemplate whether this would be possible in theory.
I don't know if maybe I already created a thread or post about this the the past, but in theory a program should be able to auto-generate all the prince (kid) images after reading and processing only a single (2D) base image of the prince. The standing pose (SDLPoP's data/KID/res415.png or PR export's kid/normal.bmp) could be a suitable base image, although it only includes two limbs of the prince, which means a running frame might be a better pick. For each target image, the movement - and possibly dual usage, or removal - of each pixel from the base image would need to be decided.ShaggyNerd wrote: ↑June 20th, 2011, 1:57 amIs there a tool that will let me edit how the prince himself (kid.dat) [...]
Code: Select all
/*** http://sdl.beuc.net/sdl.wiki/Pixel_Access ***/
SDL_Surface *image = IMG_Load ("in.png");
/*** Lock and unlock may not be necessary if (SDL_MUSTLOCK (*surface) == 0). ***/
SDL_LockSurface (SDL_Surface *surface);
/*** Read/write surface->pixels, using the surface->format pixel format. ***/
SDL_UnlockSurface (SDL_Surface *surface);
IMG_SavePNG (image, "out.png");
SDL_FreeSurface (image);
- Attachments
-
- pixel_movement.png (1.33 KiB) Viewed 2562 times
Re: Changing the prince
Yes, you have already posted about this here: viewtopic.php?p=22351#p22351
I have even responded to it.
Re: Changing the prince
Oh, yeah.David wrote: ↑January 13th, 2019, 12:21 pmYes, you have already posted about this here: viewtopic.php?p=22351#p22351
I have even responded to it.
I vaguely remembered writing about it, but couldn't find the post.
I see it was the "Various" thread.