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 #39 items in Games category

 YAAC (Yet Another Asteroids Clone)

By: Kevin Picone Added: December 15th, 2009

Category: All,Games


     YAAC is more an Asteroids framework than a complete game. While it does include the basic player mechanics (controls, firing & collisions) as well as the asteroids controller code. It's not really tweaked up, It feel's ok, but the player is easily overwhelmed...

     Visually, the game uses additive effects on all items combined with buffer depreciation, which gives the trialing effect. Which have become common place in modern 'vector' games.

     The objective of the demo is really to help Beta test the PlayBasic V1.64k, as such the code uses a number of new features found only in that update..



Download: Login to Download




 Lunar Lander

By: MonkeyBot Added: October 27th, 2009

Category: All, Beginner, Games


     A Simple (unfinished) Lunar Lander remake by Monkeybot using randomly generated landscapes.

     Use cursors for sideways movement and Space bar to thrust


Download: Login to Download




 Mario Demo

By: Kevin Picone Added: June 23rd, 2009

Category: All,Games,Platform,Collision


This example recreates a version of the Mario movement and control system. It includes simple animation, jumping/falling and collision with the environment.
Download: Login to Download




 Pong 666

By: Vee Added: May 6th, 2009

Category: All,Games,AI,Beginners


     This is my first game in Play BASIC. I played around with some of the functions and I think it's an awesome language!

     This game is evil. You wont have fun playing it, because you will always lose since I implemented the best possible Pong A.I. At least I can think of no way to improve it, if you have an idea, please tell me. Since the bots are inhuman good, it's really funny watching them fight against each other, so I recommend pressing 3 at the beginning. If you want to see how the AI works, press Space.


Download: Login to Download




 Memory Game

By: Kevin Picone Added: April 7th, 2009

Category: All,Games,Beginners


This example is a version of the classic memory game, where you flip cards to find the matching pairs. Each time a pair is located, you're awarded a score. When all pairs are matched you win! Pretty simple game mechanic, but it can be a pretty enjoyable little game.



Download: Login to Download




 Rugby Demo

By: Kevin Picone Added: March 28th, 2009

Category: All,Games,2.5D


This example was original written at the start of 2006. It was originally developed using PlayBasic V1.20 (or so) and apart from a few parameters changes. The code is virtually the same. The demo was originally written as a proof of concept of sorts. While there's no game to speak of, the demo does show some methods that you can use to render perspective textured mapped scenes. Even in good old PlayBasic.
Download: Login to Download




 Air Born

By: Micky4fun, Kevin Picone Added: December 18th, 2008

Category: All,Games,Beginners


This is Micky4fun's 4th game which was originally written way back 2008. The game is a simple vertical scrolling shoot'em up similar in style to classic arcades video games such as 1942 / 1943.



Download: Login to Download




 Play Sabotage

By: Kevin Picone Added: November 20th, 2008

Category: All,Games,Beginners


This is just a little remake (of sorts) of a game called Sabotage from the Apple II days. The project is simply meant as another 'mini' game example for users to pick through. While the game is inspired by an old Apply II game and currently even uses some images from that (As you can no doubt tell ) it's not direct remake, since I can't remember it exactly.. But close enough will do . It's a sort of like a missile command game where you control the gun turret and have to shoot down attacking enemy planes and paratroopers. Once the paratroopers reach the ground they will attack your turret with machine gun fire. If the turret cops too much flak you're dead....



Download: Login to Download




Viewing Page [2] of [5]



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]