Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075919 Posts in 44152 Topics- by 36120 Members - Latest Member: Royalhandstudios

December 29, 2014, 03:21:48 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)BOSL - a blueprint oriented scripting language for java games.
Pages: [1]
Print
Author Topic: BOSL - a blueprint oriented scripting language for java games.  (Read 1058 times)
TheBreadCat
Level 0
***


View Profile WWW Email
« on: August 06, 2011, 03:00:59 PM »

BOSL is a Blueprint Oriented Scripting Language, designed for java games.
its still in early development.
the idea behind it is that you can program functionality into game objects.
so the Blueprint File -> becomes a Blueprint -> the 'shell' object gets asigned to the Blueprint = MAGIC!
the 'shell' object is basicly just a object with no functionality else than being able to get functionality asign to it through a blueprint.

What does it look like?
well for the first 'generation' im focusing on it getting to work.
so i'll save the syntactic sugar for later Tongue
but it look something like this:
Code:
setField myGlobalVariable "hello world!"
useWorld myWorld

World MyWorld
disableEL Tick
onEvent Init
print myGlobalVariable
add 5 7
addString "5 + 7 = " pop
print(pop)
end
end
really simple(kindy Tongue)
its also semi stack based(there is no return value or user defined method arguments, you use the stack for that)

What I've Done So Far:
- added stack commands
- added print command
- added variable definition and declaration(only global so far)
- added comments
- added basic math commands(add,sub,mul,div,mod,pow)
- added objects and classes
« Last Edit: September 11, 2011, 08:21:25 AM by TheBreadCat » Logged

Twitter: marcoaslak
TheBreadCat
Level 0
***


View Profile WWW Email
« Reply #1 on: September 11, 2011, 08:33:23 AM »

hello i do have a little dilemma:
if you want to do math with a variable and store the result in the used variable it looks like this:
Code:
add myNumber 10 // push(myNumber + 10)
setField myNumber pop // myNumber = pop()
now that kinda sucks to pop the value back in to the variable.
but if i add a 'destination' argument(optinal) i well lose the 'multi add' feature:
Code:
add 1 2 3 4 5 6 7 8 // push(1+2+3+4+5+6+7+8)
so should i make variable math easier or keep the 'multi add' feature?
Logged

Twitter: marcoaslak
skew
Level 0
**


codin flash and flashin code


View Profile Email
« Reply #2 on: September 13, 2011, 03:47:51 AM »

methinks keep multiadd
Logged
TheBreadCat
Level 0
***


View Profile WWW Email
« Reply #3 on: September 18, 2011, 06:56:37 AM »

methinks keep multiadd
thanks for your feedback, and work a little bit on your english.
Logged

Twitter: marcoaslak
drChengele
Level 2
**


if (status = UNDER_ATTACK) launch_nukes();


View Profile Email
« Reply #4 on: September 18, 2011, 08:49:07 AM »

thanks for your feedback, and work a little bit on your english.
Facepalm
Logged

Praetor
Currently working on : tactical battles.
TheBreadCat
Level 0
***


View Profile WWW Email
« Reply #5 on: September 26, 2011, 11:47:27 AM »

thanks for your feedback, and work a little bit on your english.
Facepalm
let me guess, i screwed up my grammar...
Logged

Twitter: marcoaslak
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic