Search found 186 matches

by Sogona
Fri Jan 22, 2016 1:54 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

So I've gotten the camera to correctly follow the player and stop moving once it gets to the edge of the room. Thanks. So now, other objects and how they work in relation to the camera is a concept I'm pretty much entirely unfamiliar with. So do rooms keep track of certain points where objects are? ...
by Sogona
Thu Jan 21, 2016 5:02 pm
Forum: General Stuff
Topic: Calculating jump speed
Replies: 34
Views: 5225

Re: Calculating jump speed

If a person jumps a specific height, what is the mathematical formula to calculate how long the jump will take until the person lands on the ground again? (Assuming Earth's gravity.) d = v 0 t + 1/2 a t 2 ? d being height, v 0 being at what speed you initially jump, and a being gravity, or -9.8m/s ...
by Sogona
Thu Jan 21, 2016 4:51 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

So I've gotten attributes to be working nicely and smoothly. I can scroll back and forth at will without any graphical errors. Before I start trying to work with multiple entities, I want to be able to make sure that the camera can "follow" a particular sprite, which will become the player...
by Sogona
Wed Jan 20, 2016 9:28 pm
Forum: Newbie Help Center
Topic: Random Stupid Questions I Think Of
Replies: 20
Views: 8396

Re: Random Stupid Questions I Think Of

What's the deal with color $0D of the PPU's palette?
by Sogona
Wed Jan 20, 2016 2:52 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

Since attributes need to be drawn a column at a time, how exactly do I go about drawing them vertically? Increment-32 of course only works for nametables.
by Sogona
Sun Jan 17, 2016 6:35 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

Well I can now scroll in both directions! Thank you guys so much for your help. Just to make sure I have everything right, here are my routines: http://pastebin.com/ZyY91VVQ DrawNewColumn is the same, only the subroutine CameraCalculatePPUAddr is called from within it. Now before I dive into working...
by Sogona
Fri Jan 15, 2016 8:38 pm
Forum: General Stuff
Topic: Scripting Languages
Replies: 21
Views: 9110

Re: Scripting Languages

I know I probably won't like it (at least not at first) but one of these days I need to try LISP
by Sogona
Fri Jan 15, 2016 8:33 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

Ok, I thought I could just use the carry flag, I guess I just confuzzled myself. Going off on this tangent, Z80 seems like it'd be really fun to learn (as a lot of the arcade classics used the CPU, and it'd be cool to understand their source code. I came across the original Z80 source for pac-man a ...
by Sogona
Fri Jan 15, 2016 7:09 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

So Tokumaru, are you saying I should use the XOR method you described above to check when the low byte of the camera has passed 255? (aka when at a new "screen"?) In that case, I'd want to save the high byte of camerax to camerax_old, xor the high byte of camerax with that of camerax_old, ...
by Sogona
Thu Jan 14, 2016 9:33 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

So how many bits should camera be? If I have 64 columns that make up 4 screens, 64 × 16 = 1,024, or 10 bits. If that's the case, how do i divide by 16 (LSRing 4 times) on a value that's more than 8 bits? And so you're saying each frame I should save what the scroll value was last frame, XOR it with ...
by Sogona
Thu Jan 14, 2016 5:41 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Re: Having Another Jab at a Camera System

Well fixing Issue #1 was easy enough, thank you Tokumaru. The three routines in the main loop I made subroutines, and made them only get called in ReadLeft and ReadRight, and only swap nametables when the carry flag for scroll is cleared or set, respectively.
by Sogona
Thu Jan 14, 2016 4:22 pm
Forum: Newbie Help Center
Topic: Having Another Jab at a Camera System
Replies: 36
Views: 7129

Having Another Jab at a Camera System

Hey it's been a while. School started again, had to start applying for colleges and all that, so this had to kinda get pushed to the side. But I've decided I want to finally try and make a working camera system and scrolling engine, now that I'm a bit more comfortable with a bunch of different conce...
by Sogona
Mon Oct 12, 2015 8:11 am
Forum: General Stuff
Topic: Good place to start learning C?
Replies: 24
Views: 5470

Re: Good place to start learning C?

What I've learned through a couple computer science courses is that pretty much every high level language is the same. If statements, if-else statements, for loops, while loops, switch statements, primitive data types, condition testing, etc. It's all pretty much exactly the same. So if you know ho...
by Sogona
Mon Oct 12, 2015 3:20 am
Forum: General Stuff
Topic: Good place to start learning C?
Replies: 24
Views: 5470

Re: Good place to start learning C?

It's not just the Hello World program that counts, it's whether you understand it or not, I think. Of course, I haven't a position to say that but really, just copy/pasting isn't coding, learning is doing your own mods to the stuff and write the code. Also, I have a couple of questions about the de...
by Sogona
Sun Oct 11, 2015 7:53 pm
Forum: General Stuff
Topic: Good place to start learning C?
Replies: 24
Views: 5470

Re: Good place to start learning C?

Why is it that the compiler seems to be the ugliest part of any programming language?