|
#1
|
|||
|
|||
|
hey, here is my first go at an app for the zen. I hav NEVER done any programming before in my life so it may not be the best but i am happy with it :P. its a copy of the zendaft app but with pacman sounds. i hope everyone likes it and all feedback/improvements are welcome.
the layout is the same as on zendaft as i don't know how to do anything different. it's large so i had to put it on mediafire: http://www.mediafire.com/?zk2mmwuwdhg enjoy!!
|
|
|
|||
|
|
|
#2
|
|||
|
|||
|
Nice, pretty cool for a first try at programming
|
|
#3
|
|||
|
|||
|
thanks, i thought so!! =P
|
|
#4
|
||||
|
||||
|
Fantastic for a first app! It just blows my first and only app out of the water
|
|
#5
|
|||
|
|||
|
aww thanks but not really. besides, i can't really take the credit for it, all i did was change a few things. the real pro is jesspur
|
|
#6
|
||||
|
||||
|
Nice adaption of the ZENdaft code. But it still contains the same error as the original: When you press home an error occurs and the app crashes.
I know you're not a programmer and can't fix it, and neither have the others who has used it seemed to been able to either. I looked into yours and noticed what was wrong with your code. I attached the fixed MAIN.LUA in a zip. The problem was with these pieces of code: Code:
-- Load images
imgBg = image.load("background.png");
-- Load sounds
ambient_arcade = wav.load("sounds/ambient_arcade.wav")
chomp = wav.load("sounds/chomp.wav")
chomping = wav.load("sounds/chomping.wav")
death_ms = wav.load("sounds/death_ms.wav")
eat_fruit = wav.load("sounds/eat_fruit.wav")
eat_ghost = wav.load("sounds/eat_ghost.wav")
eating_cherry = wav.load("sounds/eating_cherry.wav")
eating_ghosts = wav.load("sounds/eating_ghosts.wav")
extra_life = wav.load("sounds/extra_life.wav")
insert_coin = wav.load("sounds/insert_coin.wav")
intermission = wav.load("sounds/intermission.wav")
pacman_dies = wav.load("sounds/pacman_dies.wav")
pacman_fever = wav.load("sounds/pacman_fever.wav")
siren = wav.load("sounds/siren.wav")
start_game = wav.load("sounds/start_game.wav")
start_of_game = wav.load("sounds/start_of_game.wav")
stop = wav.load("stop.wav")
Code:
elseif (control.isButton()==1) and (button.click() == 1) then stop:play() stop:close() break end The red parts of the code should be removed. and this part should be added at the very end to close all loaded audio files. Code:
start_of_game:close() start_game:close() siren:close() pacman_fever:close() pacman_dies:close() intermission:close() insert_coin:close() imgBg:close() ambient_arcade:close() chomp:close() chomping:close() death_ms:close() eat_fruit:close() eat_ghost:close() eating_cherry:close() eating_ghosts:close() extra_life:close() Hope this helped and solved your error, it will be easier to see what I did if you just look in the MAIN.LUA I attached.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ Last edited by Habhome; 02-19-2010 at 04:03 PM. |
|
#7
|
|||
|
|||
|
thats great thanks but i already fixed the problem. i ran the app on the simulator and realised that that was where the error was coming from so i just deleted the command for stop.wav and it seems to be working fine. thanks for the help
|
|
#8
|
||||
|
||||
|
Quote:
But I still think you should have the closes at the end, I think it is better for the player.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#9
|
|||
|
|||
|
yeah thanks, i added them on to the end. i also have a question... i hav added in a new splash.lua file and it works fine. it uses orange and red text and a sound file and all work properly. when this is attached however, the writing on the main program page is now orange instead of the yellow it was. i have tried to fix it but i cant get it back to yellow. it even turned to black at one point even thought there is no black in the script. can you try and help me please?
|
|
#10
|
||||
|
||||
|
Quote:
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#11
|
||||
|
||||
|
hi guys, im trying to make my own of this but whenever i use it it either returns to menu with an "error occured!" message or my player crashes. help?
|
|
#12
|
||||
|
||||
|
Can't really help with that little information. Make a thread about the app and post it as it is so people can look at your code and point out errors.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#13
|
|||
|
|||
|
Quote:
|
![]() |
| Tags |
| pacman, soundboard |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 06:58 AM.













Linear Mode
