Check out my scrolling demo!

Advanced game related topics
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Check out my scrolling demo!

Post by cbmeeks »

Man, PB is awesome!

I have run into some bugs (may be video card related...see my DisplaySprite3D garbage thread)

ANYWAY, download the demo below and let me know if it runs smooth (the scrolling is slow...but it should be smooth).

Left/right to move. Also, scroll to the end and you will see Kraid. Mouse up/down to move him.

What do you think of the lava and steam effect?

-cb

DOWNLOAD HERE --> cb.signaldev.com/lava.zip
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Perfect on my system..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Iria
User
User
Posts: 43
Joined: Sat Nov 29, 2003 8:49 pm

comment out the joystick info on mine ...

Post by Iria »

Commented out the joystick info on mine and we were rocking and rolling... V nice :)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

new_bitmapimage... have you been grabbing from another program? :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Post by cbmeeks »

Commented out the joystick info on mine and we were rocking and rolling... V nice
Did the joystick not work?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

If no joytsick or sound are present you must not call the functions associated to them. Keep in mind many people do not have joysticks and some PC's don't have sound cards...

Just use:

Code: Select all


If initjoystick()
 Joy=true
else
 Joy=false
endif

If initsound()
 Sound=true
else
 Sound=false
endif

more game here...

If joy=true
 do joystick things
endif

If sound=true
 do souns things
endif
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Post by Danilo »

@Num3:
No If...Else...Endif needed for the init commands.

Code: Select all

Joystick = InitJoystick()
Sound    = InitSound() 

If Joystick
  ; do joystick things
EndIf 

If Sound
  ; do sound things 
EndIf
BTW:
Would be nice if InitJoystick() returns the number of available
joysticks in the system.
All joystick-commands should get a "joystick-number" param then...
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
Post Reply