Search found 100 matches

by Kannagi
Sat Apr 16, 2016 12:44 pm
Forum: SNESdev
Topic: Dealing with Variables in Ram That Are Only Used in One Area
Replies: 13
Views: 3894

Re: Dealing with Variables in Ram That Are Only Used in One

I also use temporary variables, $10 for variables and 10 others for the function (in / out).
by Kannagi
Fri Apr 15, 2016 1:15 pm
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Re: Some question about Mode 7

It's cool that you share your source code ;)
I thought put my demo of A-RPG on github but surely when the source code will be finish :)
(I don't have the motivation to do update on github regularly on such a project).
by Kannagi
Wed Apr 13, 2016 4:43 am
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Re: Some question about Mode 7

Thank you , I updated ;)
by Kannagi
Wed Apr 13, 2016 1:51 am
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Re: Some question about Mode 7

Here's the source code : https://github.com/Kannagi/SNES-Mode7
I hope it will be useful to other :)
Of course the code can be again improved (eg do the calculations on the SNES).
by Kannagi
Tue Apr 12, 2016 10:06 am
Forum: SNESdev
Topic: Every good programming technique
Replies: 48
Views: 9435

Re: Every good programming technique

For good practice I would add: For sprites it is wrong to manipulate their x and y position directly (otherwise it becomes difficult for the clipping), it is better function / macro that manages it. Same for the joypad to variables that recover during the late VBlank. A buffer for the tranfer in VBl...
by Kannagi
Tue Apr 12, 2016 7:17 am
Forum: SNESdev
Topic: Project A-RPG
Replies: 50
Views: 16056

Re: Project A-RPG

As you know I could put the mode. 7. Yes I'm happy ,It took several weeks to do. The video shows the beginning the magic and menu : https://www.youtube.com/watch?v=ik8gEbf3Et4&feature=youtu.be Screen : http://img15.hostingpics.net/pics/235436Capturedcran.png You have to press Start / select for go M...
by Kannagi
Tue Apr 12, 2016 6:51 am
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Re: Some question about Mode 7

Stef wrote:Kannagi> I guess you use the HDMA to set the M7 matrix regs ? That is the primary purpose for the HDMA actually.
yes on each line.
by Kannagi
Tue Apr 12, 2016 6:45 am
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Re: Some question about Mode 7

Ok I see , thank you. I finally succeeded, I think I will put the source code on github,make the mode 7 has been long and difficult for me I think it will be also for other. In the IRQ handler, set BGMODE to 7 and load the M7 matrix registers. I did not set the M7 matrix registers in IRQ. init code ...
by Kannagi
Tue Apr 12, 2016 2:00 am
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Re: Some question about Mode 7

@Espozo ok , this confirms me that finally I didn't need "ext BG" ;) AWJ thank you, I understand better now. @93143 You are right , but the operating principle should be close to what was said by AWJ and then I finally understand why he uses IRQ :) I'll try to make this change, this requires some ch...
by Kannagi
Mon Apr 11, 2016 8:20 pm
Forum: SNESdev
Topic: Some question about Mode 7
Replies: 22
Views: 5636

Some question about Mode 7

I managed to get perspective on the Mode 7: http://pixelretro.hebergratuit.net/NesBox/m7.html (Though I wonder how the calculation soft , for the moment I precalculation in C language). But I would use a second background. When I active ext BG ,I have the impression that the BG2 is identical to BG1....
by Kannagi
Sat Mar 26, 2016 12:36 pm
Forum: SNESdev
Topic: SNES, where to start?
Replies: 71
Views: 14951

Re: SNES, where to start?

must write on BGMODE ($2105).

Code: Select all

;mode 0
lda #00
sta $2105

;mode 1
lda #01
sta $2105

;mode 1 and BG1 16x16
lda #11
sta $2105
by Kannagi
Sat Mar 26, 2016 12:29 pm
Forum: SNESdev
Topic: SNES, where to start?
Replies: 71
Views: 14951

Re: SNES, where to start?

1. Set the background to be 4bpp? it depends on the mode. For example : Mode 0, 4 BG(1,2,3,4) in 2 bpp Mode 1, 2 BG(1,2) in 4bpp and 1 BG(3) in 2bpp 2. Write to the background? Where you want ,simply configure with: BG1SC,BG2SC,BG3SC,BG4SC ($2107-$210A) for tile BG12NBA BG34NBA ($210B/$210C) for da...
by Kannagi
Fri Mar 25, 2016 6:53 pm
Forum: SNESdev
Topic: SNES, where to start?
Replies: 71
Views: 14951

Re: SNES, where to start?

I've been thinking about making my own little snes paint program. Why ? Gimp or Photoshop is not enough? Does anyone know if there's a good way to make SNES graphics other than the combination of aseprite and pcx2snes? I do'nt know these tools, allows aseprite to do what? I find it strange to make ...
by Kannagi
Thu Mar 24, 2016 5:28 am
Forum: SNESdev
Topic: Some question about SNES sprites / OAM
Replies: 7
Views: 2887

Re: Some question about SNES sprites / OAM

So my question is , Is it only value between ( 225/240 to 255 ) are values "off the top" ? so sprites of that value will show their lower parts on the top of the screen ? yes and no, for 225/240, depending on the size of your sprites. To delete a sprite I put it on the position y $E0 (224 or -32) ,...
by Kannagi
Sun Mar 13, 2016 5:02 pm
Forum: SNESdev
Topic: Project A-RPG
Replies: 50
Views: 16056

Re: Project A-RPG

I finally put the magic ,it is really hard I got a lot of bug. I put two shortcut L and R for magic. For lightning, you must select: http://img15.hostingpics.net/pics/554846invocationt.png For fire you can select the menu also. Screen : http://img15.hostingpics.net/pics/145300CapturedcranSNES1.png h...