TNWiki Article Spotlight: Small Basic: Sprite Arrays

Today I'm featuring an article from :

Small Basic: Sprite Arrays


This article describes using arrays of sprites in a Small Basic program.  A sprite is an image that is moved in a graphical game, they may be aliens for example.

Loading sprite images

The image for a sprite exists in a file (e.g. jpg or png).  This file may be local as a file on your PC or be stored online as a URL.  If it is local then you will need to share the images with your game in zip download, therefore it may be better to host the file on the web if you can.

It is often best to create the sprite with a transparent boundary and with a carefully chosen width and height in pixels.

Once the sprite is created, it is most efficient to load it into your program once only using the ImageList method, and this is usually done before the game starts as it may take some time to download.  The loaded image may then be used many times for multiple copies of the sprite.  The following code is an example loading a sprite image from an online URL and testing it appears correctly.

sprite = ImageList.LoadImage("")

 Football Sprite


Read the full article (Small Basic: Sprite Arrays) as it takes you through the steps to make the complete sample, and you'll get a nice array like this:


Thanks to LitDev again for this great article in June!

Small Basic: Sprite Arrays

- Ninja Ed

Comments (13)

  1. Shanky_621 says:

    Hi Ed its rare to see any Database engine article Highlighted at least i dont remember seeing one. Does these articles does not meet any criteria ?

  2. pituach says:

    Shanky That is a great question!

  3. Durval Ramos says:

    Shanky, I’m an author of the Wiki Ninjas blog and I can say that the criterion is varied. We can consider one or more articles in the month (among the most updated or involves an issue discussed on blog) or selected articles for technical criteria of the
    Blog author. I’ve started a series of blog posts on SQL Server, the first was about "Analysis Services". See:

    Soon I’ll write a post on Wiki Ninjas blog with highlight articles of this whole SQL Server structure, indicated in the circle image.

  4. Durval Ramos says:

    Ed, great post about Small Basic, but this "balls" !!!

    This makes me remember a recent bad dream that I had in the last days =.^C

  5. Shanky_621 says:

    I am curious to know criteria because how no TSQL( thre might be few) articles or Database engine articles qualify the mark. If technical criteria is one of the criteria then chances are less that DBE articles does not makes its way to spotlight . Well
    thank u for your information I guess we have to wait long time for DBE spotlight article
    Most updated seems funny to me 🙂 a Novice user creates a article in totally unformatted state and ofcourse people like us give our time and make it upto level of technet wiki article so how can that be a highlighted article. I guess crawl tool just looks number
    of times article is edited.

  6. Durval Ramos says:

    Well, I did not mean just about corrections or supplementary information, but mostly Comments that indicate that this article was very useful to more than one person.

  7. In this case, it’s a front-running article from the June competition, with a focus on development. We’ll highlight database articles as well. Thank you for the feedback!

  8. Shanky_621 says:

    Thanks Durval,Ed and Ronen

  9. Davut EREN says:

    Wow; its amazinv. Thank you Ed

  10. You’re welcome. I’m glad several of you can see how great this is!

Skip to main content