词条 | Draft:SmileBASIC |
释义 |
SmileBASIC is a software development application for the Nintendo 3DS, Nintendo Wii U, and Nintendo Switch systems, as well as for the Raspberry Pi. SmileBASIC is developed by the Japanese company SmileBoom. Like its predecessor Petit Computer, SmileBASIC is built around a custom dialect of BASIC called SmileBASIC. With SmileBASIC, users can write programs that use the systems's features and then upload the programs (or folders containing programs) to an online repository, where they can be downloaded by entering a download code called the "key". Downloaded programs can also be edited and re-uploaded. 3DS Programs can utilize the 3DS's touchscreen, controls, speakers, gyroscopes, microphone, multiplayer connectivity, and stereoscopic 3D.[1][2] Wii U Programs can utilize all the 3DS features (excluding the 3D screen and multiplayer) while also using multiple controllers and higher resolution output. Programs built for the Raspberry Pi can use HTTP requests and GPIO outputs. Users can edit up to 4 programs at a time using an on-screen keyboard and a simple editor with syntax highlighting. Users can also use a simple file browser to create and delete files and folders. SmileBASIC, like Petit Computer, has several sample programs available, including simple games, tools to edit sprites and tiles, and a program that demonstrates each SmileBASIC instruction. History
SyntaxSmileBASIC uses syntax similar to that of BASIC dialects from the 1980s. It includes instructions for graphics, sprites, background tiles, music (using Music Macro Language), and file management. Simple programThe following program shows a prompt to enter a name using the onscreen keyboard. PRINT "Hello, world!" INPUT "What's your name?";N$ PRINT "Hello, " + N$ SmileBASIC-exclusive featuresThe following program makes a sprite (by default, a strawberry) and lets the user control it with the 3DS's Circle pad. SPSET 0, 0 X = 50 Y = 50 WHILE 1 VSYNC STICK OUT SX, SY X = X + SX Y = Y + SY SPOFS 0, X, Y WEND This program draws a sine wave over 2 seconds. GCLS FOR I=1 TO 120 VSYNC GPSET I, SIN(2 * PI() * (I / 120)), #WHITE NEXT References1. ^{{cite web|title=Let's play in programming! - SmileBASIC|url=http://smilebasic.com/en/about/|website=SmileBASIC|publisher=SmileBoom Co.Ltd.|accessdate=31 January 2018|ref=1}} 2. ^{{cite web|last1=Wahlgren|first1=Jon|title=Review: SmileBASIC (3DS eShop)|url=http://www.nintendolife.com/reviews/3ds-eshop/smilebasic|website=Nintendo Life|publisher=Nlife Media|accessdate=31 January 2018|ref=2|date=15 December 2015}} 3. ^{{Cite web|url=http://smilebasic.com/en/whatsnew/|title=What's New|website=SmileBasic|language=en|access-date=2018-11-20}} |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。