Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Today I'm featuring an article from litdev:
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``(``"https://litdev.hostoi.com/game_images/football.png"``)
Shapes``.``AddImage``(``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!
- Ninja Ed
Comments
- Anonymous
July 16, 2014
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 ? - Anonymous
July 16, 2014
The comment has been removed - Anonymous
July 16, 2014
The comment has been removed - Anonymous
July 16, 2014
The comment has been removed - Anonymous
July 16, 2014
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. - Anonymous
July 16, 2014
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. - Anonymous
July 16, 2014
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! - Anonymous
July 16, 2014
Thanks Durval,Ed and Ronen - Anonymous
July 16, 2014
Congratulations - Anonymous
July 17, 2014
Very cool! - Anonymous
July 17, 2014
Wow; its amazinv. Thank you Ed - Anonymous
August 08, 2014
You're welcome. I'm glad several of you can see how great this is! - Anonymous
August 09, 2014
Thank you Ed.