BASIC

Author Topic: DDgui_Update  (Read 2265 times)

MrTAToad

  • Guest
DDgui_Update
« on: 2010-Mar-16 »
I notice this is used to find a free sprite in DDgui_Update :

Quote
FOR i%=1 TO 4000
         GETSPRITESIZE i%, sprsz%, sprsz%
         IF sprsz=0
            IF spr_bar=0
               spr_bar=i
            ELSE
               spr_char=i
               BREAK
            ENDIF
         ENDIF
      NEXT

Might be easier to use GENSPRITE()

:)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1774
    • View Profile
    • Homepage
Re: DDgui_Update
« Reply #1 on: 2010-Mar-16 »
That code is from the time before GENSPRITE() :-)

MrTAToad

  • Guest
Re: DDgui_Update
« Reply #2 on: 2010-Mar-17 »
I know - hence the need for improved efficiency :)