Sign in to follow this  

Important peice of palm programming information that probably should be in the FAQ

Recommended Posts

Well I'm seeing quite a few threads asking for palm programming resources. It seems to be hidden from mass knowledge but plua makes palm programming so easy it's funny. As an example here's a sample program(taken from here) that moves an image of a taxi across the screen:
-- Taxi.lua
-- Copyright (c) 2001 Marcio M. Andrade

-- Shows the Taxi easter egg.

width,height,depth,hasColor = pmode()

if hasColor == 1 then
  bg = prgb(0,255,0)
  bg = prgb(255,255,255)


taxi = popenres("Tbmp", 11000)
size, taxiWidth, taxiHeight = pgetsize(taxi)

y = (height-taxiHeight)/2

for x = width,-taxiWidth,-1 do
  pbox(x+taxiWidth-7, y, 7, taxiHeight, bg)


don't see things getting much easier for free.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this