Pure BASIC Game
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Pure BASIC Game
Well I haven't used Pure BASIC in a while, but took a look once again and decided to write a game using it.
Here's a screen shot, early days but I have a sprite moving about smoothly and the graphics are complete and ready to be added to the game. Zoom to 100% to get a better perspective. It's running at 1920 x 1080 @ 2850 FPS.
https://www.dropbox.com/s/jz7kv37q93dai ... s.png?dl=0
Here's a screen shot, early days but I have a sprite moving about smoothly and the graphics are complete and ready to be added to the game. Zoom to 100% to get a better perspective. It's running at 1920 x 1080 @ 2850 FPS.
https://www.dropbox.com/s/jz7kv37q93dai ... s.png?dl=0
Last edited by Steve Elliott2 on Tue Jun 23, 2015 6:38 pm, edited 2 times in total.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Sorry guys. So many views, but I've just started coding the game.
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Thanks. It'll be a Crossfire meets Bomberman type of game.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Added sound and music...
No support for ogg guys?
No support for ogg guys?
Re: Pure BASIC Game
Are you using Purebasic's LoadSound() because it should support OGG files.
If you are just don't forget to use UseOGGSoundDecoder() sometime before you load any OGG files.
If you are just don't forget to use UseOGGSoundDecoder() sometime before you load any OGG files.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Ah, ok - thanks...But UseOGGSoundDecoder() and LoadMusic() results in just a noise...Anybody got some code to load ogg files that works? Or perhaps Audacity is not converting WAV to OGG correctly.
Re: Pure BASIC Game
I'm not really familiar with the OGG format so someone else might more of a help.
Can you play the OGG file in a media player of some sort excluding Audacity and Purebasic.
If you can then I'd say Purebasic is the problem if not then maybe it's Audacity messing something up.
Also are there any options when creating one? Maybe only certain types of OGG files (like older/different formats) will run with Purebasic.
That's about all I can think of.
Can you play the OGG file in a media player of some sort excluding Audacity and Purebasic.
If you can then I'd say Purebasic is the problem if not then maybe it's Audacity messing something up.
Also are there any options when creating one? Maybe only certain types of OGG files (like older/different formats) will run with Purebasic.
That's about all I can think of.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
No probs...Well it's a massive compression file size over WAV, so it's important.
Yes, only Pure BASIC won't play the file correctly.
Yes, only Pure BASIC won't play the file correctly.
Re: Pure BASIC Game
Excellent. I enjoyed Crossfire on the 8-bit Atari.Steve Elliott2 wrote:It'll be a Crossfire meets Bomberman type of game.
It's just that you'll need to use the Sound and not Music commands to play the Ogg Vorbis files.Steve Elliott2 wrote:Ah, ok - thanks...But UseOGGSoundDecoder() and LoadMusic() results in just a noise...Anybody got some code to load ogg files that works? Or perhaps Audacity is not converting WAV to OGG correctly.
Keep it BASIC.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Thanks, it is a fun little game. Although I never played the original (I know somebody who also made a remake).It'll be a Crossfire meets Bomberman type of game.
Excellent. I enjoyed Crossfire on the 8-bit Atari.
Great stuff! Works perfectly now.It's just that you'll need to use the Sound and not Music commands to play the Ogg Vorbis files.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Putting my routines into a Framework, to make producing games quicker and easier for pb users...
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
And hopefully new pb users!
pb clearly has hidden depths - keep at it Fred and co!
pb clearly has hidden depths - keep at it Fred and co!
Re: Pure BASIC Game
You might be trying to play ogg music with PlayMusic()... this will only play mod files.
You need to use LoadSound() and PlaySound() for ogg files.
You need to use LoadSound() and PlaySound() for ogg files.
-
- User
- Posts: 42
- Joined: Sat Jun 20, 2015 1:47 pm
Re: Pure BASIC Game
Yes, thanks Grunz. I've already realised that now.