Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': ./lib/mapfile.rb:23: class/module name must be CONSTANT (SyntaxError)
- #Program Dynpet.rb below
- #Copyright (C) 2006 by Han Dao
- # 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 2 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, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
- #You can contract the author at wikipediankiba@gmail.com
- #PROJECT: Dynpet
- #DESCRIPTION: Dynpet is a computer program in which you take care of a virtual pet.
- #FUNCTION OF THIS PART: Start the game
- require 'yaml'
- require 'rubygame'
- require 'rubygems'
- require 'rbGooey.rb'
- require "lib/creation.rb"
- require "lib/game.rb"
- require "lib/pet.rb"
- require "lib/option.rb"
- require "lib/dynpetmenu.rb"
- require "lib/filemenu.rb"
- require "lib/maprender.rb"
- require "lib/mode.rb"
- require "lib/petanimate.rb"
- require "lib/petmove.rb"
- require "lib/petbehavior.rb"
- require "lib/petstat.rb"
- require "lib/items.rb"
- require "lib/collide.rb"
- require "lib/timer.rb"
- require "lib/message.rb"
- require "lib/statdisplay.rb"
- require "lib/timeaction.rb"
- require "lib/emotiondisplay.rb"
- require "lib/itemmenu.rb"
- require "lib/itemdisplay.rb"
- require "lib/timedisplay.rb"
- require "lib/petsprite.rb"
- require "lib/display.rb"
- require "lib/menucollide.rb"
- require "lib/menurender.rb"
- require "lib/death.rb"
- require "lib/setup.rb"
- require "lib/mapengine.rb"
- require "lib/mapnav.rb"
- require "lib/mapcalculate.rb"
- require "lib/mapnavcompute.rb"
- require "lib/mapstartup.rb"
- require "lib/optionaccess.rb"
- require "lib/mapfile.rb"
- include Rubygame
- TTF.setup
- if $0 == __FILE__
- Setup.new
- end
- #File lib/mapfile.rb below
- #Copyright (C) 2006-2007 by Han Dao
- # 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 2 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, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
- #You can contract the author at wikipediankiba@gmail.com
- #PROJECT: Dynpet
- #DESCRIPTION: Dynpet is a computer program in which you take care of a virtual pet.
- #FUNCTION OF THIS PART: Load map files.
- class mapload
- def load
- file = FileSys.new
- map = file.yaml_read(file)
- Controller.new(map, main)
- end
- end
- #files.rb of rbgooey library below
- #Copyright (C) 2006-2007 by Han Dao
- # 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 2 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, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
- #You can contract the author at wikipediankiba@gmail.com
- #PROJECT: RbGooey
- #DESCRIPTION: A GUI library for the Rubygame library
- #FUNCTION OF THIS PART: Yaml file loading system.
- class FileSys
- #Read the file
- def yaml_read filename
- yaml_string = File.read filename; YAML:: load yaml_string
- end
- #Write to the file
- def yaml_write object , filename
- File.open filename , 'w' do |f|
- f.write(object.to_yaml)
- end
- end
- end
- #rbgooey.rb of rbgooey file below
- #Copyright (C) 2006 by Han Dao
- # 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 2 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, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
- #This is the rbgooey library.
- #You can contract the author at wikipediankiba@gmail.com
- require"files.rb"
- require"gui.rb"
- require"main.rb"
- require"mouse.rb"
- require"mqueue.rb"
- require"parser.rb"
- require"textmode.rb"
- require"textinput.rb"
- require"textrender.rb"
- require"textrect.rb"
- require"widget.rb"
- require"rexml/document"
- require"rubygems"
- require"xmlsimple"
Add Comment
Please, Sign In to add comment