Search found 22 matches

by flattspott
Mon Jul 03, 2006 2:06 am
Forum: PSP Lua Player Development
Topic: LUA Lights out
Replies: 2
Views: 2478

I already did this a while ago.

http://www.maxconsole.net/?mode=news&newsid=5031
by flattspott
Mon Oct 24, 2005 7:05 am
Forum: PSP Lua Player Development
Topic: fillTriangle function
Replies: 1
Views: 1530

fillTriangle function

function fillTriangle(size,color,direction) direction = direction or 1 local shape = Image.createEmpty(size, size) distance = (size/2) if direction == 1 then for i = 0,distance do shape:drawLine(distance-i, i, distance+i, i, color&...
by flattspott
Sun Oct 23, 2005 11:35 am
Forum: PSP Lua Player Development
Topic: Changing skins
Replies: 17
Views: 6284

I think you need a variable to track which skin is active Since tables start with an index of 1, one is the starting point of the variable. activeSkin = 1 to change the skin just increase the activeSkin variable screen:blit(0, 0, Skin[activeSkin].background, 0, 0, Skin[activeSkin].background:width()...
by flattspott
Mon Oct 17, 2005 2:43 pm
Forum: PSP Lua Player Development
Topic: image filters library with pics
Replies: 1
Views: 1486

image filters library with pics

I wanted to contribute a little something. It may be a bit slow but it's not too bad and it/they work(s). Perhaps someone can get some use from them. function brightness(img, amount) --must be between 100 and -100 output = Image.createEmpty(img:height(&#41...
by flattspott
Mon Oct 17, 2005 11:01 am
Forum: PSP Lua Player Development
Topic: New Function ---- Invert
Replies: 1
Views: 1453

New Function ---- Invert

function invertImage(theImage) newImage = Image.createEmpty(theImage:height(), theImage:width()) for x = 1, theImage:width()-1 do for y = 1, theImage:height()-1 do p = the...
by flattspott
Fri Oct 14, 2005 11:44 am
Forum: PSP Lua Player Development
Topic: Yeilding from C functions
Replies: 2
Views: 1657

How about

atHouse = false
while not atHouse do
Walk(Fred,House)
if Fred_spot == House_Spot then atHouse = true end
end
LookAt(Fred,Door)
by flattspott
Mon Oct 10, 2005 10:51 am
Forum: PSP Lua Player Development
Topic: System.listDirectory()
Replies: 3
Views: 2164

maybe it should be something like so..

System.listDirectory( path )
by flattspott
Mon Oct 10, 2005 3:49 am
Forum: PSP Lua Player Development
Topic: Please help, function fallin objects( ? )
Replies: 5
Views: 2712

you need a for loop to loop through the pieces on each draw cycle.
by flattspott
Sun Oct 09, 2005 2:18 pm
Forum: PSP Lua Player Development
Topic: create video of your game (no hardware required)
Replies: 19
Views: 6534

Damn this is really nifty. Works good too.
by flattspott
Mon Oct 03, 2005 3:45 pm
Forum: PSP Lua Player Development
Topic: Obligatory Matrix Simulator
Replies: 7
Views: 3710

Nooooo. I wanted to do that one to
by flattspott
Mon Sep 26, 2005 2:18 am
Forum: PSP Lua Player Development
Topic: Dofile doest work for me
Replies: 1
Views: 1949

Dofile doest work for me

in both the psp and windows versions.

Attemp to call method "caption" (a nil value)

All i am trying to do is use some of the samples from the LPut02.lua
I even tried copy and pasting the examples usage and whatnot from the grayscales post. it diding work either.
by flattspott
Mon Sep 26, 2005 1:53 am
Forum: PSP Lua Player Development
Topic: TextWidth and TextHeight functions?
Replies: 4
Views: 3000

from counting the pixels on a zoomed in image
s would be a space

font = {h=7, w=5, s= 3}
by flattspott
Sun Sep 18, 2005 2:37 am
Forum: PSP Lua Player Development
Topic: Game Prototype Im Starting ... dots
Replies: 6
Views: 7517

Hey you werent spose to to do it for me. I got my own way that i am gonna try, using a array structure like grid [y][x].value, where i is from 1 to 4 representing four screens to draw on, one for the top, bottom, left and right lines. The point being I can use transparent pngs, for each line section...
by flattspott
Sat Sep 17, 2005 3:56 pm
Forum: PSP Lua Player Development
Topic: Game Prototype Im Starting ... dots
Replies: 6
Views: 7517

Game Prototype Im Starting ... dots

After seeing JEK and his Connect game is was inspired to make my own game, not a clone of an existing game. Mind you all, I have just started to code this and the below image is only a prototype mockup done in photoshop. And yes it is based on the pen and paper game. http://img.photobucket.com/album...
by flattspott
Tue Sep 13, 2005 8:01 pm
Forum: PSP Lua Player Development
Topic: LightsOut Clone
Replies: 6
Views: 6258

i guess no one cares too much... :(
by flattspott
Tue Sep 13, 2005 11:08 am
Forum: PSP Lua Player Development
Topic: Connect, a new game.
Replies: 8
Views: 7644

That's sweet looking man, and here i thought you made some ugly Connect 4 type of game
by flattspott
Mon Sep 12, 2005 6:24 am
Forum: PSP Lua Player Development
Topic: LightsOut Clone
Replies: 6
Views: 6258

Yes I believe that the 50 levels are the original ones. I got them from some Lightsout faq on the net.
by flattspott
Mon Sep 12, 2005 5:28 am
Forum: PSP Lua Player Development
Topic: LightsOut Clone
Replies: 6
Views: 6258

LightsOut Clone

Version 1.0 This is my very first game in lua. There are 50 levels with alternating colored background. And automated solutions too. http://img.photobucket.com/albums/v157/flattspott/lightsout1.png http://img.photobucket.com/albums/v157/flattspott/lightsout2.png http://rapidshare.de/files/4990561/Li...
by flattspott
Wed Sep 07, 2005 11:20 am
Forum: PSP Lua Player Development
Topic: Sokoban clone
Replies: 5
Views: 6715

SokobanYASC comes with several skins.

https://sourceforge.net/projects/sokobanyasc/

Image
by flattspott
Tue Sep 06, 2005 1:24 pm
Forum: PSP Lua Player Development
Topic: Some Border Stuff
Replies: 0
Views: 1704

Some Border Stuff

Here a little border stuff I did. Red is a plain drawRect Green is borderOutside Blue is borderInside nothing fancy, i know but this is how I came up with doing borders that are transparent in the center with an adjustable thickness. http://img.photobucket.com/albums/v157/flattspott/border.png --&am...
by flattspott
Tue Sep 06, 2005 7:52 am
Forum: PSP Lua Player Development
Topic: Limitations?
Replies: 8
Views: 4517

Its probably you code. Post the part that your using to draw your tiles or whatnot.

Rightnow I am working on two grid based games myself

The first is 5x5 @ 25 tiles
The second is 7x13 @ 91 tiles
by flattspott
Mon Aug 22, 2005 4:16 am
Forum: PSP Lua Player Development
Topic: Tips need for input issues
Replies: 0
Views: 1928

Tips need for input issues

Can somebody give me some tips on processing input properly please? I understand how to go about it but it seems buggy. function inputHandler() screen.waitVblankStart() input = Controls.read() if mode == 1 then if input:up() the...