Jump to content


Photo

RGSS Addon


  • Please log in to reply
5 replies to this topic

#1 ThallionDarkshine

ThallionDarkshine

    Advanced Member

  • Members
  • 86 posts
  • Primarily UsesRMXP
  • First LanguageEnglish

Posted 21 May 2012 - 10:11 AM

Who here thinks that it would be a good idea to add on to the built in RGSS classes such as bitmap. Well, I'm starting doing it. So far I have added in several RGSS2 bitmap functions missing from RGSS.

Functions completed:

Bitmap:
draw_gradient(rectangle, color1, color2, gradient_type[, subtype])
rectangle - rectangle in which to draw gradient
color1, color2 - starting and ending colors
gradient_type:
0 - horizontal, 1 - vertical, 2 - diagonal, 3 - radial
subtype - for diagonal:
0 - top-left to bottom-right, 1 - top-right to bottom-left
- this method is very laggy, especially with anything other than horizontal or vertical

draw_circle(rectangle, color[, border, border_size, border_color])
rectange - rectangle in which to draw circle
color - color of the circle
border - whether to draw a border (default false)
border_size - how large the border is (default 0)
border_color - color of the border (default black)
- this method doesn't lag as much as the gradient, but it still lags

blur
- this method only lags a bit compared to the other functions

sharpen
- this method lags a little more than blur

draw_line(x1, y1, x2, y2, color[, width])
x1, y1, x2, y2 - starting and ending coordinates of line
color - color in which to draw the line
width - thickness of the line

Version 1.0

Link
https://rapidshare.c...662831/test.exe

Edited by ThallionDarkshine, 22 May 2012 - 05:58 AM.


#2 timk1980

timk1980

    Advanced Member

  • Early Adopter
  • 100 posts
  • LocationBoston
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 21 May 2012 - 04:18 PM

Why not post what you've got so far, so others can improve upon it?

#3 ThallionDarkshine

ThallionDarkshine

    Advanced Member

  • Members
  • 86 posts
  • Primarily UsesRMXP
  • First LanguageEnglish

Posted 22 May 2012 - 06:00 AM

I posted the demo, complete with a working health bar.

#4 ThallionDarkshine

ThallionDarkshine

    Advanced Member

  • Members
  • 86 posts
  • Primarily UsesRMXP
  • First LanguageEnglish

Posted 12 August 2012 - 12:28 AM

Just a quick update on the progress of this project. I am almost ready to release version 1.0 of RGSS Addon. I have successfully ported most of the code to a dll to speed it up and have created corresponding ruby functions.

#5 Todd

Todd

    Game Developer

  • Early Adopter
  • 245 posts
  • Primarily UsesOther
  • First LanguageEnglish

Posted 12 August 2012 - 12:30 AM

Very cool, I'll definitely keep my eye on this.

#6 Rafael_Sol_Maker

Rafael_Sol_Maker

    The Main Secondary

  • Members
  • 95 posts
  • LocationBrazil
  • Primarily UsesRMVX Ace
  • First LanguagePortuguese

Posted 16 August 2012 - 07:35 AM

There are a lot of drawing methods besides the ones you already did that could be added to make the RGSS able to paint like the good'n'old Paint Brush.

Want some ideas, or help in the development? We already have a good library to manipulate colors in RGSS released recently, so, a specialized drawing library would be a excellent addition. ;-D

Very cool, I'll definitely keep my eye on this.

[2]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users