I bootstrapped with yeoman and beginning to work on the first part - that is getting some squares to appear on the screen. I forgot a lot of what I learnt about crafty last time so this feels slow going. Maybe I will warm up.
Identified a few admin tasks like doing an ‘im in’ post and also putting on a license. I don’t feel like doing these just yet.
I managed to get to lay out 9 cards on a grid (which was great until I remembered pairs is better usually with an even number).
I managed to get a basic wav sound playing but that was a bit crap.
Some idling around and non-structured time in the evening and this morning. I now have a game that is relatively playable. That is, you click something and it will play a sound and be selected.
When you click something with the same sound then it will pair these two off.
I want to spend some time tidying up the code as I feel it is going to be hard to extend it the way it is. Namely:
- lots of weird if-branching in the “CardSelected” screen
- the delay was the only way to get states transitioning nicely
- what is the role of a ‘model’ component right now?
- Using components for state transitions is a good thing?
Some other puzzles I have about the specifics of allowing soundfonts in my game. I kinda hope that’s OK. I figure it’s the same thing as using something like Ableton and built in midi right? Currently using a basic piano sound, MIT licensed etc.
After I tidy up a bit, I want to work on a basic game flow… that is, make the game winnable and restartable. Then there are some more ideas but let’s just focus on that for now.
Musical Pairs - a Musical Matching Game Copyright (C) 2014 Jennifer Smith
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.