gauauu Posted October 27, 2015 Share Posted October 27, 2015 Does anyone know exactly how the wall collisions were handled in Adventure? The way the ball (player) squashes against the walls (and missiles for the weird black walls, if I remember correctly?) makes it look like it's checking hardware collisions. But the fact that the walls aren't "sticky" means that Warren did something smarter than just the naive "reset the position if there's a collision" method. As best I can tell, from staring at the disassembly and stepping through frames, he was definitely doing hardware collision detection. It looks like maybe he resets the X position separately from resetting the Y position, on different frames (checking collisions each time). But if that's the case, I can't figure out how your movement doesn't end up going more slowly when you are dragging along a wall (if it wastes a frame trying to reset position in one dimension). Thanks! Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted October 27, 2015 Share Posted October 27, 2015 Check the source at MiniDig. Look for register CXBLPF Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted October 27, 2015 Share Posted October 27, 2015 I like it when a game does something like this with no sticking or bouncing: randomterrain.com/atari-2600-memories-batari-basic-commands.html#sprite_collision_example ex_sprite_with_collision_only.bin Quote Link to comment Share on other sites More sharing options...
gauauu Posted October 27, 2015 Author Share Posted October 27, 2015 Ah, the part I missed is that he does it differently in different frames. Like I suspected, he checks X-only direction one frame, and Y-only direction in a different frame. Quote Link to comment Share on other sites More sharing options...
Jinroh Posted October 27, 2015 Share Posted October 27, 2015 Ah, the part I missed is that he does it differently in different frames. Like I suspected, he checks X-only direction one frame, and Y-only direction in a different frame. I did a similar thing with my Carrot Kingdom game it works well for splitting up gravity and horizontal collisions as well. :3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.