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

use of elm/random ... #7

Open
eimfach opened this issue Sep 26, 2019 · 3 comments
Open

use of elm/random ... #7

eimfach opened this issue Sep 26, 2019 · 3 comments

Comments

@eimfach
Copy link

@eimfach eimfach commented Sep 26, 2019

... For placing shapes randomly, I thought that would be a great addition to this library !

@evancz

This comment has been minimized.

Copy link
Owner

@evancz evancz commented Oct 3, 2019

I did not have randomness in mind when I created this library. I think the Random.Generator API is probably a bit intense for what I wanted with this library. I wrote about this a bit more in this comment.

Can you tell me more about your background and what you would like to make?

Repository owner deleted a comment from miniBill Oct 3, 2019
@eimfach

This comment has been minimized.

Copy link
Author

@eimfach eimfach commented Oct 5, 2019

Hi Evan,
I am a developer by myself, but I also have a creative/art background... I wanted to create dynamic illustrations with this library , where I could concentrate on the design process. I would like to be able to create illustrations which change each time someone visits it..

I understand that you want to keep it simple, having some 'higher order' randomness functionality in this library would be a great addition for experimenting though.

@PascalLeMerrer

This comment has been minimized.

Copy link

@PascalLeMerrer PascalLeMerrer commented Dec 3, 2019

Hi Evan
Today during a hackathon we tried to create a very simple game, in which you have to land a spaceship to a target on the ground. The position of the target should be anywhere at the bottom of the screen. It has to be immutable, and ideally defined at the game initialisation. The wordkaround you mentionned above was not a good fit for our case, because it is based on time, which is always 0 at game init. We found a solution based on the mouse position, but it's not truly random, and not really satisfying. Having a real random number would have been much simpler.
A few hours later I think to be able to use your solution, we probably would have to add a basic welcome screen, and wait for the user to click some "start button". This would have solved several issues we faced (like computer not being available when creating the game)

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.