Waste production according to the Ministry of Environment, in year 2010 mentioned by the deputy assistant of waste management and deputy sewage treatment, the current average volume reached 200 thousand tons per day in Indonesia. Whereas, based on the Central Statistics Agency,the production waste in year 2011 from 380 cities reaching over 80,000 tons per day, resulting in accumulation of waste and environmental pollution in every city. Therefore hygiene is the responsibility of all parties. The simplest example is the behavior dispose of waste in place, it becomes important because of the impact of litter can harm the environment and cause disease. Hence the old cultural habits and behavior towards littering ordinances that are less well it needs to be changed early on.Various ways to raise public awareness of the importance of protecting the environment, one of which is the media game.In this study, carried out the construction of a desktop-based adventure game about littering ordinance is good and right with the introduction of organic and non-organic as well as the application of greedy algorithm, where the algorithm is used in the movement of an opponent in a quick decision to strike action or survive. Built with two-dimensional visualization and delivery of educational information of interest using OOP concepts and UML modeling system design with the programming language is Game Maker Language as well as the tools used in building this game is Game Maker 8 Pro.Based on the test results of the research that has been carried out, shows that the existence this of game can be a lesson on the importance of environmental hygiene in disposing of waste properly, and enable the children to know the types of garbage and throw ordinances