Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Space Explorer
#9
@GareBear what @bplus said & if you are like me (i.e. little paranoid about deleting files), then you can replace the "load_" functions with following. These are cleaner and does not need temp files.

Code: (Select All)
FUNCTION load_gfx& (mfi)

    SEEK #mfi, mfi_o(mfi_index)
    load_gfx& = _LOADIMAGE(INPUT$(mfi_s(mfi_index), mfi), 32, "memory")

    mfi_index = mfi_index + 1

END FUNCTION


FUNCTION load_sfx& (mfi)

    SEEK #mfi, mfi_o(mfi_index)
    load_sfx& = _SNDOPEN(INPUT$(mfi_s(mfi_index), mfi), "memory")

    mfi_index = mfi_index + 1

END FUNCTION

Caution: This only works with PE. Not with QB64 and the other fork.
Reply


Messages In This Thread
Space Explorer - by johannhowitzer - 04-27-2024, 10:39 AM
RE: Space Explorer - by GareBear - 04-27-2024, 02:07 PM
RE: Space Explorer - by johannhowitzer - 04-27-2024, 02:24 PM
RE: Space Explorer - by TerryRitchie - 04-27-2024, 07:00 PM
RE: Space Explorer - by Steffan-68 - 04-27-2024, 08:20 PM
RE: Space Explorer - by bplus - 04-28-2024, 12:18 AM
RE: Space Explorer - by GareBear - 04-28-2024, 06:09 PM
RE: Space Explorer - by bplus - 04-28-2024, 07:50 PM
RE: Space Explorer - by GareBear - 04-29-2024, 02:09 AM
RE: Space Explorer - by a740g - 04-28-2024, 08:26 PM
RE: Space Explorer - by GareBear - 04-29-2024, 02:15 AM
RE: Space Explorer - by johannhowitzer - 04-29-2024, 07:05 AM
RE: Space Explorer - by GareBear - 04-29-2024, 04:24 PM
RE: Space Explorer - by SMcNeill - 04-29-2024, 08:56 AM
RE: Space Explorer - by GareBear - 04-29-2024, 04:04 PM
RE: Space Explorer - by johannhowitzer - 04-30-2024, 09:33 AM
RE: Space Explorer - by GareBear - 04-30-2024, 02:11 PM
RE: Space Explorer - by bplus - 04-30-2024, 02:51 PM
RE: Space Explorer - by Steffan-68 - 04-30-2024, 03:14 PM
RE: Space Explorer - by bplus - 04-30-2024, 03:44 PM



Users browsing this thread: 2 Guest(s)