It is currently Fri Jul 10, 2020 3:46 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Pure BASIC Game
PostPosted: Sun Jun 21, 2015 12:30 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
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


Last edited by Steve Elliott2 on Tue Jun 23, 2015 6:38 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Sun Jun 21, 2015 10:29 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
Sorry guys. So many views, but I've just started coding the game.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Mon Jun 22, 2015 7:45 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Apr 15, 2013 12:22 pm
Posts: 517
Graphics look nice. What will it be?

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Mon Jun 22, 2015 10:20 am 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
Thanks. It'll be a Crossfire meets Bomberman type of game.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Mon Jun 22, 2015 7:51 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
Added sound and music...

No support for ogg guys?


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Tue Jun 23, 2015 6:53 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 29, 2012 10:33 pm
Posts: 750
Location: United States
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Tue Jun 23, 2015 8:22 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Tue Jun 23, 2015 9:44 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 29, 2012 10:33 pm
Posts: 750
Location: United States
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Wed Jun 24, 2015 12:11 am 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Wed Jun 24, 2015 3:35 am 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 12, 2013 1:55 pm
Posts: 1058
Location: just outside of Ferguson
Steve Elliott2 wrote:
It'll be a Crossfire meets Bomberman type of game.
Excellent. I enjoyed Crossfire on the 8-bit Atari.

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.
It's just that you'll need to use the Sound and not Music commands to play the Ogg Vorbis files.

_________________
Keep it BASIC.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Wed Jun 24, 2015 11:04 am 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
Quote:
It'll be a Crossfire meets Bomberman type of game.

Excellent. I enjoyed Crossfire on the 8-bit Atari.


Thanks, it is a fun little game. Although I never played the original (I know somebody who also made a remake).

Quote:
It's just that you'll need to use the Sound and not Music commands to play the Ogg Vorbis files.


Great stuff! Works perfectly now.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Thu Jun 25, 2015 1:01 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
Putting my routines into a Framework, to make producing games quicker and easier for pb users...


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Thu Jun 25, 2015 5:14 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
And hopefully new pb users!

pb clearly has hidden depths - keep at it Fred and co! :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Tue Jun 30, 2015 9:20 pm 
Offline
User
User

Joined: Sat Nov 12, 2011 7:21 pm
Posts: 59
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pure BASIC Game
PostPosted: Tue Jun 30, 2015 10:49 pm 
Offline
User
User

Joined: Sat Jun 20, 2015 1:47 pm
Posts: 42
Yes, thanks Grunz. I've already realised that now.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 18 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye