Contraptions Design Specification

Section 3.7.x : Widgets

By Kenneth Manta

Boom! Kerplunk! Chica Chica Chica!




TODO

Convert all widget X,Y positions to unsigned short ? or make them all a class holding both Warning:Deathscript is horribly broken

Widgets Overview

What do the widgets REALLY do? Each widget should grant the game a new ability that it could not do before.


Generic Widget Properties

Widget Design Patterns

Widget Properties


Widget Signals




Default event responses


Widget Action Patterns




Widget Properties Info

CWidgetProperties
Certain properties of widgets are the same per type of widget. 

Currently Widgets.txt contains the default widget information.
#NewNumber:OldNumber:Rotation:Mass:Text Name:3DS Multiplier:3DS file:Description

"Widget Properties" Design Patterns


Per widget Properties


Global widget Properties



Delayed response of destruction of widgets

Since the existance of a widget has a huge impact on the physics engine. Weather or not a widget is destroyed in a laggy game can drasticly affect if the clients become out of sync.
The destruction of a widget should take about 1/2 a second. Breaking apart graphical effects can occure during this. Since dohickeys dont have any real impact on the game, they may pass though a destroyed widget.



Widgets


Click Here for the widgets in The Ship Game 3.

This section will describe each widget, unique ability, and reason for being added to the game


Command Module

Binds a player to a ship. The ship editor will only permit a control assignment to this if a camera is already placed on the contraption. Responses

Power Source

This allows a player to control a contraption. It represents the computer input. This should have been the only piece that could obtain input from the keyboard/other. Responses

Thruster

Allows a contraption to move. Responses

Widget Launcher: Cocolauncher

A limit on the coconuts launched needs to be created. Responses





Copyright 2004 © Polyart. All rights reserved.
Designed by Kenneth Manta