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

Camera operator #31

Closed
KochkinBochkin opened this issue Jan 31, 2017 · 12 comments
Closed

Camera operator #31

KochkinBochkin opened this issue Jan 31, 2017 · 12 comments
Assignees
Labels
enhancement Improvement of existing feature or adding something new

Comments

@KochkinBochkin
Copy link

Maybe implemented camera operator for a smooth scrolling like as PICO-8?. If the camera operator is not specified in the user program(script), use the only map operator for backward compatibility.

@nesbox
Copy link
Owner

nesbox commented Jan 31, 2017

camera method sets offset for all drawing operations in pico8 and you can use map api in TIC to make smooth scrolling
so, I'm not sure because you can do all these things with the current API

@KochkinBochkin
Copy link
Author

Thank you, it worked, I tried to use additional parameters in MAP method.

@nesbox
Copy link
Owner

nesbox commented Jan 31, 2017

great :)

@nesbox nesbox closed this as completed Jan 31, 2017
@HomineLudens
Copy link
Collaborator

camera could be useful when you need to shake the full screen, both background and player/enemy sprites I mean. But I'm not sure if it fit well with the current API. What happen at the map borders?

@nesbox
Copy link
Owner

nesbox commented Feb 1, 2017

@effer you're right it could be useful for screen shaking and it will fit current API without problems I think.
If you worry about unpainted map borders during shaking just draw map with bigger area to avoid it.

@nesbox
Copy link
Owner

nesbox commented Feb 1, 2017

new task:
add camera [x y] api

@nesbox nesbox reopened this Feb 1, 2017
@nesbox nesbox self-assigned this Feb 1, 2017
@nesbox nesbox added the enhancement Improvement of existing feature or adding something new label Feb 1, 2017
@HomineLudens
Copy link
Collaborator

I'll do, but have the map editor fit exactly one screen for section was so cute.
I'll make a border, or something like that.

@nesbox
Copy link
Owner

nesbox commented Feb 1, 2017

I have an idea about CAMERA function, what if we'll shake entire screen buffer, it will save us from the 'map border' problem. Also it will be better for performance (we don't need to calculate offset on every draw operation)

@HomineLudens
Copy link
Collaborator

So is how I thought you'd done. You could also zoom in/out. But that will be a little too much.. is't it?

@nesbox
Copy link
Owner

nesbox commented Feb 1, 2017

zooming is a bit much I think :)
And we should give it another name, maybe 'shake [x y]'

@HomineLudens
Copy link
Collaborator

Totally agree.

@nesbox
Copy link
Owner

nesbox commented Feb 1, 2017

created new issue #33
close then

@nesbox nesbox closed this as completed Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing feature or adding something new
Projects
None yet
Development

No branches or pull requests

3 participants