Skip to content
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

BTerm set() with float data point #338

Open
wwwzwbz opened this issue Mar 5, 2023 · 1 comment
Open

BTerm set() with float data point #338

wwwzwbz opened this issue Mar 5, 2023 · 1 comment

Comments

@wwwzwbz
Copy link

wwwzwbz commented Mar 5, 2023

This might be a dump question, I'm new to Rust lang.
I was trying to use ctx.set(X, Y, fg, bg, glyph) to render a tile on my console, but I realized set() only takes int as its X and Y coordinates, which will make my character moves not smoothly enough. I want it to take float data points as its coordinates, is there a good way to work around this?

@ChrisPritchard
Copy link

You want the flexible/fancy console bud. See this example on how to use: https://bfnightly.bracketproductions.com/bracket-lib/ex_bterm.html#flexible

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

2 participants