Simple Random Hills Maker - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: Simple Random Hills Maker (/showthread.php?tid=874) |
Simple Random Hills Maker - SierraKen - 09-09-2022 This code can be used in adventure games or any other type of game or app. It makes random looking hills on the screen and when you press the Space Bar it makes different looking ones. I was experimenting with graphics. You can also change the PSET _RGB32 color to blue if you wish to make water waves instead. Just replace the last 0 with the c and the c with a 0. Code: (Select All) 'Random Hills Maker by SierraKen 9-9-2022 RE: Simple Random Hills Maker - CharlieJV - 09-10-2022 (09-09-2022, 08:18 PM)SierraKen Wrote: This code can be used in adventure games or any other type of game or app. It makes random looking hills on the screen and when you press the Space Bar it makes different looking ones. I was experimenting with graphics. You can also change the PSET _RGB32 color to blue if you wish to make water waves instead. Just replace the last 0 with the c and the c with a 0. That was fun. Thanks for sharing! BAM version: RE: Simple Random Hills Maker - 40wattstudio - 09-10-2022 Pretty cool! I like programs that can create a variety of random graphical elements. And nice to see that I'm not the only one who still occasionally uses GOTO statements in their code RE: Simple Random Hills Maker - SierraKen - 09-10-2022 LOL thanks guys. Whenever I get bored or have extra time, I often play around with equations and graphics. RE: Simple Random Hills Maker - bplus - 09-10-2022 Oh what the hill? Code: (Select All) _Title "Rnd Hills" 'b+ 2022-09-10 RE: Simple Random Hills Maker - dbox - 09-11-2022 This one looks great in QBJS with no modifications: View in QBJS |