TASEmulators / TASEmulators/BizHawk

Lua request: Canvas layers

Open
#1,322 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

re: Lua API/scripting Request: Feature/Enhancement
Dominant language
C#
Stars
2.8k
Forks
468
PR merge metrics
No merged PRs in 30d

Description

Would it be possible to have a lua function that could save the drawn image into memory and store it into a "layer" that then is loaded instead of calling thousands of DrawSomething() functions. The "layers" should have parameters to position and scale them.

My problem is that I want to make level maps, where the map collision is static, but it needs to redraw the entire map every frame, because I want to display objects on top of it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Lua drawing API around the DrawSomething() calls mentioned in the issue. Determine the scope for storing drawn images as reusable layers with position and scale parameters, and define how success would be measured for redrawing static level maps without thousands of calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, lua
Domain
computer-graphics, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.