My Recent Pastes (106 and counting)

Pastes by kiba (106 and counting)

Pages:

Below are the 15 most recent pasties by kiba.

July 11, 2008
11:16AM EDT
by kiba

namespace :create do
  task :name do |n|
    files = MapFiles.new()
    files.create(n)
  end

August 02, 2007
1:13PM EDT
by kiba

#The Kiba Text Editor
#Copyright (C) 2007  Han "Kiba" 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

May 20, 2007
2:03PM EDT
by kiba

In part 2 of the Rubygame tutorial series we will be learning how to control a Rubygame application's CPU resource usage as well as writing a sprite system for our player.

For a little word of caution, part 2 is much longer than part 1. Since it is a really long article, I suggest you to print it out and read it later if you need to.

If you did not complete part 1 of this tutorial, it is highly recommended that you do so before continuing this tutorial. Otherwise you will miss a critical proportion of knowledge required to write video games with Rubygame. You may not also understand newer parts of this tutorial.

May 19, 2007
6:42PM EDT
by kiba

##Animation class

class Animation
        attr_accessor :data , :state , :player , :n
        def initialize player

May 15, 2007
7:36PM EDT
by kiba

The premature death of this blog is greatly exaggerated. (Not that anybody thinks we're are.)

Anyway, we're working on part 2 of the Rubygame tutorial. But it is taking far longer than we thought it would be. I predict part 2 will be scary long in comparison to part 1.  It already surpassed part 1 in both words count, lines, and code. I blame it on the sprite part of Part 2.

Have no fear, half of the goal for Rubygame tutorial part 2 are already done. I planned to have it out by the end of this week.

May 13, 2007
1:45PM EDT
by kiba

This tutorial series is a crash course in writing video games using the Ruby programming languages and Rubygame, a game development library for Ruby. It assumes that you have basic knowledge of programming along with knowledge of Ruby's syntax.

If you did not have Rubygame and/or the Ruby intrepreter not installed, it is suggested that you do so before continuing this tutorial. This tutorial will assume you're using 2.0.0 version of Rubygame.

In this tutorial, we will be creating a dodgeball game using just Rubygame and Ruby as we write this tutorial out. No other libraries will be used. The final game will be licensed under the GPL. This game will be called Rubies Dodgeball!

April 07, 2007
12:10PM EDT
by kiba

class Blah
  def initialize
     @test = Test.new
     @ding = Ding.new
  end

April 07, 2007
12:09PM EDT
by kiba

class Blah
  def initialize

  def test n
    case n

April 07, 2007
11:53AM EDT
by kiba

class Blah
  def test n
    case n
    when 1
     Test.new

April 04, 2007
6:49PM EDT
by kiba

#Copyright (C) 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

April 04, 2007
5:29PM EDT
by kiba

class Blah
  def initialize test
     @test = test
     loop()

April 03, 2007
1:49PM EDT
by kiba

class Commit
        def initialize
                @items
                @content
        end

April 02, 2007
12:18PM EDT
by kiba

##application
class Main
        attr_accessor :screen , :font , :bgcolor , :fgcolor , :size , :fname , :background , :x , :y , :cursor , :flags
        def initialize
                @screen = screen

April 01, 2007
10:44PM EDT
by kiba

##dir => ruby/test/test.rb
require"test/unit"
require"program/program.rb"

class MainTest < Test::Unit::TestCase

April 01, 2007
5:37PM EDT
by kiba

gui = Dir.glob("rbgooey/lib/*.rb")
gui.each do |data|
        require(data)
end
require 'test/unit'

Next page

Previous page