-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Simpler Game Example #20
Comments
Well neither examples have input and I'm not sure I added the functions for that yet, but yes you are correct. :-) |
@essen it's an awesome project and I hope you keep working on it! I would like to help but this low level stuff is out of my depth (for now) |
I will soon, I want to experiment with short games for my 1 year old. |
Cool! Lucky kid to learn Erlang so early, good work :) |
Keyboard integration is the biggest feature for this. With keyboard + screen, you can play a game! |
@essen I take input from std_in and display output to the shell here: https://github.com/QuantumProductions/exhume , maybe this cn be applied collecting input in a second thread |
SDL2 has input functions, they just need to be implemented. I'll get around to it in a few weeks when I get time off. |
@essen , https://code.google.com/archive/p/erlworld/ has working mouse input examples. The keyboard example took input but on my machine it was very laggy (kept freezing). Could be a good place to start though. |
@essen Pong : Mouse, Blastox: keyboard (Both from Erlworld) |
Interesting, thanks. I'll just have to find the time... :-( |
The bullet example is impressive but it is difficult to read through the code.
A simpler game example would be
Display a shape on screen
Keyboard to move that shape
And that's it.
The text was updated successfully, but these errors were encountered: