0 Members and 1 Guest are viewing this topic.
Nice work! Looking pretty spiffy; I'd be happy to give coding suggestions on how to speed things up.Quote from: JWinslow231. What's "sprite clipping" and should I use it?2. For some odd reason, the gfx_TransparentSprite() routine leaves the tile sprites normal when drawn slightly off-screen, but the player sprite entirely disappears when he is off-screen even one pixel. Why is that, and how do I fix it?3. The "random" colors for the background and spikes look like different shades of blue for some reason. Am I doing it wrong, or is there bias in the random numbers?4. Are there any more conventions and things that can make my programming life easier?1. Sprite clipping makes sure the sprite is drawn properly if parts of it are drawn offscreen or partially offscreen. Sprite functions have a _NoClip version which are a lot faster if the sprites you intend to use won't be offscreen ever.2. It's probably because you are sending incorrect types (signed vs unsigned) values to the function as arguments. Take another look; the function works as intended 3. You basically have to design the palette yourself and the random colors that should be selected. You can set up the palette with random rgb values by looping and doing something like gfx_palette = rgbTo1555( r, g, b );4. I don't believe there are any platformer games yet; but anything you learn or discover along the way would be neat
1. What's "sprite clipping" and should I use it?2. For some odd reason, the gfx_TransparentSprite() routine leaves the tile sprites normal when drawn slightly off-screen, but the player sprite entirely disappears when he is off-screen even one pixel. Why is that, and how do I fix it?3. The "random" colors for the background and spikes look like different shades of blue for some reason. Am I doing it wrong, or is there bias in the random numbers?4. Are there any more conventions and things that can make my programming life easier?
Glad to see a color version @JWinslow23 . I am definitively looking forward for it. How fast does it run so far?
Weird, when I checked the topic earlier at work and just an hour or so ago the screenshot was not animated at all. It is now. Hence why I was asking the speed. As for erasing the elephant, if flickering is the issue, couldn't you use 8-bits mode, draw the map twice on two sides of the screen and flip between each side while erasing the elephant on the invisible side? That's what most people do.
gfx_SetTextFGColor();gfx_SetTextBGColor();gfx_SetTextFGColor();gfx_PrintStringXY();gfx_SetTextScale();gfx_PrintString();gfx_PrintInt();gfx_PrintUInt();gfx_SetTextXY();
Using the following functions:Code: [Select]gfx_SetTextFGColor();gfx_SetTextBGColor();gfx_SetTextFGColor();gfx_PrintStringXY();gfx_SetTextScale();gfx_PrintString();gfx_PrintInt();gfx_PrintUInt();gfx_SetTextXY();
4. I don't believe there are any platformer games yet; but anything you learn or discover along the way would be neat
is he a little elephant?