妖怪村拉霸機 製作過程

Monster Village Slot machine project process

這個故事在於說,有一天老闆希望我們可以幫忙做出一個過年來玩賭博性質遊戲,因為大家過年都很喜歡玩一些賭博性質的東西去增加自己的好運氣,於是又一次都沒有任何人可以一起處理又只有一個後端工程師的專案開始了

This Slot machine was created to cater the festive atmosphere of Chinese New year that some people would like to try their good luck.Once again, just only me and back-end engineer project started again.

初期規劃The Primary Schedule

前台規劃 Front-view Process
  • 拉霸介面 slot machine interface
  • 拉桿跟按鈕&拉霸機盒子 bar & button & slot machine box
後台規劃 Back-end Process
  • 中獎分配 (分別為次數給獎 跟 時間給獎)combo spearate
  • 鎖住IP Lock Ip

大致上的Slot machine的流程圖

公司廢紙很多 當然就是畫一畫:)

後台規劃就交給後端設計師去處理了,但主要是限制拉霸的機率問題,以及防止遊客進入網頁頁面,首先我先討論一下後端工程師設定的中獎分配設定

We had a simple idea about how to give prizes out by using ‘purchases counting’ and ‘peak hours’

中獎分配設定 Lucky draw setting

次數給獎參考圖 purchases counting

次數給獎: purchases counting

這次的行銷是為了讓店家把庫存的商品給另外一種行銷方式 賣掉 所以我們用當每個獎項的庫存多少 在設定『最大值抽獎』『跟機率抽獎』

Purchases couting is a indirect way to help the store to sell their products.Once the slot machine has received a certain amount of purchases, the lucky player is highly possible to win a prize

時間給獎參考圖 peak hours

時間給獎:Peak hours

當然有時候會有一些店家熱鬧時段,例如 中午十二點 or 下午四點 通常店家 會比較容易 聚集大量的人潮 所以我們設計 在那個時間點 可以讓客人大量吸引(通常客人真的吸引到比較高)

Peak hours are the busiest time at the store thus the prizes are set to be easier to get as a way to attract more customers


前台規劃 Production Process

拉桿跟按鈕&拉霸機盒子 Bar&Button&Slot machine box

the upper left (corner) is machine control set , the lower right (corner) is originally machine blueprint 左上是機台的底座,右下是當初的機台設計圖

為了假裝一個拉霸機台,我特定去找了木工師傅去切割木頭版子 ,去掏寶買了大按鈕準備來做裝置,後來我們討論結果可以把滑鼠的左右鍵設定成按鈕樣式,但在那時候根本沒什麼方向, 所以在設計的上面我把電腦要放在盒子的尺寸設定錯誤反而整個需要再重做。

For making the shape of the machine,we hired a carpenter to cut out some MDF boards.We bought a big button from online shopping and we assigned the ‘left click’ to it while the ‘right click’ was assigned to the bar.However,we did nee to remake it because of the miscalculation of the space for computer to fit in.

我只能說當時我心情根本就這樣 This is my feeling when I meet this situation

拉霸機設定 Slot Machine Setting

拉桿到底要怎樣才可以判定說往下來拉就可以啟動滑鼠右鍵的效果。甚至想到的根本都是電機的想法還去查了一下IO的屬性想說到底有沒有辦法解決。後端工程師自己本身有在玩焊接的底子他就默默的把滑鼠拆開把裡面的,決定在拉桿的下面放置一個按鈕讓拉桿往下來的時候去碰觸那顆按鈕 就可以解決我們拉桿執行滑鼠右鍵的效果。使用彈簧設定拉桿的控制卻發現真的很難使用。甚至很難拉彈拉桿,決定橡皮筋拉上去上面的鉤子讓桿子固定住,雖然有點笨笨的 但勉強我們可以使用。

The other issue that we were faced with was to find a way to trigger the ‘right click ‘ once the bar was pulled down. As a result, we just put another big button under the bar to make it work. For the ‘springing back’ effect of the bar, we used some handy rubber bands.

介面設定 Interface setup

當時設定的之後先設定用兩個按鈕區塊代表左鍵右鍵 setting machine play game by using two button.

在拉霸網頁的設定 , 在寫的過程中主要是以陣列去抓取相同的正確的ACTIVE數字..在此判斷每個不同的 if else 可能是主要是判定得獎的次數 再由 case去確認每個得獎的結果。

I used “if..else” to pick “active” number and “case” result screen on the page . using “array” to catch the same number to do that. The main idea of this was to decide the times of winning a prize and which prizes are won


測試結果 Project result

slot machine testing videos
目前公司使用拉霸機有三個店家 
所以總共三種視覺版本
Basically their have three versions of slot machinese at three different store .
slot machine screen visual 1
slot machine screen visual 2
slot machine screen visual 3

工作心得 Job review

這個slot machine花了我大概一個多月處理他的所有大大小小問題,從圖素到後台控制跟機台的擺設。但當客人在玩樂的時候,那種歡樂喜好,你會覺得這一切其實也沒那麼辛苦了。 甚至我很開心這一次從無到有的製作過程。 從行銷概念到執行,我要在這上面感謝的人很多包含以前一起讀書的Terry & Willsion 跟公司的木工跟美術以及店家的幫忙以及最辛苦的後端工程師。甚至高達一天兩萬的台幣營收業績。 真的超感謝大家的幫助

It took me around a month to make the slot machine to deal with all sorts of issues ranging from image design, background control to placing the physical machine, The stress from making the machine was swept away when I saw customers enjoy playing the machine. Moreover, I loved the feeling of making this project from scratch. Finally, I really appreciate many people that helped me with marketing, conducting, crafting and art design. This slot machine has helped the business of the store with a twenty thousand dollars of the sales performance increase on a day as the latest record.