add save and bundle pxl8 with game for standalone game distribution
This commit is contained in:
parent
b1e8525c3e
commit
04d3af11a9
25 changed files with 1173 additions and 346 deletions
|
|
@ -42,6 +42,11 @@ pxl8.create_texture = gfx2d.create_texture
|
|||
pxl8.upload_atlas = gfx2d.upload_atlas
|
||||
pxl8.gfx_color_ramp = gfx2d.color_ramp
|
||||
pxl8.gfx_fade_palette = gfx2d.fade_palette
|
||||
pxl8.gfx_cycle_palette = gfx2d.cycle_palette
|
||||
pxl8.add_palette_cycle = gfx2d.add_palette_cycle
|
||||
pxl8.remove_palette_cycle = gfx2d.remove_palette_cycle
|
||||
pxl8.set_palette_cycle_speed = gfx2d.set_palette_cycle_speed
|
||||
pxl8.clear_palette_cycles = gfx2d.clear_palette_cycles
|
||||
|
||||
pxl8.key_down = input.key_down
|
||||
pxl8.key_pressed = input.key_pressed
|
||||
|
|
|
|||
|
|
@ -82,4 +82,24 @@ function graphics.fade_palette(start, count, amount, target_color)
|
|||
C.pxl8_gfx_fade_palette(core.gfx, start, count, amount, target_color)
|
||||
end
|
||||
|
||||
function graphics.cycle_palette(start, count, step)
|
||||
C.pxl8_gfx_cycle_palette(core.gfx, start, count, step or 1)
|
||||
end
|
||||
|
||||
function graphics.add_palette_cycle(start_index, end_index, speed)
|
||||
return C.pxl8_gfx_add_palette_cycle(core.gfx, start_index, end_index, speed or 1.0)
|
||||
end
|
||||
|
||||
function graphics.remove_palette_cycle(cycle_id)
|
||||
C.pxl8_gfx_remove_palette_cycle(core.gfx, cycle_id)
|
||||
end
|
||||
|
||||
function graphics.set_palette_cycle_speed(cycle_id, speed)
|
||||
C.pxl8_gfx_set_palette_cycle_speed(core.gfx, cycle_id, speed)
|
||||
end
|
||||
|
||||
function graphics.clear_palette_cycles()
|
||||
C.pxl8_gfx_clear_palette_cycles(core.gfx)
|
||||
end
|
||||
|
||||
return graphics
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue