Aliens – Pixel Art

These Aliens were created as 32×32 pixel tiles with Spritesomething.

Pixel art – background tiles

Here’s a set of tiles I created with Spritesomething on my iPad on a trip.

Here’s an image created with the tiles. Could be used in a platform game as the background.

 

Spritesomething – iPad/iPhone app

Here’s a great app for drawing pixel art on your iPhone/iPod and iPad.

http://terriblegames.com/spriteSomething/

I highly recommend this. I have been playing with it for hours the last few weeks. It’s really fun and easy to use. It includes a lot o great features for making games. Draw anywhere you have iPhone/iPod and or iPad, at the cafe on the train or on the bus. Draw a quick icon of a beer bottle or martini glass at the pub with your drink as a model! Draw a quick pixel art portrait of your favorite bartender with one hand and your *drink in the other. (I don’t recommend drawing while under the influence of drugs or alcohol. All references to drinks in this article are fruit juice only.)

 

Corona – Widget – Buttons

Corona provides a system for creating buttons and other interface elements in the “widget” module. Their web site points out that this module is in Beta at this point, and so the commands used here may change and evolve as it is further developed.

The “widget” module includes a tool for creating buttons. You can use this to create basic buttons with a stroke fill and color. It can also be used for buttons created from images.

The first step to use the “widget” module is to include it in your project with:

local widget = require "widget"

Next create a button using widget.newButton{}. Note the {} end that line not the ()! Within the {} you will define properties that describe your button.

For example the following would create a button 160 pixels wide, 40 pixels tall, positioned 80 pixels from the left and 220 pixels from the top, with a 12 pixels corner radius.

local button = widget.newButton{id="b1",
left=80,
top=220,
label="Tap",
width=160,
 height=40,
 cornerRadius=12,
 onEvent=on_button
 }

This button would call the on_button function when it is tapped. You might define this event handler in this way:

 

local function on_button(event)
 if event.phase == "release" then
 print("Button Released")
 end
end

Remember you’d need to define the handler above button definition. All three pieces together might look like this:

local widget = require "widget"

local function on_button(event)
 if event.phase == "release" then
 print("Button Released")
 end
end 

local button = widget.newButton{id="b1",
 left=80,
 top=220,
 label="Tap",
 width=160,
 height=40,
 cornerRadius=12,
 onEvent=on_button
 }

For a full list of properties consult the Corona documentation here: http://developer.anscamobile.com/reference/index/widgetnewbutton

Icon design

Ever wonder where the original Mac icons came from?

http://blogs.plos.org/neurotribes/2011/11/22/the-sketchbook-of-susan-kare-the-artist-who-gave-computing-a-human-face/