Search found 144 matches

by POLYGAMe
Sun Jul 02, 2017 7:48 am
Forum: Megadrive/Genesis
Topic: NOOB ASM - How to load only one tile?
Replies: 4
Views: 741

Re: NOOB ASM - How to load only one tile?

Multiply the tile ID by 0x20 (i.e. shift left by 5) to get its address in VRAM. In other words, tiles start at 0x0000, 0x0020, 0x0040, 0x0060... all the way up to 0xFFE0 (the last tile). Note that if you're loading consecutive tiles you don't need to set the address again after each one. I'd sugges...
by POLYGAMe
Sun Jul 02, 2017 6:46 am
Forum: Megadrive/Genesis
Topic: NOOB ASM - How to load only one tile?
Replies: 4
Views: 741

Re: NOOB ASM - How to load only one tile?

Are you sure the SetVRAMwrite creates the correct command word for VDP ? LOL I have no idea. This is all very new to me. Apparently it does this: SetVRAMWrite: macro addr move.l #(vdp_cmd_vram_write)|((\addr)&$3FFF)<<16|(\addr)>>14, vdp_control endm ^^^ That's from the VDP file from the Big Evil we...
by POLYGAMe
Sun Jul 02, 2017 6:35 am
Forum: Megadrive/Genesis
Topic: NOOB ASM - How to load only one tile?
Replies: 4
Views: 741

NOOB ASM - How to load only one tile?

This is driving me nuts. I have been working away of Big Evil Corp's awesome slides but I'm stuck at how to display just one tile. I have my 'H' character displaying on screen and all tiles are set to 0 so the following code fills the screen with H characters. All well and good but no matter what I ...
by POLYGAMe
Tue Jun 27, 2017 2:44 am
Forum: Megadrive/Genesis
Topic: Drawing lines/pixels
Replies: 5
Views: 845

Re: Drawing lines/pixels

Thanks! That should help get me started :)
by POLYGAMe
Mon Jun 26, 2017 8:43 am
Forum: Megadrive/Genesis
Topic: Drawing lines/pixels
Replies: 5
Views: 845

Re: Drawing lines/pixels

How would this be done with polygons?
by POLYGAMe
Mon Jun 26, 2017 8:15 am
Forum: Megadrive/Genesis
Topic: Drawing lines/pixels
Replies: 5
Views: 845

Re: Drawing lines/pixels

I had to solve this exact problem for Big's Fishing Derby. The basic idea is that you have to draw a line using one tater algorithm (e.g., Bresenham's ) into a tile buffer. But how this goes will depend on whether you are drawing the line with sprites or with planes: if using planes, you can draw t...
by POLYGAMe
Mon Jun 26, 2017 3:04 am
Forum: Megadrive/Genesis
Topic: Drawing lines/pixels
Replies: 5
Views: 845

Drawing lines/pixels

Hi guys, I'm just starting out with 68k asm and making some progress. I decided to go this route just as a pure learning experience (I have done a few demos in C wirh the SGDK before) and I want to make something similar to an Android game I published a few years back. Basically it has a poly web li...
by POLYGAMe
Mon Apr 25, 2016 9:51 am
Forum: SGDK
Topic: Simplest way to swap sprite flames?
Replies: 7
Views: 1483

Re: Simplest way to swap sprite flames?

Ah, got it! Thanks :) For my player I just need SetFrame but I'll need full animation soon. Thanks!
by POLYGAMe
Mon Apr 25, 2016 12:18 am
Forum: SGDK
Topic: Simplest way to swap sprite flames?
Replies: 7
Views: 1483

Re: Simplest way to swap sprite flames?

Yeah I decided I'd use the engine as some objects will require more animation. I'm struggling to see how to use animations in the sprite demo. I see where they're defined but not how they're implemented. I can write my own using timers and SetFrame etc but I just wasn't sure if that was the 'proper'...
by POLYGAMe
Sun Apr 24, 2016 5:56 am
Forum: SGDK
Topic: Simplest way to swap sprite flames?
Replies: 7
Views: 1483

Re: Simplest way to swap sprite flames?

I can't work it out... I can't see in any of those functions where I can change the tile index of my sprite sheet to change frame... EDIT: I worked out how to do it with SetFrame. I was looking in the sprite project and I understand how the animations work (how it runs through each row as an animati...
by POLYGAMe
Wed Apr 13, 2016 10:22 am
Forum: SGDK
Topic: Simplest way to swap sprite flames?
Replies: 7
Views: 1483

Re: Simplest way to swap sprite flames?

Cool. I thought that might be slower, like setting your tile map every frame instead of scrolling. I guess im just getting used to how the VDP works. I'll have a play on the weekend. Thanks for your help again!
by POLYGAMe
Wed Apr 13, 2016 6:52 am
Forum: SGDK
Topic: Simplest way to swap sprite flames?
Replies: 7
Views: 1483

Simplest way to swap sprite flames?

The sprite engine animation is overkill for what I need. I just want to swap the image of my sprite when I press a joystick direction. What's the best way to do this? Which function should I be calling? I haven't been able to work it out from the docs. Sorry for the super noob question!
by POLYGAMe
Sat Apr 02, 2016 9:09 pm
Forum: SGDK
Topic: A question on palettes/colour cycling
Replies: 3
Views: 1109

A question on palettes/colour cycling

Hi again! Say I have an image loaded that only uses 4 colours and I have a palette of 16. Is it possible to cycle through the pallete colours instead of swapping palettes? I think this could be used for some cool effects. If this is possible, how exactly would it be done? I'm thinking it will be a g...
by POLYGAMe
Sat Apr 02, 2016 9:05 pm
Forum: SGDK
Topic: Tiles and sprites question
Replies: 21
Views: 3347

Re: Tiles and sprites question

Stef wrote:I fixed the issue but can't yet diffuse the correction as there are also many others changes and i need to put everything in a stable state now.
Sorry for long delay for a minor fix basically.
Cool, thanks for the update :)
by POLYGAMe
Sat Apr 02, 2016 11:06 am
Forum: SGDK
Topic: Tiles and sprites question
Replies: 21
Views: 3347

Re: Tiles and sprites question

Just wondering what the outcome here was? I'm having similar issues...