Skip to content

A codebase for sprite-based programming, built on Swing from Java.

License

Notifications You must be signed in to change notification settings

Arc-blroth/AIslandBase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

AIslandBase

A codebase for sprite-based programming, built on Swing from Java. Based on the Scratch programming language.

Currently in Alpha, so expect lots of bugs and glitchy repainting.

Background

Similarly to how Swing uses a JPanel to hold Components, AIslandBase uses a Canvas to hold Sprites.

Sprites are the guts of sprite-based programming. A Sprite is an image that can be moved, turned, or otherwise transformed.

Each Canvas is backed by a Grid object. All Sprites are held to a coordinate on the Grid. As the Canvas is resized, all sprites are repositioned according to their grid coordinates.

JSprites are similar to Sprites, however JSprites hold Swing JComponents rather than images. JSprites allow you to add buttons, labels, and other Swing functionality to a Canvas.

Getting Started

To start using AIslandBase, call the

Init.getInit(String title, String version, Image icon, int length, int width);

function with the window title, the optional program version, an optional program icon, and the dimensions of the Grid. This returns an instance of Canvas.

To add a sprite to the canvas, create an AbstractSprite and use the addSprite() method. To add a JSprite, use the addJSprite() method.

About

A codebase for sprite-based programming, built on Swing from Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages