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 #3 items in Strings category by KevinPicone

 Dictionary Searching

By: Kevin Picone Added: November 22nd, 2007

Category: All, Strings, Search, Algorithm

This example loads demonstrates real time (async) input, parsing and word matching against a dictionary.
Download: Login to Download




 Load Text File To Array

By: Kevin Picone Added: May 28th, 2007

Category: All,Algorithm,Strings

This example looks the fastest way to load a text file into a string array in PlayBasic V1.62 and bellow. It includes two versions of the Loader function. The first reads the data to memory then manually grabs cuts and pastes this into the individual strings, the second read strings and throws them into the array directly. While the latter is less code, it's also dramatically slower! Around 50 times slower in fact. So if you need to load a text file into a string array, i'd recommend using the first version !


Note: I've include a second version of this bellow, LoadStringToArray_Faster.zip this version offers a few more methods on fast ways to load text files into an array.
Download: Login to Download




 Basic Text Adventure Framework

By: Kevin Picone Added: February 6th, 2007

Category: All,Games,Strings,AI

This example isn't a fully functional adventure game engine, but does include the bare bones of a user command parser, plus a few extras like an inventory and the start of the location system. While it's not finished, I'm not sure when i'll be able to find time to really write something decent. So feel free to continue it. Have fun !
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]