Available on:
Alias: NEW IMAGES

NEW ATLAS

The NEW ATLAS command allows you to define a memory area where you can store a set of images coming from the screen (with the GET IMAGE command), or from another graphic resource.

The area must be defined by (constant) number of frames, (constant) width and (constant) height, expressed in pixels. The actual size, in terms of bytes of RAM, will depend on the graphics mode selected at the time.

If it is not possible to define an image in that screen mode, a specific error will be issued.

SYNTAX

 = NEW ATLAS( frames, width, height )


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 background = NEW ATLAS(16, 32,32)


ABBREVIATION: NwAtl#

Join BASIC 10Liner Contest with ugBASIC!

An interesting competition is held at the beginning of each year: the BASIC 10Liner Contest. It is possible to use ugBASIC to participate in the next "BASIC10Liner" competition, in the following categories:

  • PUR-120 - A game in 10 lines of max 120 characters (w/abbrev.)
  • EXTREME-256 - A game in 10 lines of max 256 characters (w/abbrev.)
  • SCHAU - Any program in 10 lines of max 256 characters (w/abbrev.)
In order to reduce space you can use this abbreviation for this instruction:

NEW ATLAS ↔ NwAtl#

Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS