PDA

View Full Version : I need help PLEASE



scarface350
December 16th, 2005, 01:34
I want to make a pong game and also want to implement some music. can anyone like give me the code to this so i can study it. im trying to make my first lua app. i decided to do Pong. any other suggestions???? i dont know too much about lua yet...

things i learned:
- If ONE LETTER is not correct or has proper punctuation, the whole program wont work.

- how to load an image.
- how to print text and arrange them to the screen.
- set color information.
- how to organize code with ----> -- (title or text) <-------

is this enough info to make something simple like a pong game??? or should i start with something smaller. Please hand me suggestions.

shiftybill
December 16th, 2005, 02:59
music = Sound.load("music.wav")
musicplaying = true

while true do

if musicplaying == true then
music:play()
musicplaying = false
end

theres the code i use, its not that rgeat but it works

cancan
December 16th, 2005, 09:59
There is already a Pong game.
It does not mean that you don't have to do one but I think that all information you need are included in the script of the already existing one.

Here the link to it:
http://forums.ps2dev.org/viewtopic.php?t=3382