Search found 8 matches
- Mon Dec 24, 2018 8:21 pm
- Forum: Newbie Help Center
- Topic: stopping sprite from going through background objects
- Replies: 2
- Views: 3912
Re: stopping sprite from going through background objects
Thanks for the tip Doug, that seems to be a useful trick. I'm not sure I really understand how exactly this would be applied though. If you can provide some additional details about how it would be used it could help me better understand. I've made some progress - I can now read the contents of the ...
- Sat Dec 22, 2018 11:25 pm
- Forum: Newbie Help Center
- Topic: stopping sprite from going through background objects
- Replies: 2
- Views: 3912
stopping sprite from going through background objects
As a learning exercise I'm trying to make a Tetris clone. I had been going through some tutorials that got me as far as drawing background, sprites, and taking controller input. I applied this info in making a background to show the play area. Due to the limitations of number of onscreen sprites, my...
- Fri Dec 21, 2018 9:52 am
- Forum: Newbie Help Center
- Topic: help debugging code for controller input
- Replies: 16
- Views: 9899
Re: help debugging code for controller input
Just wanted to post an update, I incorporated the feedback to differentiate between buttons that are pressed vs buttons that are held. I'm trying to mimic the "delayed auto shift" mechanic from Tetris, so in addition to that I also keep track of whether the D-Pad button has been held long ...
- Wed Dec 19, 2018 8:58 am
- Forum: Newbie Help Center
- Topic: help debugging code for controller input
- Replies: 16
- Views: 9899
Re: help debugging code for controller input
Thanks I'll give it a shot tonight! One question though - if the user is holding down the d-pad wouldn't lines 4 and 5 reset the counter to zero before the increment happens on lines 6 and 7 each time the subroutine is called? If so I can figure out logic to prevent that, I just want to make sure I'...
- Wed Dec 19, 2018 12:30 am
- Forum: Newbie Help Center
- Topic: help debugging code for controller input
- Replies: 16
- Views: 9899
Re: help debugging code for controller input
I made some good progress tonight. I set it up so the up button has the kind of movement I want. I'm trying to do something similar to Tetris where the piece will move one square when pressing direction key, then pause slightly, then continue a sustained movement if you keep holding the button down....
- Tue Dec 18, 2018 1:23 am
- Forum: Newbie Help Center
- Topic: help debugging code for controller input
- Replies: 16
- Views: 9899
Re: help debugging code for controller input
Thanks, changing to constants solved the problem. I had thought I was using the right addressing mode, I guess I'll need more hands on practice to really understand them though. I'll keep plugging away tomorrow 
- Tue Dec 18, 2018 12:08 am
- Forum: Newbie Help Center
- Topic: help debugging code for controller input
- Replies: 16
- Views: 9899
Re: help debugging code for controller input
Thanks everyone for the feedback and info. I feel like I'm learning a lot but not quite there yet. I'm attempting to rework the controller logic to be consistent with the first basic example in the controller reading wiki article. The work in progress I have can be found here: https://github.com/bus...
- Sun Dec 16, 2018 11:54 pm
- Forum: Newbie Help Center
- Topic: help debugging code for controller input
- Replies: 16
- Views: 9899
help debugging code for controller input
I've finished going through some basic tutorials and am trying to move beyond them. I've been following this tutorial for reading user input: http://thevirtualmountain.com/nes/2017/04/12/reading-controller-input.html The tutorial demonstrates how to read d-pad input to move some sprites one pixel at...