lokster Posted January 29, 2007 Share Posted January 29, 2007 (edited) This is just proof of concept...I was trying to generate fractal terrain (like in that old game called Artilery...)Here is a screenshot:And the script itself:terrain.au3Update 05-FEB-2007: terrain.au3 - now you can drop bombs on the terrain... It uses the algorhithm that is called Midpoint Displacement in one dimension. All its logic is located in the DisplaceMidpoints function. Edited February 6, 2007 by lokster Link to comment Share on other sites More sharing options...
XxXFaNtA Posted January 29, 2007 Share Posted January 29, 2007 Beautifull Can't wait to see this with prospeeds possibilities combined Cannon Wars Greetz, FaNtA /[center][/center] Link to comment Share on other sites More sharing options...
lokster Posted January 29, 2007 Author Share Posted January 29, 2007 Beautifull Can't wait to see this with prospeeds possibilities combined Cannon Wars Greetz,FaNtAYes, I have the same thing in mind. And as it seems it will not be very difficult. Will try... Link to comment Share on other sites More sharing options...
i542 Posted January 30, 2007 Share Posted January 30, 2007 Wow! It's great! I can do signature me. Link to comment Share on other sites More sharing options...
Lej Posted February 3, 2007 Share Posted February 3, 2007 (edited) Must say this really fascinated me. I just had to look up how that algorithm work and do something similar. I stared thinking about how one would make the terrain fall down when undermined. Looping through all pixels checking for missing ones can't be very fast. Anyone have any other ideas? Oh and here's my script if anyone is interested. It's really does the same as the ops but without fancy colors and with a few more options in the GUI instead. MidpointDisplacement.au3 Edited February 3, 2007 by Lej Link to comment Share on other sites More sharing options...
lokster Posted February 5, 2007 Author Share Posted February 5, 2007 @Lej check the updated version of the script in the first post. Now you can drop bombs on the terrain. The logic is very simple. Link to comment Share on other sites More sharing options...
Lej Posted February 5, 2007 Share Posted February 5, 2007 @Lej check the updated version of the script in the first post. Now you can drop bombs on the terrain. The logic is very simple. Yes that was nice and interesting. Only problem I see with this method is the flashing when redrawing the entire graphic control. Could perhaps be fixed by drawing the terrain after the bomb in a different graphic control and then placing it on top. Oh, and you might want to add some kind of check to the bomb as it will crash if the radius of the bomb reaches outside the screen. (Tries to write to $w[<0] or $w[>512]) Link to comment Share on other sites More sharing options...
i542 Posted February 5, 2007 Share Posted February 5, 2007 Wow! It's great!Yippi! Now just to create bomb falling animation and some cannons running on land it will be great autoit game .I can't wait next version! (if will be it?)i542(P.S. Maybe I should create Fractal Terrain Generator #1 Fan in usersigs.com?) I can do signature me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now