locked
Calculate the x and y position by LDGraphicsWindow.FloodFill for program QUIX RRS feed

  • Question

  • I make the program QUIX. Show by TKF095.

    I Need a subroutine to fill a field by arive this Position.

    Please help me.


    Best Regards Martin


    • Edited by martmen Sunday, June 18, 2017 9:22 AM
    Sunday, June 18, 2017 9:21 AM

Answers

  • This turns out to be pretty tricky on several levels - this is my stab at it - TKF095-0
    Sunday, June 18, 2017 2:47 PM
  • Yep its tricky.  The best reliable way would be to work out very carefully how you would do it by hand, probably requires recording all moves and turn made and working out what regions are filled by these moves - not 20 lines of code!

    Sunday, June 18, 2017 7:02 PM

All replies

  • This turns out to be pretty tricky on several levels - this is my stab at it - TKF095-0
    Sunday, June 18, 2017 2:47 PM
  • Ok, but in this Situation it fill the false field:

    The round is ending by 80% filled or when the stickies colision wiht the Player sprite. Do you has an idea to bill the percent.


    Best Regards Martin

    Sunday, June 18, 2017 5:15 PM
  • Yep its tricky.  The best reliable way would be to work out very carefully how you would do it by hand, probably requires recording all moves and turn made and working out what regions are filled by these moves - not 20 lines of code!

    Sunday, June 18, 2017 7:02 PM