Asmusr Posted August 23, 2018 Share Posted August 23, 2018 I'm interested in knowing more about how pinball games like Pinball Dreams were done. Especially how the collision detection and physics simulation worked. I found a little bit of info here: https://gamedev.stackexchange.com/questions/43705/2d-collision-detection-for-pinball-game/43719 Looking at the collision map it's not clear to me why the obstacles here take up a lot more space than on the playfield map. Is it perhaps because you only check for collision for one pixel at the center of the ball? If you need to check pixels at the edge of the ball instead, how do you know which pixels to check in order to detect all collisions? I believe it should certainly be possible to make a fast, smooth scrolling pinball game using the F18A, and also a simplified version for the old VDP, given enough ROM or SAMS space. This preview of Pinball Dreams for the C64 is already rather old, but it's a nice teaser: 9 Quote Link to comment Share on other sites More sharing options...
Tursi Posted August 23, 2018 Share Posted August 23, 2018 I've thought a lot about pinball - looking forward to reading that link! 4 Quote Link to comment Share on other sites More sharing options...
+mizapf Posted August 23, 2018 Share Posted August 23, 2018 I remember how I and my friends spent whole afternoons after school with David's Midnight Magic ... and how I dreamt of having that on my TI. It was not even a scroller, and there were less widgets than in our Micro Pinball (2), but it was really addictive. Not sure why, Micro Pinball never really reached it, but to be fair, it was at least 5 years later that I found Micro Pinball, and maybe the time was different. 2 Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 23, 2018 Share Posted August 23, 2018 I remember how I and my friends spent whole afternoons after school with David's Midnight Magic ... and how I dreamt of having that on my TI. It was not even a scroller, and there were less widgets than in our Micro Pinball (2), but it was really addictive. Not sure why, Micro Pinball never really reached it, but to be fair, it was at least 5 years later that I found Micro Pinball, and maybe the time was different. Same here. I always wanted DMM on the TI. I never played Pinball Dreams on the C64 but played the hell out of it on my Amiga. EDIT: Oh, on the C64 is a recent development. Well, there ya go! 1 Quote Link to comment Share on other sites More sharing options...
+arcadeshopper Posted August 23, 2018 Share Posted August 23, 2018 I remember how I and my friends spent whole afternoons after school with David's Midnight Magic ... and how I dreamt of having that on my TI. It was not even a scroller, and there were less widgets than in our Micro Pinball (2), but it was really addictive. Not sure why, Micro Pinball never really reached it, but to be fair, it was at least 5 years later that I found Micro Pinball, and maybe the time was different. yeah i played both, micropinball was ok but the physics aren't.. Quote Link to comment Share on other sites More sharing options...
Omega-TI Posted August 23, 2018 Share Posted August 23, 2018 I remember Jill of the Jungle on the early PC. Are you getting adventurous in the porting arena Rasmus? https://www.youtube.com/watch?v=vMYXqc1tAlQ Quote Link to comment Share on other sites More sharing options...
sparkdrummer Posted August 24, 2018 Share Posted August 24, 2018 Oh my god! I LOVE pinball! It would be great to have a hot rod pinball game in our collection! How about GORGAR or FIREPOWER or ALIEN POKER. I'd play a whole lunch hour on one quarter. 2 Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 24, 2018 Share Posted August 24, 2018 Or Balls of Steel. Quote Link to comment Share on other sites More sharing options...
Tursi Posted August 24, 2018 Share Posted August 24, 2018 While watching that video I was wondering - do most people prefer the scrolling tables? They always kind of annoyed me, although I see the advantage in terms of offering better graphics. The best compromise I've seen did a sort of split screen where the flippers at the bottom were always visible, which I appreciated, but what do other people think? 1 Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 24, 2018 Share Posted August 24, 2018 While watching that video I was wondering - do most people prefer the scrolling tables? They always kind of annoyed me, although I see the advantage in terms of offering better graphics. The best compromise I've seen did a sort of split screen where the flippers at the bottom were always visible, which I appreciated, but what do other people think? It depends upon the board layout and speed of the game. In the game I mentioned, Balls of Steel, you have the option of an over-sized scrolling board or one that fits on a single screen. I prefer the latter because of how fast things can move around and you can lose track of where the ball is. Full-screen board ("Darkside") Scrolling board I play Pin-Bot on the NES and find its mode of scrolling is tolerable, simply because the board is fairly sparse. But then the middle-medium is Rollerball for the NES which has multiple sections and only scrolls when the ball moves between sections. 1 Quote Link to comment Share on other sites More sharing options...
+Ksarul Posted August 24, 2018 Share Posted August 24, 2018 David's Midnight Magic was actually announced for the TI, about three months before TI pulled the plug on the 99/4A. . .no code has ever surfaced though. Choplifter is another one that never surfaced, even though it was actually presented at demonstrations at the Summer 1983 CES. So many bits of useful code that never escaped into the wild back then. 2 Quote Link to comment Share on other sites More sharing options...
+mizapf Posted August 24, 2018 Share Posted August 24, 2018 I remember Jill of the Jungle on the early PC. Are you getting adventurous in the porting arena Rasmus? I had the complete 12 table Epic Pinball set (still running well in Dosbox). Interestingly, though, I looked out for a modern pinball ten years later or so, but never found a similarly exciting program. 1 Quote Link to comment Share on other sites More sharing options...
Asmusr Posted August 24, 2018 Author Share Posted August 24, 2018 (edited) One interesting aspect of pinball games is that the physics simulation engine can (and should) be completely separate from the view. In the background you can use a huge collision map at a high frame rate to accurately calculate how the ball is moving, and then you can render the result at any lower resolution and frame rate with or without scrolling, and still get a realistic result. Edited August 24, 2018 by Asmusr 2 Quote Link to comment Share on other sites More sharing options...
Omega-TI Posted August 24, 2018 Share Posted August 24, 2018 Or Balls of Steel. I remember see that as a game... inside the Duke Nukem 3D game. Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 24, 2018 Share Posted August 24, 2018 I remember see that as a game... inside the Duke Nukem 3D game. Essato! The game itself is based on that in-game game*, and even has a Duke Nukem board: * We need to go deeper! 1 Quote Link to comment Share on other sites More sharing options...
+mizapf Posted August 24, 2018 Share Posted August 24, 2018 For the good old times, from Good Old Games: https://www.gog.com/game/epic_pinball_the_complete_collection 1 Quote Link to comment Share on other sites More sharing options...
Asmusr Posted August 24, 2018 Author Share Posted August 24, 2018 (edited) While watching that video I was wondering - do most people prefer the scrolling tables? They always kind of annoyed me, although I see the advantage in terms of offering better graphics. The best compromise I've seen did a sort of split screen where the flippers at the bottom were always visible, which I appreciated, but what do other people think? I think the scrolling works very well. I spent countless hours playing Pinball Dreams on PC back in the days of VGA. On the TI the scrolling could either be a fast character scrolling with more detailed graphics or a smooth scrolling with less detailed and colorful graphics. Edited August 24, 2018 by Asmusr 2 Quote Link to comment Share on other sites More sharing options...
Asmusr Posted August 24, 2018 Author Share Posted August 24, 2018 Rollerball also exist for the MSX, which has the same VDP as the TI-99/4A. It's not bad, but somehow I don't find it very satisfying. Pin-bot for the NES looks great and is probably close to what you could do with the F18A with a lot of effort. 2 Quote Link to comment Share on other sites More sharing options...
Asmusr Posted August 28, 2018 Author Share Posted August 28, 2018 I'm pretty sure now that the collision map shown here (and repeated below to the right) is designed in such a way that you only need to check one pixel at the center of the ball to know if there is a collision. This is really clever IMHO. The shade of grey determines the angle of the barrier that the ball hits (white means no hit), which can then be used to calculate a normal vector (perpendicular to the barrier). When the ball hits a barrier its direction vector will be mirrored around the normal, and there's a relatively simple formula to calculate the new vector. This leaves plenty of time for scrolling and other stuff like moving the flippers. The thing that's preventing me from proceeding with this on the TI is that I don't have a good idea about how to create a collision map from a playfield map like the one to the left. Doing this by trial and error seems to be a huge task. I'm still hoping for someone with an insight to chip in here... 3 Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted August 28, 2018 Share Posted August 28, 2018 (edited) The thing that's preventing me from proceeding with this on the TI is that I don't have a good idea about how to create a collision map from a playfield map like the one to the left. Doing this by trial and error seems to be a huge task. I'm still hoping for someone with an insight to chip in here... I guess an array with a nibble (half a byte) per pixel would do, but then maybe that approach will take up too much memory. Guess you've seen this. https://github.com/leonardo-ono/JavaBitmapMaskPinballTest Edited August 28, 2018 by sometimes99er 1 Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 29, 2018 Share Posted August 29, 2018 I started looking for 8-bit examples or disassemblies of pinball games for Atari, Commodore, NES, and stumbled across this I had completely forgotten. It is not helpful for programming, but still an awesome program itself. Friend of mine had it and we spent a couple of weekends building games. https://en.wikipedia.org/wiki/Pinball_Construction_Set Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 29, 2018 Share Posted August 29, 2018 Did you see the source code for the Commodore 64 Pinball Dreams remake? Quote Link to comment Share on other sites More sharing options...
+FarmerPotato Posted August 29, 2018 Share Posted August 29, 2018 While watching that video I was wondering - do most people prefer the scrolling tables? They always kind of annoyed me, although I see the advantage in terms of offering better graphics. The best compromise I've seen did a sort of split screen where the flippers at the bottom were always visible, which I appreciated, but what do other people think? I hate scrolling pinball. I double hate the new video multi-pinball that have a 60" LCD screen in the form of an actual pinball field, and they still feel the need to scroll. Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted August 29, 2018 Share Posted August 29, 2018 I think the scrolling works very well. I spent countless hours playing Pinball Dreams on PC back in the days of VGA. On the TI the scrolling could either be a fast character scrolling with more detailed graphics or a smooth scrolling with less detailed and colorful graphics. Me too. Yes, scrolling worked fine. I played Pinball Dreams a lot too, but then on the Amiga. Rollerball also exist for the MSX, which has the same VDP as the TI-99/4A. It's not bad, but somehow I don't find it very satisfying. Looks more than okay to me. Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted August 29, 2018 Share Posted August 29, 2018 Looks more than okay to me. At least a starting point, yeah? 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.