-
Notifications
You must be signed in to change notification settings - Fork 67
Add more extensive examples #107
Comments
Though it doesn't strictly fit into any of the categories above, would there be interest in creating a sort of Minesweeper clone? |
Yep. The categories were just examples, anything that's a game would be very welcome. Even if it's very simplistic |
Okay, cool. I've started on the minesweeper example and it should be up and running soon. |
@TheLostLambda hey, do you need any help with minesweeper? In terms os questions / answers etc. |
Hmm, to be entirely honest, I recently started school up again so I haven't made too much progress on the minesweeper front. It looks like I got a decent ways with it. It currently allows you to reveal tiles and once revealed they will show as red if there is a mine there and white if there is not. Pressing the R key resets the game. The bits that aren't finished are: placing flags, displaying the number of surrounding mines, auto-revealing fields, and actually being able to win or lose the game. Now that you have brought it back to my attention, there is a decent chance that I will actually pick it up and finish it, but that isn't a guarantee — particularly with school filling my time. If I don't get around to finishing it soon, feel free to check out the code I have so far:
As for specific issues I've been having, there is nothing other than my lack of time that has set back the completion of minesweeper, but one little thing that has been bothering me is not being able to lock window resizing to a particular aspect ratio. I currently have support for nicely scaling the window's contents, but if it is wider than it is tall, for example, there is just a black empty space to the right of the actual minesweeper grid. It would be nice if there was a way to allow resizing, but also force the width and height of the window to remain the same. Again, this is mearly a little annoyance that I had experienced, and isn't particularly hindering progress, but if you have a solution for the issue, that would be great! Let me know if you have any questions and I will keep you all posted if I make any progress! |
@TheLostLambda interesting problem. Set is no exposed through Helm yet, so implementation is a little bit tacky and works directly with SDLEngine. Here is how I implemented aspect fit:
I added #121 to expose window size through Engine, although could be a smaller priority in compare with other tasks. |
Does anyone wants to port Mario from Elm examples? We are kinda Elm inspired, it will makes sense to have game examples that they have :) http://debug.elm-lang.org/edit/Mario.elm Also it will be the first example with at least some sprites involved. |
There's currently only a flappy bird clone example. I'd like to see at least three more, such as:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: