KaboomPSP 0.1
Moderators: Shine, Insert_witty_name
-
- Posts: 32
- Joined: Tue Jan 25, 2005 3:10 am
KaboomPSP 0.1
my first psp game and also the first thing I've ever coded in LUA. KaboomPSP is a clone of the Atari 2600 game Kaboom.
http://www.sendmefile.com/00046899
sorry for having to use a free host but im probably the only coder without webspace :p
http://www.sendmefile.com/00046899
sorry for having to use a free host but im probably the only coder without webspace :p
Hi nice release, ive took the liberty of uploading your release and mirroring it here --> http://www.dcemu.co.uk/vbulletin/showthread.php?t=9284
If your looking for a place to upload my forums can take up to 8 meg in zip file uploading. At least then you want have to use those horid free webservers. heres the link to the forum where we host projects --> http://www.dcemu.co.uk/vbulletin/forumdisplay.php?f=84
Also included a v1.0 eboot and added it to your zipfile.
If your looking for a place to upload my forums can take up to 8 meg in zip file uploading. At least then you want have to use those horid free webservers. heres the link to the forum where we host projects --> http://www.dcemu.co.uk/vbulletin/forumdisplay.php?f=84
Also included a v1.0 eboot and added it to your zipfile.
-
- Posts: 32
- Joined: Tue Jan 25, 2005 3:10 am
i'm having a little problem that for the life of me I cant figure out the cause of: after 25 execution loops luaplayer returns an error at line 26 due to a stack overflow. here's the code, hopefully someone could show me what's causing this and how to resolve it.
Code: Select all
--[[
KaboomPSP, Copyright (c) 2005 Dark Killer
]]
-- load images
background = Image.load("bg.png")
title = Image.load("title.png")
bar = Image.load("bar.png")
bomb = Image.load("bomb.png")
function movebomb()
by=by+2
end
function newbomb()
--bomb:clear(green)
--bomb = Image.load("bomb.png")
--math.randomseed(os.time())
by = 25
math.randomseed(os.time())
bx = math.random(220)
end
function Control()
--screen.waitVblankStart()
pad = Controls.read()
if pad:left() then
x = x - 9
elseif pad:right() then
x = x + 9
elseif x<1 then
x=1
elseif pad:circle() then
screen:save("screenshot.tga")
end
main()
end
function main()
screen:blit(0, 0, background, 0, 0, background:width(), background:height(), false)
screen:print(280, 5, "Score: " .. pnts, green)
screen:blit(bx, by, bomb)
screen:blit(x, 237, bar)
if bx + 50 >= x and bx + 50 <= x + 94 then
if by + 50 >= 237 and by + 50 <= 256 then
pnts = pnts + 100
newbomb()
end
elseif by > 250 then
if pnts >= 100 then
pnts = pnts - 100
end
newbomb()
end
movebomb()
screen.waitVblankStart()
screen.flip()
Control()
end
screen:blit(0, 0, title, 0, 0, title:width(), title:height(), false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(141)
green = Color.new(0, 255, 0)
x=2
pnts=0
newbomb()
main()
-
- Posts: 13
- Joined: Wed Aug 03, 2005 9:48 pm
-
- Posts: 32
- Joined: Tue Jan 25, 2005 3:10 am
-
- Posts: 32
- Joined: Tue Jan 25, 2005 3:10 am
I suspect your problem was that main() calls control() and control in turn calls main? :)
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
-
- Posts: 32
- Joined: Tue Jan 25, 2005 3:10 am
exactly.ector wrote:I suspect your problem was that main() calls control() and control in turn calls main? :)
anyway, here's 0.2 with some fixes and gameplay improvements:
http://rapidshare.de/files/4020201/Kabo ... K.zip.html
file mirrored here for those that cant download off the free server
http://psp-news.dcemu.co.uk/kaboompsp.shtml
http://psp-news.dcemu.co.uk/kaboompsp.shtml