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

Simpler Game Example #20

Open
quantumproducer opened this issue Mar 11, 2017 · 10 comments
Open

Simpler Game Example #20

quantumproducer opened this issue Mar 11, 2017 · 10 comments

Comments

@quantumproducer
Copy link

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.

@essen
Copy link
Member

essen commented Mar 11, 2017

Well neither examples have input and I'm not sure I added the functions for that yet, but yes you are correct. :-)

@quantumproducer
Copy link
Author

@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)

@essen
Copy link
Member

essen commented Mar 14, 2017

I will soon, I want to experiment with short games for my 1 year old.

@quantumproducer
Copy link
Author

Cool! Lucky kid to learn Erlang so early, good work :)

@quantumproducer
Copy link
Author

Keyboard integration is the biggest feature for this. With keyboard + screen, you can play a game!

@quantumproducer
Copy link
Author

@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

@essen
Copy link
Member

essen commented Apr 10, 2017

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.

@quantumproducer
Copy link
Author

@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.

@quantumproducer
Copy link
Author

@essen Pong : Mouse, Blastox: keyboard (Both from Erlworld)

@essen
Copy link
Member

essen commented Aug 18, 2017

Interesting, thanks. I'll just have to find the time... :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants