 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Stretch Arm-Strong
Joined: 11 Oct 2005 Posts: 5
|
Posted: Tue Oct 11, 2005 9:28 am Post subject: What did i do wrong? |
|
|
Alright im just starting so its very basic.. but what i want it to do is have a loading screen and than show a picture and play a song... heres what i have
++++++++++++++++++++++++++++++++++++++++
pink = Color.new(255, 0, 255)
screen:print(194, 136, "Loading: 0%", pink)
screen.flip()
background = Image.load("background.png")
screen:clear()
screen:print(194, 136, "Loading: 20%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 40%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 60%", pink)
screen.flip()
boltsnd = Sound.load("song.mp3")
screen:clear()
screen:print(194, 136, "Loading: 80%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 90%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 100%", pink)
screen.flip()
screen.waitVblankStart(60)
screen:blit(0, 0, background, false)
screen.waitVblankStart()
screen.flip()
boltsnd:play()
screen.waitVblankStart(240)
screen.flip()
Music.volume(128)
while true do
screen:blit(0, 0, background, false)
end
++++++++++++++++++++++++++++++++
I have the background.png, and song.mp3 files saved in the same folder that i saved INDEX.lua...which is in applications in a folder called TESTING....what there is wrong?
--Stretch Arm-Strong
((((btw while i was playing CS:S i was refferred here by another guy and he said that you guys were really nice and could help me out....so stick to his word)))) |
|
| Back to top |
|
 |
thsock
Joined: 25 Sep 2005 Posts: 25
|
Posted: Tue Oct 11, 2005 11:41 am Post subject: |
|
|
| You cant load/play a .mp3 |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Tue Oct 11, 2005 9:39 pm Post subject: |
|
|
This is absolute crap. I hate when companies attempt to comercialise file formats. File formats should be open source. If there's a better way to store data, then it should be used to further the evolution of man-kind, not to line the pockets of CEOs and their investment bankers. </rant> _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
thsock
Joined: 25 Sep 2005 Posts: 25
|
Posted: Wed Oct 12, 2005 2:50 am Post subject: |
|
|
| surely there is some way you could include mp3.. |
|
| Back to top |
|
 |
jimjamjahaa
Joined: 03 Oct 2005 Posts: 17
|
Posted: Wed Oct 12, 2005 3:27 am Post subject: |
|
|
| Zenurb wrote: |
This is absolute crap. I hate when companies attempt to comercialise file formats. File formats should be open source. If there's a better way to store data, then it should be used to further the evolution of man-kind, not to line the pockets of CEOs and their investment bankers. </rant> |
i think thats why ogg came about. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|