


In its initial week of release, it became the top selling app in several countries, including the United States, England, and Australia. įeed Me Oil was first released for iOS devices on June 2, 2011. He also attempted to create gameplay mechanics that would function on any mobile device, regardless of screen size. According to Ilin, his primary goal when developing Feed Me Oil was "paying attention to every aspect of the design, from the physics to the graphics to the overall mechanics". Production began in August 2010, when Ilin was inspired to create a game with the core mechanic based around fluid after watching the trailer for The Unfinished Swan. The amount of time it takes to complete the level is also a factor when calculating the score.Īdditional level packs included with updates to the game introduced new special objects and mechanics, such as anti-gravity and oil-mixing.įeed Me Oil was developed by independent game developer Alexander Ilin, and was published by Chillingo. The less objects that the player uses to complete the level, the more points the player will be awarded.

There are also special objects in some levels, such as buttons, which may activate another pathway or lift an obstacle in order to be able to complete the level. Each of these objects perform a different task for example, the fan will "push" the oil in the direction that it is blowing. Some of these provided objects include: solid bars, fans, oil filters, and tornados. Players will be provided objects to use in order to guide the oil into the creature's mouth. Additionally, there may also be a certain color or type of oil that the creature wants. The amount of oil varies between level to level, and occasionally there are multiple creatures to feed oil to. As the player progresses through the game by completing levels, subsequent levels become more complex. Item's opacity changes to indicate that it's being dragged, and the opacity changes back to 1 after the dragging ends.The objective in the game is to fill the creature's mouth with oil (hence the game name). Since event listeners are added to all food items, how does JavaScript know which one the user is dragging to cart? To let JavaScript know, we add "currentItem" id to item when the dragging starts.

Event listeners are added to all cart spots to make them holders for dropping items. addEventListener ( 'click', function ( event ) ) HTML5 Drag and Drop drag food to cartįor implementing dragging food items and dropping them in cart, relevant code is in cart.js.Įvent listeners are added to all food items to make them draggable. getElementById ( "open-store" ) openButton. getElementById ( 'modal' ) const openButton = document.
