List All Pages
This page is recommended for cleanup.
You should already know what addition is and how to add numbers together. However, it's important to know how mathematicians define addition and how it is...
This tutorial will teach you the basics of making a real time ASCII game using the Brutus2D console object. Before going through this tutorial, you might want to have a look at this one : Console...
Description
A poor circle being bullied by the big bad square. You play the role of the big bad square.
Instructions
See if you can catch the poor defenseless circle to get a reaction :)
Source...
Description
The code below attempts to simulate a ball that you can pick up with the mouse button and throw around the screen. There is also a bat at the mouse cursor ready to be implemented into...
This is a continuation of a three part series of tutorials for beginners about object oriented programming using Brutus2D. If you haven't read Basic OOP tutorial I - Rising From The Dead, you...
This tutorial will teach you enough to get started using object oriented programming in Brutus2D. It will not teach you everything you need to know —- this is an introductory tutorial for both...
This page is recommended for cleanup.
Welcome to the Brutus2D Beginner's Guide. This is one of many beginner's guides around GDN. You should be reading this one if you want to make any kind of...
BMath.GetRndInt() - generate a random integer with a min and max value.
( Brutus2D 1.6, 1.7 )
Syntax
number = BMath.GetRndInt ( lowValue, highValue )
lowValue - the minimum value that a number...
The Brutus2D math object is useful for performing math. Unlike most other Brutus2D objects, the math object does not need to be initialized.
The math object was first included in Brutus2D...
This is an introductory tutorial about getting started with Brutus2D. It will not teach you how to program or how to make a complete game, instead, this tutorial is focused on saving you time...
Welcome to
Brutus2D Wiki Complete,
the free Brutus2D Guide that
anyone can edit.
B2DWC has over 100 pages.
Brutus2D Wiki Complete is the place where you can learn to make video games using...
if statements are fundamental to any kind of game programming. Without them, you really can't make any kind of game at all. This Brutus2d Tutorial will introduce you to if and its friend then.
Cake...
The Problem:
You've loaded and drawn your image sprite. But now you don't know how to move it with keyboard input. Oh No!
The Solution:
1. Start up B2D
2. Make a new file save it as something like...
This page is recommended for cleanup.
This page is recommended for cleanup.
Color in Brutus2D is represented as a hex color with 8 digits instead of the commonly accepted six. For example, white in the accepted six digit :...
This page is recommended for cleanup.
Comments in Brutus2D are notes left by the game programmer to remind himself of what his code does and to help other people who make look at the code know...
Game Maker Wiki Complete Community pages :
Community Portal
Community Team
Member Pages
Badges
Forum: Recent Posts
This is the community portal of Brutus2D Wiki Complete.
cleanup
stubs
To Do
copy the structure of the community portal from another wiki.
set up the forum structure.
create templates : default /...
The Community Team is here to help you with anything you need.
All members of the community team have volunteered to help you.
Administrators
These members have complete control over the wiki.
(...
console.Clear - clear the console window.
( Brutus2D 1.6, 1.7 )
Syntax
console.Clear
Description
console.Clear clears the console window of all text. Strangely, it does not remove background...
console.GetCursorVisible - check if the cursor is visible.
( Brutus2D 1.6, 1.7 )
Syntax
bool = console.GetCursorVisible
bool - true or false
Description
console.GetCursorVisible checks to see if...
console.Initialize - initialize the console object and create a console window
( Brutus2D 1.6, 1.7 )
Syntax
console.Initialize
Description
console.Initialize initializes the console object and...
( Brutus2D 1.6 - 1.8.1)
console.inKey - waits for a single ASCII character to be input by the user.
Syntax
console.inKey
Description
console.InKey return the first ASCII character input by...
This tutorial will tell you what you need to know to get a blank Brutus2D console window working with no errors. It is the first step in learning to use the Console object. If you already know...
Console...
console.ReadLine - get a line of text from the player
Syntax
var = console.ReadLine
var - returned input from player
Description
console.ReadLine gets a line of input from the player. When it is...
( Brutus2D 1.7 )
console.SetBackColor - Changes the color style of text
Syntax
console.SetBackColor( color )
color - color style to change the text to.
Description
console.SetBackColor Changes...
( Brutus2D 1.6, 1.7 )
console.SetCursorVisible - set the visibility of the cursor
Description
console.SetCursorVisible bool
bool - true or false
console.SetCursorVisible sets the visibility of...
( Brutus2D 1.7 )
console.SetForeColor - Changes the color style of text
Syntax
console.SetForeColor( color )
color - color style to change the text to.
Description
console.SetForeColor Changes...
( Brutus2D 1.6, 1.7 )
console.SetTitle - set the caption of the console window
Description
console.SetTitle caption
caption - the new caption
console.SetTitle sets the console window's caption....
( Brutus2D 1.6, 1.7 )
console.Terminate - terminate the console object and close the console window
Description
console.Terminate
console.Terminate terminates the console object and closes the...
( Brutus2D 1.7 )
console.Wait - wait for the player to press a key.
Description
console.Wait [prompt] [, line break]
[prompt] - (optional) the prompt to display.
[line break] - whether or not to...
( Brutus2D 1.6, 1.7 )
console.WriteCenter - display a message in the center of a line
Description
console.WriteCenter message
message - message to be written
console.WriteCenter displays a...
( Brutus2D 1.6, 1.7 )
console.WriteLine - write a line to the console window
Description
console.WriteLine line
line - the line to write
console.WriteLine is the Brutus 2D console object's...
( Brutus2D 1.6, 1.7 )
console.WriteRight - display a message on the right side of the console window.
Description
console.WriteRight message
message - message to be written
console.WriteRight...
( Brutus2D 1.6, 1.7 )
console.WriteString - display a string in the console window
Description
console.WriteString string
string - the string to be displayed.
console.WriteString displays a...
( Brutus2D 1.6, 1.7 )
console.WriteTo - write something a specific location.
Description
console.WriteTo thing, x, y
thing - thing to write
x - x location
y - y location
console.WriteTo writes...
( Brutus2d 1.6, 1.7 )
const - create a constant.
Description
A Constant is like a variable — it contains a value. However, unlike with variables, the value of a constant cannot be changed once...
Every great game programmer started out by learning core programming. If you are completely new to programming, you should start by learning core programming first. This is because what you learn...
How to Create a Game Window in Brutus2D Tutorial
Before your player can start to play a game, you have to create (or open) a game window for the game to be played in. This is a snap in Brutus2D,...
A something is a
Related Pages
Backlinks
These pages link back to this page. You may find them helpful.
module "forum/ForumCommentsModule" title%3D%22Discuss%22
This article is a stub. You can...
( Brutus2D 1.6, 1.7 )
Dim - create a variable
Description
Dim variableName
variableName - the name of the variable to be created
Dim creates a variable. Variables must be declared before they are...
How to Display a Background Image in Brutus2D
A background image can be used for a title screen, background of a full screen menu, or the background for a one screen arcade game.
Create a New...
The dll object of Brutus2D is used to load dll files and call their functions from within Brutus2D. Using the dll object requires the registered version of Brutus2D.
Methods
dll.CallAPI - call...
Do While Loop is a while loop. Do X Loop Until Y
Here is an example :
console.Initialize
Dim counter
Do
counter = counter+1
console.WriteLine counter
Loop Until counter =...
name - does something
Brutus2D 1.6, 1.7, ?
Syntax
name ( argument, argument2 )
argument - explanation
argument2 - explanation
Description
name does something in more detail.
Examples
Example...
This page is recommended for cleanup.
Author's Note Easy Math with Brutus2D is both a book in progress and a research project. Please forgive me for the rough spots you will encounter. They...
How to Fade the Game Window to a Color
Create a New File
Create a new file named "fade.b2d" and save it to it's own folder.
Get the Background Image
Get the background image at the bottom of this...
FAQs are frequently asked questions properly answered and properly archived.
Brutus2D FAQ - Our unofficial Brutus2D FAQ.
Sound and Music FAQ - frequently asked questions about sound and music.
Text Files
Load a Text File
Create a Text File
It's customary and almost a cliche to begin an introductory text on physics with one of two approaches.
Attempt to blow your freekin' mind in two paragraphs.
Start with the fundamental units of...
The FX object of Brutus2D is an object that contains useful functions for creating particles.
You must register Brutus2D (10 USD) to use the FX object.
Initialization
fx.LoadImage() - loads the...
This class is ment as a replacement for the mouse object provided by Brutus2D. See this mouse fix for more details on why and how to use this object. This code is version 1.01.
' This class is...
Every game has the same basic code structure. This tutorial will introduce you to it.
Game Structure Tutorial
Every game follows a general programming structure. This structure makes sure helps you...
Initialization
graphics.Initialize - start graphics object and create a window
graphics.Terminate - kill it
Drawing Frames
graphics.Clear - clear the current frame
graphics.Display - display...
The Problem:
You want to follow the mouse with your sprite image.
The Solution:
1. Start up B2D
2. Make a new file save it as something like "test". It has to be saved otherwise you can't really...
Brutus2D in a Nutshell
Brutus2D is an object oriented game programming language. That's a mouthful isn't it? Well, what this means is that:
Brutus2D saves you time and headaches.
Because it is...
Graphics in Brutus2D are controlled by its built-in graphics object. It handles everything from setting up the screen (or window) to collision detection.
FX Object
Graphics Object
Screen and...
( Brutus2D 1.4.x, 1.5.x, 1.6, 1.7 )
graphics.Clear - clear the screen
Description
graphics.Clear color
color - color to clear with, default is &h00000000 (black)
graphics.Clear clears the...
( Brutus2D 1.4.x , 1.5.x, 1.6, 1.7 )
graphics.ClearFont - free memory used by a created font
Description
graphics.ClearFont font
font - index of created font
graphics.ClearFont will free the...
( Brutus2D 1.7 )
graphics.CloneImage - make a copy of a previously loaded image.
Description
graphics.CloneImage makes a reference to a previously loaded image, however, the "new" image is treated...
( Brutus2D 1.4.x, 1.5, 1.6, 1.7 )
graphics.CreateFont - load a font and create an index to refer to it.
Description
index = graphics.CreateFont ( fontname, size, [bold], [italic], [underline]...
( Brutus2D 1.5.x, 1.6, 1.7 )
graphics.Display - display the current frame.
Description
graphics.Display
graphics.Display draws the current frame (the one just drawn) to the screen. No graphics or...
( Brutus2D 1.4.x, 1.5.x, 1.6, 1.7 )
graphics.FPS - return how many frames per second are drawn
Description
fps = graphics.FPS
fps - the actual number of frames drawn per second
graphics.FPS...
( Brutus2D 1.8.1 )
Graphics.GetHeight - get the height of an image.
Description
height = Graphics.GetHeight(img)
height - the height of the image, in pixels
img - the image to...
( Brutus2D 1.4.x, 1.5.x, 1.6, 1.7 )
graphics.Initialize - start the Graphics object
Description
graphics.Initialize width, height, windowed, colorDepth
width - width of window/horizontal...
( Brutus2D 1.4.1, 1.5.x, 1.6, 1.7 )
graphics.LoadImage()- load an image from a file
Description
index = graphics.LoadImage( filename [, transColor] )
index - returned index of loaded...
The Brutus2D graphics object is your evil minion which does graphics related tasks for you. Because Brutus2D is a 2D game programming language, the graphics object has many methods. So, we've...
graphics.GetCollision() -
graphics.GetCollisionPP() -
graphics.GetCollisionCustom() -
graphics.GetCollisionCircle() -
graphics.GetCollisionLine() -
graphics.GetCollisionLineLine()...
Initialization
graphics.LoadImage() - load an image and store the index in a variable
graphics.CloneImage() - make a copy of a previously loaded image
graphics.CreateImage() - create a blank...
graphics.CreateFont() - loads a font and creates an index to refer to it
graphics.ClearFont - deletes a font and frees the memory used
graphics.SetText - draws text to the current frame.
These methods are used for the tilemap provided by Brutus2D. In order to render the map you use graphics.SetImage with the image index returned by...
( Brutus2D 1.6, 1.7 )
graphics.SetFPS - limit the number of frames drawn per second.
Description
graphics.SetFPS maxFPS
maxFPS - the maximum limit of frames that can be drawn as...
( Brutus2D 1.4.x, 1.5.x, 1.6, 1.7 )
graphics.SetImage - put the image in the current frame.
Description
graphics.SetImage image
image - the image to set
graphics.SetImage places an image into...
( Brutus2D 1.5.x, 1.6, 1.7] )
graphics.SetText - draw text to the current frame
Description
graphics.SetText text, x, y, font, [color]
text - the text you want to display
x - the x location of...
( Brutus2D 1.4.x, 1.5.x, 1.6, 1.7 )
graphics.SetTitle - set the window title
Description
graphics.SetTitle title
title - title of window
graphics.SetTitle sets the window title.
Example
Example...
( Brutus2D 1.4.x to 1.8.1 )
graphics.SetX - set the x location of an mage
Description
graphics.SetX image, x
image - image to set x
x - numerical x value
graphics.SetX sets the x location of an...
( Brutus2D 1.4.x to 1.8.1 )
graphics.SetXY - set the x/y location of an image
Description
graphics.SetXY image, x, y
image - image to set x/y
x - numerical x value
y - numerical y...
( Brutus2D 1.4.x to 1.8.1 )
graphics.SetY - set the Y location of an image
Description
graphics.SetY image, y
image - image to set y
y - numerical y value
graphics.SetY sets the Y location of an...
( Brutus2D 1.5.x, 1.6, 1.7 )
graphics.Terminate - terminate the Brutus2D graphics object.
Description
graphics.Terminate
graphics.Terminate terminates the graphics object and performs cleanup. You...
This is the classic Guess the Number game for Brutus2D.
'******************************************************************
' Initialization...
The Brutus2D GUI object allows you to create and manipulate a GUI interface. The GUI object is only available in the Full Version of Brutus2D.
GUI.CreateControl -
GUI.SetString -
GUI.AddItem...
The Hello World Tutorial is a classic one. It is designed to give the the absolute minimum you need to get something running in Brutus2D. There are Hello World tutorials for almost all programming...
If you are allowed to edit pages in this Site, simply click on edit button at the bottom of the page. This will open an editor with a toolbar pallette with options.
To create a link to a new page,...
A dumb vertical driving "game" with no purpose. All graphics are drawn using rectangles.
The source is in JScript, so open the file through the File->Open menu item in the editor.
// By u9...
If is a conditional statement. If a condition is true, it will execute the code after Then.
If (condition is true) Then (some code)
Here is an example :
If 2 + 2 = 4 Then console.WriteLine "2 + 2...
( Brutus2D 1.6, 1.7 )
Include - include (import) another code file
Description
Include filename
filename - the name of the file to include
The use of Include allows you to break your code into...
This tutorial will teach you the fundamentals of input and output using the Brutus2D console object. If you are a complete beginner, this tutorial is a must read.
Brutus2D Input and Output...
In the last tutorial, you learned about some of the methods of the Brutus2D console object used for input and output. In this tutorial, you are going to learn more useful ways to use them.
Brutus2D...
The Interactive Story is a classic project for beginning programmers. By learning to make an interactive story you will learn much about text games and how they work. If you want to learn how to...
Introduction to the Brutus2D Version
This book is a revised version of another book in progress — 2D Physics in PlayBasic. I've decided to write it because one of our regular members requested...
Almost all game programmers wish they were better at math. It is assumed that if you are good at math, then you can do some spectacular things in any programming language. While it's true that you...
This tutorial is the first step in learning to use images and sprites in Brutus2D. It will teach you to load, display, and set the transparent color of an image.
Introduction to Brutus2D...
This tutorial covers the basics of using the keyboard to get input by using the Brutus2D keyboard object. It also assumes you already know what Brutus2D objects are and that you have read Getting...
Please change this page according to your policy (configure first using Site Manager) and remove this note.
Who can join?
You can write here who can become a member of this site.
Join!
So you...
The Brutus2D joystick object contains methods useful for reading input from a joystick connected to the computer.
Initialization
Initialize -
Terminate -
System Information
GetDriverVersion()...
The keyboard object of Brutus2D has useful methods for handling input via the keyboard.
Methods
Initialization
key.Initialize - initialize the keyboard object.
key.Terminate - terminate the...
( Brutus2D 1.5.x, 1.6, 1.7 )
key.Initialize - initialize the keyboard object
Description
key.Initialize
no parameter or return value
key.Initialize starts up the keyboard object and prepares it...
( Brutus2D 1.5.x, 1.6, 1.7 )
key.Pressed - check if a specific key is currently pressed
Description
bool = key.Pressed ( keycode )
bool - true or false
keycode - keycode as a number or virtual...
( Brutus2D 1.7 )
key.PressedAny - check if any key is pressed
Description
scancode = key.PressedAny
scancode - scancode of key pressed. 0 if no key pressed.
key.PressedAny returns the scancode...
( Brutus2D 1.5.x, 1.6, 1.7 )
keyboard.Terminate - terminate the keyboard object
Description
key.Terminate
key.Terminate shuts down the keyboard object and cleans up any memory that the keyboard...
( Brutus2D 1.7 )
key.Wait - wait until the user presses a key.
Description
Note : We ran into some problems trying to document this method. Therefore we are talking with the Brutus2D developer to...
A collection of functions for creating and maintaining linked lists.
' Small lists-library. By u9 oct 2007. Public Domain
'...
This is a list of terms that Brutus2D programmers like to throw around as if everyone understands them. If you are confused by a bit of jargon said by a Brutus2D programmer, check this page...
This is a list of Brutus2D virtual key codes for quick reference.
Arrow Keys
vk_up
vk_down
vk_left
vk_right
Letter Keys
All letter keys are referenced with vk_[letter] where [letter]is the letter...
On this page you will find a list of common Brutus2D mistakes.
Objects
Mashing together object and method names : graphicsInitialize rather than graphics.Initialize
Keyboard Object
The keyboard...
These pages are stubs. You can help us improve Brutus2D Wiki Complete by expanding them.
A list is a cheat sheet of listed data.
list of Brutus2D virtual key codes
list of Brutus2D terms
list of common Brutus2D mistakes
Learning to load images in Brutus2D is the first step to making 2D games with Brutus2D.
How to Load and Display an Image in Brutus2D
Start up B2D
Start up Brutus2D.
Create a New File
Make a new...
This page is recommended for cleanup.
Math in Brutus2D is similar to every other programming language. However, it also has a Math object.
Random Numbers
Generate a Random Number
Notes
Solve...
Members:
Moderators
Admins
This page is for documentation pages that do not yet fit into any of the larger documentation categories.
Dim - create a variable
Const - Define a constant
Include - include another source...
This page is reserved for old Brutus2D tutorials.
Basic OOP Tutorial I
Basic OOP Tutorial II
Brutus2D Console minimum
Getting Started with Brutus2D (original)
Introduction to Brutus2D...
( Brutus2D 1.7 )
mouse.AnyButton - check if any mouse button is pressed
Description
pressed = mouse.AnyButton
pressed - true or false
mouse.AnyButton checks to see if any mouse button is pressed....
( Brutus2D 1.7 )
mouse.Dx - returns change in x position of the mouse since last call
Description
xmov = mouse.Dx
xmov - change in pixels in x direction
mouse.Dx returns the change in mouse X...
( Brutus2D 1.7 )
mouse.Dy - returns change in y position of the mouse since last call
Description
ymov = mouse.Dy
ymov - change in pixels in y direction
mouse.Dy returns the change in mouse Y...
( Brutus2D 1.7 )
mouse.Dz - returns change in the mouse wheel since last call
Description
wheel = mouse.Dz
wheel - change in mouse wheel
mouse.Dz returns the change in the mouse wheel since the...
This mouse fix is intended to replace the mouse object provided by Brutus2D. It includes all the properties and methods available in the original object while addressing these issues found in the...
( Brutus2D 1.7 )
mouse.Hide - hide the mouse cursor
Description
mouse.Hide
no parameters or return value
mouse.Hide hides the mouse cursor when ever the cursor is inside your game window. You can...
( Brutus2D 1.7 )
mouse.Initialize - start the mouse object
Description
mouse.Initialize
no parameters or return value
mouse.Initialize starts the mouse object and makes the methods of the mouse...
( Brutus2D 1.7 )
mouse.LeftButton - check if the left mouse button is pressed
Description
pressed = mouse.LeftButton
pressed - true or false
mouse.LeftButton checks to see if the player is...
( Brutus2D 1.7 )
mouse.MiddleButton - check if middle mouse button is pressed
Description
pressed = mouse.MiddleButton
pressed - true or false
mouse.MiddleButton checks to see if the player is...
The mouse object of Brutus2D is an object that contains useful functions for manipulating and reading the mouse.
Initialization
mouse.Initialize - start the mouse object
mouse.Terminate - kill the...
( Brutus2D 1.7 )
mouse.RightButton - check if the right mouse button is pressed
Description
pressed = mouse.RightButton
pressed - true or false
mouse.RightButton checks to see if the player is...
( Brutus2D 1.7 )
mouse.SetPosXY - set position of mouse cursor
Description
mouse.SetPosXY xpos, ypos
xpos - the x position of the mouse cursor
ypos - the y position of the mouse...
( Brutus2D 1.7 )
mouse.Show - Make the mouse cursor visible
Description
mouse.Show
no parameters or return value
mouse.Show makes the mouse cursor visible after it has been hidden using...
( Brutus2D ??? )
mouse.Terminate - terminate the mouse object
Description
mouse.Terminate
no parameters or return value
mouse.Terminate shuts down the mouse object and cleans up any memory that...
( Brutus2D 1.7 )
mouse.Wait - halts program until mouse button is pressed
Description
mouse.Wait
no parameter or return value
mouse.Wait halts your game until a mouse button is pressed. Note that...
( Brutus2D 1.7 )
mouse.X - returns x position of the mouse
Description
xpos = mouse.X
xpos - the x position of the mouse cursor
mouse.X returns the X position of the mouse. 0 is the left edge of...
( Brutus2D 1.7 )
mouse.Y - returns y position of the mouse
Description
ypos = mouse.Y
ypos - the y position of the mouse cursor
mouse.Y returns the Y position of the mouse. 0 is the top edge of...
This page is recommended for cleanup.
This page is for general movement. For movement dealing with player control, see Player Control
Complex Movement
Make one Game Object Orbit Another
Make a...
This tutorial will teach you how to move around images in Brutus2D. It assumes you already know how to load, set the transparency color of, and display images. If you don't, you should read...
The built-in objects are the heart and soul of Brutus2D, without them, you can't do anything.
BMath object (Full Version Only) - useful for performing math related to 2D games and generating...
' One-Half Whack
' One-Half Whack is a stupid game where you go toe to toe with a slime.
' The name of the game is revealing because you only have 50-50 chance
' at beating the slime. This game...
How to Open the Console Window in Brutus2D Tutorial
This short tutorial will teach you how to open (and close) the Console window. This tutorial is a good choice to be the first tutorial you read...
This page is recommended for cleanup.
Mathematical Operators
Assignment ( = )
gold = 50
Assigns the value 50 to the variable gold.
Addition ( + )
gold = gold + 20
Adds 20 to the value of...
Option Explicit
( Brutus2D 1.6, 1.7 )
Option Explicit - force the explicit declaration of variables.
Description
Option Explicit
Option Explicit forces the explicit declaration of variables. This...
These pages have been recommended for cleanup. They should be deleted or integrated into another page.
Each page has a comments module for discussion of what to do with that page.
Pages Marked for...
Player Control can be through the keyboard, the mouse, or a joystick (or gamepad) attached to the player's computer. Each one is managed by it's corresponding built-in objects : the keyboard...
Contents | A-Z Index
Brutus2D Wiki Contents
There are two ways to find what you are looking for on Brutus2D Wiki Complete — by searching or browsing.
You can search by using the search box in...
Contents | A-Z Index
Randomize
( Brutus2D 1.6, 1.7)
Randomize - set the random seed.
Description
Randomize
Randomize sets the random seed. It should be called before any function that generates a random number.
Related...
Unfinished stuff :
Create a Game Window
Still in VBScript :
Display a Background Image
Fade the Game Window to a Color
Load and Display an Image
Not...
The Brutus2D SFX object is an object that contains useful methods for creating sound effects by playing midi tones.
Initialization
SFX.Initialize - initialize the SFX object.
SFX.Terminate -...
Brutus2D Wiki
Recent Changes
Community
Forum
Recent Posts
Core Programming
Graphics
Player Control
Tutorials
Source Code
FAQs
Wiki Links
What is a Wiki Site?
How to edit pages?
How to join...
This page holds general "stock" images.
This is a FAQ about loading, playing, and looping sound and music in Brutus2D.
Sound Formats
What kind of sound formats are supported by Brutus2D?
Brutus2D supports these sound formats...
( Brutus2D 1.6, 1.7 )
sound.Initialize - start the sound object
Description
sound.Initialize
sound.Initialize starts the sound object so that it's methods can be used. No methods of the sound...
( Brutus2D 1.6, 1.7 )
sound.LoadWav - load a .wav file
Description
index = sound.LoadWav ( soundFile )
index = variable to hold the index of the loaded sound
soundFile = sound to be...
The Brutus2D Sound object is used to load and play .wav files. It is most often used to play short sound effects.
Initialization
sound.Initialize - start the sound object
sound.Terminate - kill...
( Brutus2D 1.6, 1.7 )
sound.PlayWav - play a loaded .wav file
Description
sound.PlayWav sound
sound - sound to play
sound.PlayWav plays a .wav file. Once it has begun playing it will continue...
( Brutus2D 1.6, 1.7 )
sound.SetLoopPlay - set a sound to loop (or not)
Description
sound.SetLoopPlay index, loop
index - the variable containing the sound index
loop - whether to loop or not,...
( Brutus2D 1.6, 1.7 )
sound.Terminate - terminate the sound object
Description
sound.Terminate
sound.Terminate terminates (shuts down) the sound object and cleans up any mess it may have made while...
Physics
Ball Simulator - throw a ball with the mouse - by u9
A.I
Avoidance A.I. Demo by u9
Games
Hunter - a graphical demo - by u9
One-Half Whack
The Great Brutus2D Oracle
Input
GameMouse...
Description
Instructions
Source Code
Related Pages
Backlinks
These pages link back to this one. You may find them helpful.
module "forum/ForumCommentsModule" title%3D%22Discuss%22
This article is a stub. You can help us improve Brutus2D Wiki Complete by expanding it.
( Brutus2D 1.7 )
system.FileAppend - write data to the end of a file
Description
system.FileAppend filename , textToWrite
filename - name of file to append to.
textToWrite - text to be...
( Brutus2D 1.7 )
system.FileDelete() - delete a file
Syntax
success = system.FileDelete( filename )
filename - name of file to delete
success - 0 if function fails
Description
system.FileDelete...
( Brutus2D 1.7 )
system.FileExists() - returns 0 or 1 to show if a certain file exists or not
Syntax
bool = system.FileExists( filename )
bool - 1 or 0 if file exists or not
filename - name of...
( Brutus2D 1.5.x, 1.6, 1.7 )
system.FileRead() - read data from a file
Syntax
fileContents = system.FileRead ( filename )
fileContents - the entire contents of the file
filename - name of file to...
( Brutus2D 1.7 )
system.FileSize() - returns the size of a file
Description
size = system.FileSize( filename )
filename - file to return size of
size - the size of the file
system.FileSize()...
( Brutus2D 1.7 )
system.FileWrite - write data to the end of a file
Description
system.FileWrite( filename , textToWrite)
filename - name of file to write to.
textToWrite - text to be in the text...
( Brutus2D 1.7 )
system.folderCreate - Creates a folder
Description
success = system.folderCreate( folderName )
folderName - name of folder to create.
success - 0 if creating folder...
( Brutus2D 1.7 )
system.FolderDelete() - Deletes a folder
Description
success = system.FolderDelete( folderName )
folderName - Deletes a folder with that name.
success - 0 if it...
( Brutus2D 1.7 )
system.FolderExists - Returns 0 or 1
Description
exists = system.FolderExists( folderName )
folderName - Folder to check if exists.
exists - 1 if folder...
The Brutus2D system object contains methods useful for misc system related tasks. Unlike most other Brutus2D objects, the system object does not have to be initialized.
File...
system.Pause
( Brutus2D 1.5.x, 1.6, 1.7 )
system.Pause - pause the game
Description
system.Pause ms
ms - milliseconds
system.Pause pauses a Brutus2D game for a number of milliseconds. It also has...
No matter what kind of game you want to make with Brutus2D, you will always need text. For a text game, that's all you have. For a 2D RPG, you will need to manipulate text for character dialog,...
Even though you are going to be making graphical 2D games, displaying text is important. You will be displaying text in order to display the score of the game or a character name. In RPGs, you'll...
This page is recommended for cleanup.
Programming text games is a great way to get your feet wet in game programming. Programming text games allows you to learn the fundamentals of game...
' The Great Brutus2D Oracle is a quick example of an oracle game.
' It randomly picks from 10 answers.
randomize
dim question
dim answers(10)
dim randex
answers(1) = "It is...
( Brutus2D 1.7 )
Timer() - returns the number of seconds since midnight
Description
t = Timer()
t - seconds passed since midnight
Timer() returns the number of seconds since midnight as a...
( Brutus2D all versions? )
timers.AppTime() - returns the current time of the timer
Description
t = timers.AppTime( index )
index - the index of the timer
t - time elapsed on this...
( Brutus2D all versions? )
timers.Create() - creates a new high-resolution timer
Description
index = timers.Create()
index - the index of the newly created timer
timers.Create() creates a new...
( Brutus2D all versions? )
timers.Hold - pauses a timer
Description
timers.Hold index
index - the index of the timer
timers.Hold pauses a timer. index is the index of the timer as returned by...
( Brutus2D all? )
timers.Initialize - initialize the timers object
Description
timers.Initialize
no parameter or return value
timers.Initialize starts up the timers object and prepares it for...
The timers object of Brutus2D provides the ability to create up to 10 high-resolution timers. The timers measure units in seconds. It is useful for creating game timers. Notice that when you do...
( Brutus2D all versions? )
timers.Reset - resets a timer
Description
timers.Reset index
index - the index of the timer
timers.Reset resets a timer. It does not matter if the timer has been paused...
( Brutus2D ??? )
timers.SplitTime() - returns the elapsed time since last call
Description
t = timers.SplitTime( index )
index - the index of the timer
t - time elapsed since last...
( Brutus2D all versions? )
timers.Start - starts a paused timer
Description
timers.Start index
index - the index of the timer
timers.Start starts a timer that has been paused with timers.Hold....
( Brutus2D all versions? )
timers.SysTime() - returns the time elapsed since Windows was started
Description
t = timers.SysTime()
t - time passed since windows booted
timers.SysTime() returns the...
Timing tutorial : Moving from fixed to dynamic FPS
This tutorial will teach you how to keep your game-simulations running at the same speed across different hardware. The tutorial is based on...
edit this page
edit sections
history
talk
Straight to 2D
This tutorial series is being started as a re-write of previous tutorials so that we can make a bit more progress in 2D with Brutus2D tutorials.
Brutus2D Minimum - the minimum you...
Variables are essential to learn in order to make the most simple games. This tutorial is a primer on how Brutus2D handles variables.
Variables in Brutus2D Tutorial
A variable is like a box. The...
According to Wikipedia, the world largest wiki site:
A Wiki ([ˈwiː.kiː] <wee-kee> or [ˈwɪ.kiː] <wick-ey>) is a type of website that allows users to add, remove, or otherwise edit...
In this tutorial, you will learn about basic input, output, and variables. Yes, you will also learn how to make a computer insult people as well.
Input, output, and variables are essential to game...
While - Wend is a while loop. While Y is true do X
Here is an example :
console.Initialize
Dim counter
While counter <> 10
counter = counter+1
console.WriteLine...
This page exists to help the moderators and admins of Game Maker Wiki Complete.
Community Portal
System: Recent Changes
Wiki: Village Pump
Wiki: Pages
Help Pages
No help pages. Uncomment...
Brutus2D Official Website
Brutus2D Official Forum
Matthew's Wiki - includes some Brutus2D stuff.
This page exists for the discussion of important issues regarding Brutus2D Wiki Complete.
VBScript and JScript
What do you think we should do about the traditional VBScript / JScript problem? —...