Log In  

@shiftalow

Follow
Follow

I like pixeled graphics and chiptune sound game.
Make HTML5 game now.
http://bitchunk.net
(Japanese)

SALAHACHIDER
by shiftalow

Cart [#piduzohazo-0#] | Code | 2019-04-15 | License: CC4-BY-NC-SA | Embed
3

Happy Update PICO-8!

U or D: Change line length
L or R: Change line width

X : Sub line
Z : Add line
X + Z : Reset the center sprite

P#63532 2019-04-15 14:37

Cart [#salahachider-1#] | Code | 2019-02-03 | No License | Embed
1

The STG like "LIFE FORCE".
Japanese title is "沙羅曼蛇".

I refferred to Family computer ver.

Main game is WIP.

  • ver 0.02: Can shot the bullet. Power up, The players remaining number UI.
  • ver 0.01: Release.
P#61434 2019-02-01 15:17 ( Edited 2019-02-03 14:45)

Cart [#vdmplua-0#] | Code | 2019-01-08 | License: CC4-BY-NC-SA | Embed

Print the inside Table Value.

vdmp({
 1
,str="string"
,obj={"o","b","j","e","c","t"}
,{{{}}}
,{nil,true,false,function()end}
})

Symbol summary

#  Number
$  String
%  Boolean
*  Function(output only the "[Function]")
!  nil(Is not printed because Skip nil in table pairs())
{} Table

"VDMP" execute then there are followings.

Stop the routine.
Clear Screen.
Display the contents of the specified table.
The displayed order is not fixed.
The overflowed text is not displayed.

P#60679 2019-01-08 14:10 ( Edited 2019-01-08 14:40)

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)

Cart [#fillpatanm1-0#] | Code | 2019-01-01 | No License | Embed
1

the full color "fillp + rectfill" drawing.

about fill pattern drawing old format follow.
URL FILLPDRAW
that's can only 2 color in cell of 4x4 size.

P#60477 2019-01-01 07:15 ( Edited 2019-01-01 10:12)

I learned make transparent with fillp() drawing.
and want remake this.

Cart [#fillpdraw-0#] | Code | 2018-12-24 | No License | Embed
3

FILLP draw

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

Controlls

  • Canvas area
    -- Left Click : draw pixel
    -- Right Click: color pick
    -- Space key : panning (space hold and mouse drag)
    -- Z : undo
    -- X : redo

  • Palette area
    -- Left Click : color pick
    -- Right Click: color pick

  • Sprite sheet area
    -- Left Click : move the view along the grid
    -- E,S,D,F : Slide Sprite sheet data

  • SAVE Button
    -- SAVE PNG file and Attach Cart data

  • LOAD Button
    -- LOAD PNG file and Attach Cart data

  • EXPORT Button
    -- Export P8L text file that the Drawing code

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

How to use the exported code

That code include followings.

  • ColorData-FillPatternID data
  • FillPattern Library
  • draw function

and add your code.

To execute it add the following code.

fillpat.draw(BlockID,x,y)
  • BlockID: 32x32pixel delimited ID in sprite sheet
  • x,y : draw position.(It requires a multiple of 4. and 0)

How to add data

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

fillpat={cpi=
[[
datablock1-1
.
.
.
datablock1-12
(add datablock2)
(add datablock3)
]]
,pat=
[[
FillpatData For Datablock1
(addFillpatData For Datablock2)
(addFillpatData For Datablock3)
]]
P#60312 2018-12-24 14:41 ( Edited 2018-12-25 14:47)

Cart [#konsairi_a-1#] | Code | 2019-03-17 | No License | Embed
3

I expanded game with multicart.

MANUAL

UPDATED

  • Added Title screen
  • Stabled Field(new map format)
  • Background graphics
  • Starting scene
  • Give action
  • NPC (rabitt)
  • POT and Cut the Roots
  • Save a progress

next plan

  • Exploring large field
  • add NPC
  • root action
  • player status

old version


Cart [#konsairib-0#] | Code | 2018-12-13 | No License | Embed
3

It was passed usage limit that the token size and compressed size.

P#59957 2018-12-13 12:42 ( Edited 2019-03-22 00:45)

Cart [#split_string-0#] | Code | 2018-12-09 | License: CC4-BY-NC-SA | Embed

SPLIT_STRING is make a table with using a delimiter from string value.
There output the all value become string value in table.

split(string, delimiter, delimiter-2d)

a=split('1 a 20 split_test --------',' ')

for v in all(a) do
print(v)
end

a=split('1 2 3;a b c;this is split',' ',';')
for b in all(a) do
    for v in all(b) do
     print(v)
    end
end
P#59851 2018-12-09 09:45 ( Edited 2018-12-09 09:47)

Add URL in new bookmark this script.
and Click the bookmark on cart page!

[[New ver0.2 UPDATE 2018-12-20 ]]

  • Appended -x-button of secondary.
javascript:d=document;a=d.createElement('script');a.setAttribute('type','module');a.textContent="import * as keycont from 'https://oshiimizunohuta.github.io/chunklekit/keycontroll.js';let kct=keycont.CKSETUPKEYS();kct.setKey('<', keycont.convertGamePadKey(0,'1'));let btns=['left','right','up','down','>','<','space','select'];keycont.setKeySetCheck(function(){let st=kct.getState(btns);btns.forEach(function(a,i){if(st[a]&kct.getTrig('select')&(a=='select')){btns.splice(4,0,btns.splice(5,1)[0]);return;}press_pico8_button(0,i,st[a]?1:0);})})";d.body.appendChild(a);

(It's loading from My Javascript code in github.)

Controller mapping

[[Old ver0.1]]

javascript:d=document;a=d.createElement('script');a.setAttribute('type','module');a.textContent="import * as keycont from 'https://oshiimizunohuta.github.io/chunklekit/keycontroll.js';let kct=keycont.CKSETUPKEYS();let btns=['left','right','up','down','>','<','space','select'];keycont.setKeySetCheck(function(){let st=kct.getState(btns);btns.forEach(function(a,i){if(st[a]&kct.getTrig('select')&(a=='select')){btns.splice(4,0,btns.splice(5,1)[0]);return;}press_pico8_button(0,i,st[a]?1:0);})})";d.body.appendChild(a);

(It's loading from My Javascript code in github.)

Controller mapping

P#59615 2018-12-03 16:43 ( Edited 2019-01-08 06:07)

Cart [#mojosafona-0#] | Code | 2018-12-01 | License: CC4-BY-NC-SA | Embed
3

TVNOISE

Toggle noise screen and title screen with Button x.

P#59535 2018-12-01 15:09

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-09-15 17:06 | 0.177s | 4194k | Q:156