![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2005
Location: GA
Posts: 99
Rep Power: 3
![]() |
Any need a game library wrapper of RUDL(rubyese directmedia library)
If anyone want me to post my game library i wrote with the RUDL classes. I think it will be quick useful for making games. just respond with "sure post it"
|
|
|
|
|
|
#2 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 639
Rep Power: 4
![]() |
Sure, post it.
*Though it should probably be in Finished Projects*
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Sep 2005
Location: GA
Posts: 99
Rep Power: 3
![]() |
To use it, you need to first install rudl on your computer. I have not made any guide for using it. but once you look at the code, you should be able to manage it. first open the main, you will see something like this
when "Map" w,h = 1020, 700 win_name = "Map Editor" the name after the when is used for variable called WINTYPE w,h are the width and height of the window to use win_name is the title for the window you are using when creating a game, it is better to do something like this template WINTYPE = "MegamanZero" #name of window type according to main.rb
#required files for api uses such as playing music and video
require "Win32API"
#required for keyinputs
#ex of using keyboard is Keyboard.keyboard($R_Key_Letter)#letter is the key on the keyboard such as A to Z
require "Keyboard2"
#required for mouse inputs
require "Mouse"
#required this file for majority of all the class, such as sprite, color,bitmap
require "Scripts"
#require this when you need to use some function from it
require "Extend"
#you have to require this in your mainruby files
require "Main"
#required for use of your own custom class that you have made
#the one below is an example of what i did, i called the file that have all my classes in the zero folder which i made
require 'Zero/MegamanZero'
#you are required to created a simple class with anyname you wish
class MZ
#initialize anything you want here
def initialize()
@game = Game.new() #this is a class called from my custom class
end
#the main function is for updated the state of the game.
#you don't have to put a code here if you are not updating anything
def main()
@game.update
end
end
$main = MZ.new #call the name of your class for your game.
#you must use the $main variable, because once you call the below code, it looks for '$main'
$engine = MainSystem.new#you can intialized mainsystem with anyvariable #name even local variable, i just chose to use what i feel.if you have any problem with it or you need to understand something better, you can ask it here hope you enjoy it ^_^ |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
I downloaded your Engine.zip file. What is a .rar file?
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
A RAR file is another form of compressed file. Check out WinRAR.
|
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Thanks a lot Ooble!
So, Master zips a RAR file and I am supposed to buy WinRar to decompress it? I have some thousand year old cheese to sell!
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#7 | ||
|
Professional Programmer
|
Quote:
No, you don't have to buy winrar, it's free. The free version is only a trial though, it doesn't expire.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
||
|
|
|
|
|
#8 | |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Quote:
http://www.rarlabs.com/
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
|
#9 | |
|
Professional Programmer
|
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#10 | |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Quote:
Now if I could only get RUDL to work. Is RUDL for Linux only? It seems to install as Rudl.so instead of Rudl.exe ?? Even the install-on-windows.rb doesn't help much. RUDL sounds promising, the SDL wrapper for Ruby, similar to Python's PyGame.
__________________
I looked it up on the Intergnats! |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|