![Page 1: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/1.jpg)
Torque Script IDE plug-in for the Eclipse Platform
Team: Matt Cummings and Steven Defriese
Mentor: Dr. William Harrison
![Page 2: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/2.jpg)
What is Torque Script?
The scripting language the controls the Torque Game Engine.
The Torque Game Engine is a general purpose game engine developed by Garage Games.
Cheap licensing fees, $100 for all the source code, non-commercial
![Page 3: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/3.jpg)
Types of games that can be made…
First Person Shooters Racing Simulation RPG Action And others
![Page 4: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/4.jpg)
Structure of Torque Script
A procedural, script language with C-like syntax.
Emphasis on simplicity, aimed towards game engines.
All the expensive graphics, audio, physics, etc. calculations are handled by the game engine (written in C++)
![Page 5: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/5.jpg)
Some of the things Torque Script controls in the engine
scoring managing players defining player and vehicle
behavior controlling GUI interfaces control physics settings
![Page 6: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/6.jpg)
In-Game Screenshot
![Page 7: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/7.jpg)
In-Game Screenshot
![Page 8: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/8.jpg)
In-Game Screenshot
![Page 9: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/9.jpg)
![Page 10: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/10.jpg)
An example of a player code block with physics settings datablock PlayerData(HumanMaleAvatar) { …
className = Avatar; shapeFile = "~/player.dts"; cameraMaxDist = 4;
mass = 100; drag = 0.1; maxdrag = 0.5; density = 10; maxDamage = 100; maxEnergy = 100;
runForce = 4000; // 50 * 90; …
jumpForce = 1000; // 10 * 90;
… };
![Page 11: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/11.jpg)
More Code… function ParseArgs() //----------------------------------------------------------------------------- // handle the command line arguments // // This is called from common code. //----------------------------------------------------------------------------- { for($i = 1; $i < $Game::argc ; $i++) { $currentarg = $Game::argv[$i]; $nextArgument = $Game::argv[$i+1]; $nextArgExists = $Game::argc-$i > 1; $logModeEnabled = false; switch$($currentarg) { case "-?": $usageFlag = true; $argumentFlag[$i] = true; case "-h": $usageFlag = true; $argumentFlag[$i] = true; } } }
![Page 12: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/12.jpg)
Which platform to develop our Torque Script IDE on?
Developing an IDE from scratch takes alot of time just developing the UI components.
Answer: develop an IDE on top of a robust platform to allow us to focus on the IDE layout and functionality.
We chose the Eclipse platform
![Page 13: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/13.jpg)
Information about the Eclipse Platform
An open-source IDE with various development tools integrated within
Universal IDE Supports development of plug-ins Free!
![Page 14: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/14.jpg)
Eclipse Platform
![Page 15: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/15.jpg)
Eclipse Interface
![Page 16: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/16.jpg)
Structure of Eclipse Interface
![Page 17: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/17.jpg)
Java Features in Eclipse
Syntax highlighting Code collapsing Code auto-completion Code hints Code generating tools Debugging
![Page 18: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/18.jpg)
Syntax highlighting
•Keywords•Comments•Etc.
![Page 19: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/19.jpg)
Code collapsing
main is collapsed Hover mouse over main
![Page 20: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/20.jpg)
Code Auto-Completion
With system calls:
![Page 21: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/21.jpg)
Code Auto-Completion
With user defined variables and methods:
![Page 22: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/22.jpg)
Wizard to Generate Code
Java class wizard:
![Page 23: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/23.jpg)
The Generated Code
Code stubs:
![Page 24: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/24.jpg)
Debugging
![Page 25: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/25.jpg)
Debugging cont.
![Page 26: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/26.jpg)
Our objective
Build a plug-in for the Eclipse platform that enables a programmer to code, run, test, and debug their code.
One complete package that is easy to install, given to us for free by being able to distribute a plug-in file as one binary file.
![Page 27: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/27.jpg)
Important Features
Syntax highlighting Code collapse Function lists IntelliSense-like code assistance Test runs Module testing Debugging
![Page 28: Torque Script IDE plug-in for the Eclipse Platform](https://reader035.vdocuments.us/reader035/viewer/2022062321/56813d63550346895da73859/html5/thumbnails/28.jpg)
Questions?
?