EXAMPLE SOURCE CODES


     This is a small collection of mostly game example source codes. These source codes are made available to help PlayBasic programmers kick start their game programming journey. Looking for more source code / tutorials & media, then remember to visit the PlayBasic Resource board on our forums.

Found #2 items in Timing category

 Timer Based Movement with Vsync Tweening

By: Kevin Picone Added: August 23rd, 2009

Category: All, Fps, Timing


The aim of this example is to demonstrate an approach for decoupling your games logic from the host computers drawing performance, which is commonly referred to as timer based movement.

However in this approach, we're going to keep our frame based approach also. By doing this, our game logic is the virtually the same as what it would be, expect we're selectively executing the logic, and trying to tween (interpolate) the graphical output between logic refreshes.

Related Articles
Timer Based Movement
Vsync / Frame Rate Scaling
Handling Multiple Animations using Timer()
Consistent Game Timing

Download: Login to Download




 Timer Based Reveal Effects

By: Kevin Picone Added: July 3rd, 2009

Category: All,Timing,Effects


This set of examples show some slide show style reveal/wipe effects. Which include a circular (lode runner style), block based (pictured bellow) plus some (Horizontal/Vertical/Diagonal) wipes .
Download: Login to Download




Viewing Page [1] of [1]



Want More Source Codes?:



Release Type: The source code & tutorials found on this site are released as license ware for PlayBasic Users. No Person or Company may redistribute any file (tutorial / source code or media files) from this site, without explicit written permission.

 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]