Web
Analytics
Log In  

15

Cart [#35750#] | Copy | Code | 2017-01-15 | Link
15

I_EDITOR is a programming game. The goal is to write simple scripts to reproduce a drawing on screen. The commands used in the scripts move a pointer (“turtle”). The pointer has a pen, which can be up or down. When the pen is down, each move lays a print. There are additional instructions to make calculus, evaluate conditions and call previous declared sequences. The syntax and semantic are organized in language called I_CORE.

Now you can download the manual !

Le manuel en français est disponible.


Try to reproduce the blueprints or play with the sandbox...
I will add a score and more blueprints soon ;-)

In the main menu:
Choose a blueprint or the sandbox (up/down, x)

In the editor:
Choose the command in the first column (up/down, x) or return to the main menu (o)
Change column (left/right)

Change the value in the second colum (x, then left/right to decrease/increase)
Delete instruction in the second colum with (o)

Have a look on i_core thread to have more explanation about the language "I".

I will make a tutorial soon and post a link and additional information here.

Sample

:A 20 FD 90 TR ; :B 1 - # A ?B ; 4 B

CLR : clear
<CP : copy from clipboard
>CP : copy to clipboard

Copy the line below into the clipboard

:a 10 fd 90 tr ; a a a a

Paste in PICO-8, then activate <CP

/!\ WARNING:
Clipboard functions (<CP,>CP) aren't working in HTML exported cartridge.
Copy from notepad (text in the html browser may contain tag or additional characters)

P#34370 2016-12-28 14:06 ( Edited 2017-01-21 10:44)

::

I made a simple tree :)

(a better stop condition would speed it up- it spends too long drawing tiny branches)

P#34390 2016-12-28 18:42

::

Well done, you rock !!!

You can accelerate the rendering process in the M:DRAW method. At the end, change from

   self.vm:step()

to

 i=4
 while i>0 and self.vm:state()!=3 do
   self.vm:step()
   i-=1
 end

where i is the number of steps to do (i=4).

Live edit session with your code:

P#34417 2016-12-29 03:44 ( Edited 2016-12-29 03:46)

::

Regular polygons !!!

Live edit session:

P#34437 2016-12-29 12:41

::

i_editor updated to 1.2

Logical operators added : <, >, =, !
(less than, greater than, equal, not)

360, 90 default values added

abs, cos, sin, sqr (square root) added

P#34465 2016-12-29 17:05

::

i_editor updated to 1.3

Clipboard enabled (<CP, >CP)

P#34513 2016-12-30 12:11

::

i_editor updated to 1.4

. displays result in the drawing (up to 17 lines)

Sample
5 4 + .

P#34584 2016-12-31 05:01 ( Edited 2016-12-31 05:02)

::

i_editor updated to 1.6

it looks like a game now...

You can switch from one blueprint to another. Your programs are saved (until you quit the cartridge).

P#35164 2017-01-07 12:17 ( Edited 2017-01-13 01:27)

::

If you see something strange in the manual (errors, missing words, ...) or if you have ideas about additional content, let me know :-)

P#35798 2017-01-15 16:18

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-08-17 11:33 | 0.231s | 1835k | Q:27