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

Add Mouse and Keyboard support to the Canvas #76

Merged
merged 12 commits into from
Jan 21, 2023

Conversation

BlazingTwist
Copy link
Contributor

I wasn't super sure where to insert the documentation, so I've just created a separate md file. canvas_input.md

Here is a minimal (ish) demo showing various interactive UI elements. (My Aya code quality is definitely suboptimal, I am very open for feedback)
canvasInputDemo.zip

More Demos

I've also "battle-tested" this during a CodeJam, if you're interested.

Interactive Fluid Simulation

fluidSim

Lock-Picking Mini Game

lockpick

@nick-paul
Copy link
Collaborator

Adding keyboard+mouse input is something I've been wanting to do for a little while but never got around to it. This is a great implementation and the demos are very impressive. Thanks for working on these changes!

I like the functional style you used for many of the instructions. I need to brush up on those java features

Since there are no breaking changes, I'll probably release these soon in 0.3.2 (rather than later in 0.4.x)

Also, small note since I ran into an error when running the code on linux: for the import statements you should be able to use import "scenes.mode_select" instead of "scenes\\mode_select" importlib.import. The "dot" version should work on all platforms.

@nick-paul nick-paul merged commit df65886 into aya-lang:master Jan 21, 2023
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

Successfully merging this pull request may close these issues.

2 participants