Last weekend I spent Sunday rewriting the The Fruit Machine - Vampire Castle "event model", to put this simply, the existing system couldn't handle the combinations of clicks and options available on the fruit machine without some major code ugliness and risk of bugs.
The code is now in a state to progress it further feature wise. I particularly want to make it easier (not easy - because it isn't) for other developers to develop similar fruit machines using a shared fruit machine framework.
Two key parts of the framework are:
- An abstract fruit machine component "model" (a fruit machine consists of boards, which consists types of components such as buttons, lights etc), these have common features and functions that are exposed by the API
- A "pull" event framework. Instead of a central monolithic piece of code making decisions based on lot of variables (e.g. has start been pressed, are we spinning a reel, are we on the top board etc) and having button clicks setting off this behaviour ("pushing the data") there are now individual pieces of code "event handlers" to do the work. The event handlers are told to work out whether they individually in turn need to do anything and can ask the abstract fruit machine ("pulling the data") to return the states of components to find out whether anything should be done.
I'm thinking of GPL for the licence, however I may make additional modifications to the licence to ensure Silent Software remains as an acknowledgement on any splash screens.
Showing posts with label fruit machine. Show all posts
Showing posts with label fruit machine. Show all posts
Monday, March 02, 2009
Sunday, February 01, 2009
Rumble Pack Support in Vampire Castle

Luckily nobody from the NDS scene has caught onto this project yet which is quite nice because I can spend more time on QA and less dropping alpha versions out of the door. A good example of QA is work I've done today, whilst not largely progressing the development I have looked at adding rumble pack support (useful for simulating money falling into the fruit machine tray amongst other things) and cosmetic changes, such as "Click to play" becoming "Tap to play".
The end deliverables will be
- The Fruit Machine - Vampire Castle game.
- The Fruit Machine API - a framework for developing other fruit machines easily (although in C++, nothing high level I'm afraid).
- Fully documented source code.
- All of the source code, graphics and sound, including all content not used.
Sunday, October 05, 2008
Vampire Castle Update

I've spent the entire weekend designing and writing the model behind the "The Fruit Machine", the first instalment is "Vampire Castle". I haven't yet decided whether there will be other machines, however the code is entirely a -well designed- *1* tier event driven "Fruit Machine" model. Simply put, the design mirrors an "abstract" fruit machine, with abstract boards, abstract components, etc etc, and so has a clear defined structure, allowing for multiple differing implementations, i.e. fruit machines to "sit on top". The domain logic (the features) are tightly integrated into the implementation because I need to keep memory overhead low and the logic is highly specific to the implementation, i.e. the Vampire Castle machine.
Although my time is mostly limited to weekends I would estimate a release within the next month.
Thursday, August 07, 2008
Vampire Castle Screenshot (Nintendo DS)

I'm overdue for a blog post due to job searching, DIY and spending time on graphics for my Nintendo DS game, The Fruit Machine - Vampire Castle. The graphics (vampire and all) were drawn by hand on paper, scanned and GIMPed, reels were shaded and rendered using my own utility program (apologies for the quality of screenshot - the jpegs were compressed with MS Snipping Tool). As you might expect, I'm not a graphics designer so this has been the longest part (particularly lighting up the sprites, i.e. on and off states). The bottom screen is complete (yes the trail is meant to look a little amateurish, a "cartoony" look against the realism of the buttons and reels), I'm still working on the top. As for sound, well I spent a good £5 sampling random fruit machines at a local arcade, so my own hard earned money went into this, all in the name of research of course.
The code is only ~10% complete just enough to load sprites and play some rudimentary button, reel and collect sounds, this allows me to test the graphics and noises. Basically it's a sound board. The good news is I don't think the program and logic will take long to code and I have a basic idea of the code design structure.
In case you were wondering - the box with text in on the lower screen is a scrolling LCD style display - not a code crash :)
There's also going to be a (nice) surprise for anyone who wins the jackpot prize.
As for the source code, well I haven't yet decided whether to make it open source, but it will probably be GPL 2.
Labels:
ds,
fruit machine,
game,
games,
homebrew,
nintendo ds,
palib,
slot machine,
slots,
vampire castle
Subscribe to:
Posts (Atom)