top of page
LAMP Coding is a very basic coding language being developed by PPTGames only. It's designed to create apps mostly to design them. It is all based on PPTG-EQL and is composed by actions.
​
This Coding Language is still in Experimental phase and can only be used inside the editor (edit and run projects or LAMP Apps).
PPTGames LAMP Coding Editor v1.2
What's new?
In the editor there were made some changes to the design and added new features like change the theme, replace tool. A lot of bugs were also fixed in the editor and in the code compiler. New functions were added: set the line's color and visibility of a shape.
PPTGames LAMP Coding Editor v1.1 [unstable]
What's new?
In the editor weren't made many changes. The code syntax has changed a little bit (actionN=action:function;) among others. New functions were added: set the shadow's transparency, color, blurriness, size and visibility of a shape.
Documentation
Warning: This version of LAMP Coding (1.2 - v3) is no longer supported.
Warning: This Documentation only applies to the version 1.2 (v3) of LAMP Coding.
Base Syntax
Header (mandatory)
file-type='LAMPAPP'
code-lang='lampcoding-vVERSION-NUMBER'
am_amount=AMOUNT-OF-ACTIONS;
# "am" means action macro
Action
actionACTION-NUMBER=ACTION:FUNCTION; [aACTION-NUMBERpv:PROPERTY=VALUE]
# "pv" means property value
Functions and others
# glossary
VERSION-NUMBER - Number of the LAMP Coding version to execute (always run compatible editors and LAMP Readers)
AMOUNT-OF-ACTIONS - Number of actions you to execute (from top to bottom)
ACTION-NUMBER - Number of the action
PROPERTY - Property of the action
VALUE - Value of the property
SLIDE-NUMBER - Number of the slide
SHAPE-NAME - Name of the shape
SHAPE-TYPE - Shape type (e.g. rect)
SHAPE-HORIZONTAL-POSITION - Left property of the shape
SHAPE-VERTICAL-POSITION - Top property of the shape
SHAPE-WIDTH - Witdh property of the shape
SHAPE-HEIGHT - Height property of the shape
SHAPE-TEXT - Text inside the shape
SHAPE-FILL-COLOR-RED-VALUE - Red value of the shape's fill color
SHAPE-FILL-COLOR-GREEN-VALUE - Green value of the shape's fill color
SHAPE-FILL-COLOR-BLUE-VALUE - Blue value of the shape's fill color
SHAPE-FONT-COLOR-RED-VALUE - Red value of the shape's font color
SHAPE-FONT-COLOR-GREEN-VALUE - Green value of the shape's font color
SHAPE-FONT-COLOR-BLUE-VALUE - Blue value of the shape's font color
SHAPE-FILL-TRANSPARENCY-VALUE - The value of the transparency of the fill of the shape (0,0 to 10,0)
SHAPE-VISIBILITY - Set the visible property of the shape to 0 (false) or true (1)
VARIABLE-NAME - Name fo the variable
VARIABLE-VALUE - Value of the variable
VARIABLE-INDEX - Index of the variable
MESSAGE-BOX-TITLE - Title of the message box window
MESSAGE-BOX-PROMPT - Actual message inside the message box window
SHAPE-SHADOW-TRANSPARENCY-VALUE - The value of the transparency of the shadow of the shape (0,0 to 10,0)
SHAPE-SHADOW-COLOR-RED-VALUE - Red value of the shape's shadow color
SHAPE-SHADOW-COLOR-GREEN-VALUE - Green value of the shape's shadow color
SHAPE-SHADOW-COLOR-BLUE-VALUE - Blue value of the shape's shadow color
SHAPE-SHADOW-BLURRINESS - The blur value of the shape
SHAPE-SHADOW-SIZE - The value of the size of the shape
SHAPE-SHADOW-VISIBILITY - Set the visible property of the shadow of the shape to 0 (false) or true (1)
SHAPE-LINE-COLOR-RED-VALUE - Red value of the shape's line color
SHAPE-LINE-COLOR-GREEN-VALUE - Green value of the shape's line color
SHAPE-LINE-COLOR-BLUE-VALUE - Blue value of the shape's line color
SHAPE-LINE-VISIBILITY - Set the visible property of the shadow of the shape to 0 (false) or true (1)
Slide Navigation
gotonextslide # Navigate to the next slide
gotoprevslide # Navigate to the previous slide
gotoslide; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; # Navigate to a specific slide
Shapes
# Add a new shape
add:shape; aACTION-NUMBERpv:slidenumber=SLIDE-NUMBER; aACTION-NUMBERpv:name=SHAPE-NAME; aACTION-NUMBERpv:type=SHAPE-TYPE; aACTION-NUMBERpv:position_x=SHAPE-HORIZONTAL-POSITION; aACTION-NUMBERpv:position_y=SHAPE-VERTICAL-POSITION; aACTION-NUMBERpv:width=SHAPE-WIDTH; aACTION-NUMBERpv:height=SHAPE-HEIGHT;
# Change text of a shape
set:shape_text; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-TEXT;
# Change fill color of a shape
set:shape_fill_color; aACTION-NUMBERpv:sldnum=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:colorRGB_red=SHAPE-FILL-COLOR-RED-VALUE; aACTION-NUMBERpv:colorRGB_green=SHAPE-FILL-COLOR-GREEN-VALUE; aACTION-NUMBERpv:colorRGB_blue=SHAPE-FILL-COLOR-BLUE-VALUE;
​
# Change fill transparency of a shape
set:shape_fill_transparency; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-TRANSPARENCY-VALUE;
​
# Change font size of a shape
set_shape_font_size; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-TRANSPARENCY-VALUE;
​
# Change font color of a shape
set:shape_font_color; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:colorRGB_red=SHAPE-FONT-COLOR-RED-VALUE; aACTION-NUMBERpv:colorRGB_green=SHAPE-FONT-COLOR-GREEN-VALUE; aACTION-NUMBERpv:colorRGB_blue=SHAPE-FONT-COLOR-BLUE-VALUE;
​
# Change the visibility of a shape
set:shape_visibility; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-VISIBILITY-VALUE;
​
# Change the position of a shape
#Horizontal position
set:shape_position_x; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:_value=SHAPE-HORIZONTAL-POSITION;
​
#Vertical position
set:shape_position_y; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-VERTICAL-POSITION;
# Change the size of a shape
#Width
set:shape_width; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-WIDTH;
​
#Height
set:shape_height; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERppv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-HEIGHT;
​
# Change the shadow of a shape
#Transparency
set:shape_shadow_transparency; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-SHADOW-TRANSPARENCY-VALUE;
​
#Color
set:shape_shadow_color; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERppv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:colorRGB_red=SHAPE-SHADOW-COLOR-RED-VALUE; aACTION-NUMBERpv:colorRGB_green=SHAPE-SHADOW-COLOR-GREEN-VALUE; aACTION-NUMBERpv:colorRGB_blue=SHAPE-SHADOW-COLOR-BLUE-VALUE;
​
#Blur
set:shape_shadow_blur; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-SHADOW-BLURRINESS;
​
#Size
set:shape_shadow_size; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-SHADOW-SIZE;
​
#Visibility
set:shape_shadow_visibility; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-SHADOW-VISIBILITY-VALUE;
​
# Change the line of a shape
#Color
set:shape_line_color; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERppv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:colorRGB_red=SHAPE-LINE-COLOR-RED-VALUE; aACTION-NUMBERpv:colorRGB_green=SHAPE-LINE-COLOR-GREEN-VALUE; aACTION-NUMBERpv:colorRGB_blue=SHAPE-LINE-COLOR-BLUE-VALUE;
​
#Visibility
set:shape_line_visibility; aACTION-NUMBERpv:slide_number=SLIDE-NUMBER; aACTION-NUMBERpv:shape_name=SHAPE-NAME; aACTION-NUMBERpv:value=SHAPE-LINE-VISIBILITY-VALUE;
Misc
# Show a message box
msgbox; aACTION-NUMBERpv:title=MESSAGE-BOX-TITLE; aACTION-NUMBERpv:message=MESSAGE-BOX-PROMPT;
Variables
# Create a new variable
# Store a a new property with a value in the memory (property(varname)=value;)
new:var; aACTION-NUMBERpv:name=VARIABLE-NAME; aACTION-NUMBERpv:value=VARIABLE-VALUE;
​
# Retrieve/Get a variable's value
$varVARIABLE-INDEX(VARIABLE-NAME)
​
# Change the value of a variable
set:var_value; aACTION-NUMBERpv:name=VARIABLE-NAME; aACTION-NUMBERpv:value=VARIABLE-VALUE;
​
​
# System variables
$date # Current system date
$date.year # Current system date year
$date.month # Current system date month
$date.day # Current system date day
$time # Current system time
$time.hour # Current system time hour
$time.min # Current system time minute
$time.sec # Current system time second
$datetime.now # Current system time
$cdir # Current Compiler Directory (path)
​
# Characters
$char(1) $
$char(2) =
$char(3) ;
$char(4) # new line
bottom of page