| Blockland Forums > Modification Help |
| Brick++ (Brick Language) |
| (1/8) > >> |
| Brian Smithers:
Project Simple (not really) project where a user learns a form of "language" to "program" bricks instead of eventing them with click and pick. The project would first - remove the wrench. The wrench would be replaced by adding a tool called "BrickModder." The BrickModder tool is used to program bricks. When you are finished programming the brick, you simply press "Save" and the brick will be saved. Below I will explain my idea of the syntax of the language. Syntax A hello world program would look something like this: self.activate(brick,player) [ var name, blid name = player.name blid = player.bl_id player.centerPrint("You are " > name < " BLID " > blid < "\n"-3) ] This simple program would have the name of the player who activated the brick have a center print of "You are YourNameHere blid YourBLIDHere" for 3 seconds. Simple, eh? Since I really haven't had much work done on the structure of the language, I haven't gotten much done on the actual code of the language. I just changed a few things around. If a player can learn this, if he changed his mind set a bit, he could easily become a programming for add-ons. Progress Language Interpreter - 0% General Input Methods - 10% - Wrote the onActivate command Client/GUI - 0% Item - 0% Not much is done, though it will take a bit. I will be showcasing the client and beta here. So keep I'll keep you posted. Post what you think about the idea. Ill be posting more ideas on the syntax below. |
| Brian Smithers:
Reserved for Syntax Ideas |
| HellsHero:
Why remove the wrench? It's not only used for events. Isn't this a little over complicated? What makes this better than events? |
| Scout31:
Brackets. It's not programming without them. Also, you use of ; is inconsistent |
| Brian Smithers:
--- Quote from: Scout31 on February 08, 2012, 07:24:49 PM ---Brackets. It's not programming without them. Also, you use of ; is inconsistent --- End quote --- Woops, my mistake |
| Navigation |
| Message Index |
| Next page |