Log In  

Cart [#fillpatdraw_02-3#] | Code | 2019-01-07 | License: CC4-BY-NC-SA | Embed
1

FillPatDraw FullColor version

This cart is tool that export code for drawing with FILLP() and RECTFILL().
The Exported data can Execute that using without Sprite sheet.

Rectfill pattern animation

FILLP DRAW (2color version)

Controlls

Sprite sheet view

  • Mouse Left Drag and Click
    1 Select the rectangle to be the source of the delimited block.
    2 Select the length of block from start to end.
    3 Click Export Button for Confirm and Enter the export file name.
    In some cases there is a waiting time of 30 seconds or more.

  • Right Click
    Prev select mode.

  • Tab key
    Open the Menu Window.

Menu

  • PLAY Button
    Start Pattern Draw Preview

  • SAVE Button
    SAVE PNG file and Attach Cart data

  • LOAD Button
    LOAD PNG file and Attach Cart data

  • CLEAR!! Button
    CLEAR Sprite sheet(not Attach Cart data)

Pattern Draw Preview

  • Space key
    Stop and Start the Animation.
  • Left Click
    Step to Next BlockID.
  • Right Click
    Prev to Back BlockID.
  • Tab key
    Return The Menu Window.

How to use the exported code

That code include followings.

  • BlockInfo FillPatternID data
  • draw function

and add your code.

To execute it add the following code.

fillpat.draw(BlockID,x,y)
  • BlockID : Number in Selected Sprite sheet view mode.(start 1)
  • x,y : draw position.(It requires a multiple of 4. and 0)
  • Return value: If ID not found then TRUE else FALSE.

How to add data

That can add to the export data in the following way.

fillpat={cpi=
[[
datablock1
(add datablock2)
(add datablock3)
]]

Draw Sequence

UPDATE

  • rev3: Tuning Encode and Draw performance.
  • rev2: Remove debug code
  • rev1: Fixed can't return on Tabkey
P#60621 2019-01-06 15:29 ( Edited 2019-01-07 14:11)


[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-09-22 12:17 | 0.015s | 4194k | Q:21