Presentation is loading. Please wait.

Presentation is loading. Please wait.

Torque Script IDE plug-in for the Eclipse Platform Team: Matt Cummings and Steven Defriese Mentor: Dr. William Harrison.

Similar presentations


Presentation on theme: "Torque Script IDE plug-in for the Eclipse Platform Team: Matt Cummings and Steven Defriese Mentor: Dr. William Harrison."— Presentation transcript:

1 Torque Script IDE plug-in for the Eclipse Platform Team: Matt Cummings and Steven Defriese Mentor: Dr. William Harrison

2 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

3 Types of games that can be made… First Person Shooters Racing Simulation RPG Action And others

4 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++)

5 Some of the things Torque Script controls in the engine scoring managing players defining player and vehicle behavior controlling GUI interfaces control physics settings

6 In-Game Screenshot

7

8

9

10 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; … };

11 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; }

12 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

13 Information about the Eclipse Platform An open-source IDE with various development tools integrated within Universal IDE Supports development of plug-ins Free!

14 Eclipse Platform

15 Eclipse Interface

16 Structure of Eclipse Interface

17 Java Features in Eclipse Syntax highlighting Code collapsing Code auto-completion Code hints Code generating tools Debugging

18 Syntax highlighting Keywords Comments Etc.

19 Code collapsing main is collapsed Hover mouse over main

20 Code Auto-Completion With system calls:

21 Code Auto-Completion With user defined variables and methods:

22 Wizard to Generate Code Java class wizard:

23 The Generated Code Code stubs:

24 Debugging

25 Debugging cont.

26 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.

27 Important Features Syntax highlighting Code collapse Function lists IntelliSense-like code assistance Test runs Module testing Debugging

28 Questions? ?


Download ppt "Torque Script IDE plug-in for the Eclipse Platform Team: Matt Cummings and Steven Defriese Mentor: Dr. William Harrison."

Similar presentations


Ads by Google