8000 basic tline support · Issue #8 · pancelor/p8x8 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

basic tline support #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pancelor opened this issue Mar 29, 2024 · 1 comment
Open

basic tline support #8

pancelor opened this issue Mar 29, 2024 · 1 comment

Comments

@pancelor
Copy link
Owner

If you're using tline() I suspect you'll have other compatibility issues with p8x8, but we should support basic tline usage if it's simple to do.

It probably isn't too bad, but I haven't looked into it at all. see baked/polyfill/map.lua for the stub

@pancelor pancelor added the help wanted Extra attention is needed label Mar 30, 2024
@pancelor
Copy link
Owner Author

I looked into it a bit. #mode7_demo is nice and understandable

https://www.lexaloffle.com/dl/docs/picotron_manual.html

tline3d(src, x0, y0, x1, y1, u0, v0, u1, v1, w0, w1, [flags])

Draw a textured line from (x0,y0) to (x1,y1), sampling colour values from userdata src. When src is type u8, it is considered to be a single texture image, and the coordinates are in pixels. When src is type i16 it is considered to be a map, and coordinates are in tiles.

the main blocker is a picotron bug where tline3d(mapud,...) only works if the map tiles are exactly 16x16

@pancelor pancelor removed the help wanted Extra attention is needed label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0