Jump to content
Rpg²S Forum

ProGM

Rpg²S Admin
  • Posts

    3,215
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by ProGM

  1. e uno http://www.imagetemple.eu/files/gfc3WereWolf.gif e due http://www.imagetemple.eu/files/wae9metaller.gif questo è quello che ho ._.
  2. di nulla... comunque... io non ho ancora capito se li hai fatti tu o li hai rippati xD OT ma come cavolo faccio io a contattarti se non vieni nè in chan ne su msn ._.?
  3. altervista ha un sistema di protezione sfigato, per poterle vedere devi copiare l'indirizzo nella barra degli indirizzi e fare invio O_o comunque mi sembra ben fatto, se non che le ombre la fanno sembrare piegata in avanti ^^
  4. ecco a voi il link diretto che si era perso riedito anche il primo post ;) http://dermfxp.altervista.org/Raccolta_Characters_Naruto.rar
  5. princess momonoke? xD la città incantata? xD
  6. sto facendo esperimenti strambi del genere: "acquisire le immagini dal tileset"... avanzamento: 3% O_o
  7. *ç* loading... /me prepara idee dementi xD
  8. era 16 comunque lui ha trovato la classe window rifatta da un tizio ha 3 bug maledetti che piuttosto che risolvere mi impiccherei xD quindi lo posto qui: #============================================================================== # ■ Window - Hidden RGSS Class #------------------------------------------------------------------------------ #  by Selwyn #============================================================================== #============================================================================== # ■ Bitmap #============================================================================== class Bitmap #-------------------------------------------------------------------------- # ● erase #-------------------------------------------------------------------------- def erase(*args) if args.size == 1 rect = args[0] elsif args.size == 4 rect = Rect.new(*args) end fill_rect(rect, Color.new(0, 0, 0, 0)) end end #============================================================================== # □ SG #------------------------------------------------------------------------------ #  Selwyn's Graphics module #============================================================================== module SG #============================================================================== # ■ SG::Skin #============================================================================== class Skin #-------------------------------------------------------------------------- # ● instances settings #-------------------------------------------------------------------------- attr_reader :margin attr_accessor :bitmap #-------------------------------------------------------------------------- # ● initialize #-------------------------------------------------------------------------- def initialize @bitmap = nil @values = {} @values['bg'] = Rect.new(0, 0, 128, 128) @values['pause0'] = Rect.new(160, 64, 16, 16) @values['pause1'] = Rect.new(176, 64, 16, 16) @values['pause2'] = Rect.new(160, 80, 16, 16) @values['pause3'] = Rect.new(176, 80, 16, 16) @values['arrow_up'] = Rect.new(152, 16, 16, 8) @values['arrow_down'] = Rect.new(152, 40, 16, 8) @values['arrow_left'] = Rect.new(144, 24, 8, 16) @values['arrow_right'] = Rect.new(168, 24, 8, 16) self.margin = 16 end #-------------------------------------------------------------------------- # ● width #-------------------------------------------------------------------------- def margin=(width) @margin = width set_values end #-------------------------------------------------------------------------- # ● set_values #-------------------------------------------------------------------------- def set_values w = @margin @values['ul_corner'] = Rect.new(128, 0, w, w) @values['ur_corner'] = Rect.new(192-w, 0, w, w) @values['dl_corner'] = Rect.new(128, 64-w, w, w) @values['dr_corner'] = Rect.new(192-w, 64-w, w, w) @values['up'] = Rect.new(128+w, 0, 64-2*w, w) @values['down'] = Rect.new(128+w, 64-w, 64-2*w, w) @values['left'] = Rect.new(128, w, w, 64-2*w) @values['right'] = Rect.new(192-w, w, w, 64-2*w) end #-------------------------------------------------------------------------- # ● [] #-------------------------------------------------------------------------- def [](value) return @values[value] end end #============================================================================== # ■ SG::Cursor_Rect #============================================================================== class Cursor_Rect < ::Sprite #-------------------------------------------------------------------------- # ● instances settings #-------------------------------------------------------------------------- attr_reader :height, :width, :skin, :margin #-------------------------------------------------------------------------- # ● initialize #-------------------------------------------------------------------------- def initialize(viewport) super(viewport) @width = 0 @height = 0 @skin = nil @margin = 0 @rect = {} @rect['cursor_up'] = Rect.new(129, 64, 30, 1) @rect['cursor_down'] = Rect.new(129, 95, 30, 1) @rect['cursor_left'] = Rect.new(128, 65, 1, 30) @rect['cursor_right'] = Rect.new(159, 65, 1, 30) @rect['upleft'] = Rect.new(128, 64, 1, 1) @rect['upright'] = Rect.new(159, 64, 1, 1) @rect['downleft'] = Rect.new(128, 95, 1, 1) @rect['downright'] = Rect.new(159, 95, 1, 1) @rect['bg'] = Rect.new(129, 65, 30, 30) end #-------------------------------------------------------------------------- # ● margin= #-------------------------------------------------------------------------- def margin=(margin) @margin = margin set(x, y, width, height) end #-------------------------------------------------------------------------- # ● skin= #-------------------------------------------------------------------------- def skin=(skin) @skin = skin draw_rect end #-------------------------------------------------------------------------- # ● width= #-------------------------------------------------------------------------- def width=(width) return if @width == width @width = width if @width == 0 and self.bitmap != nil self.bitmap.dispose self.bitmap = nil end draw_rect end #-------------------------------------------------------------------------- # ● height= #-------------------------------------------------------------------------- def height=(height) return if @height == height @height = height if @height == 0 and self.bitmap != nil self.bitmap.dispose self.bitmap = nil end draw_rect end #-------------------------------------------------------------------------- # ● set #-------------------------------------------------------------------------- def set(x, y, width, height) self.x = x + @margin self.y = y + @margin if @width != width or @height != height @width = width @height = height if width > 0 and height > 0 draw_rect end end end #-------------------------------------------------------------------------- # ● empty #-------------------------------------------------------------------------- def empty self.x = 0 self.y = 0 self.width = 0 self.height = 0 end #-------------------------------------------------------------------------- # ● draw_rect #-------------------------------------------------------------------------- def draw_rect return if @skin == nil if @width > 0 and @height > 0 self.bitmap = Bitmap.new(@width, @height) rect = Rect.new(1, 1, @width - 2, @height - 2) self.bitmap.stretch_blt(rect, @skin, @rect['bg']) self.bitmap.blt(0, 0, @skin, @rect['upleft']) self.bitmap.blt(@width-1, 0, @skin, @rect['upright']) self.bitmap.blt(0, @height-1, @skin, @rect['downright']) self.bitmap.blt(@width-1, @height-1, @skin, @rect['downleft']) rect = Rect.new(1, 0, @width - 2, 1) self.bitmap.stretch_blt(rect, @skin, @rect['cursor_up']) rect = Rect.new(0, 1, 1, @height - 2) self.bitmap.stretch_blt(rect, @skin, @rect['cursor_left']) rect = Rect.new(1, @height-1, @width - 2, 1) self.bitmap.stretch_blt(rect, @skin, @rect['cursor_down']) rect = Rect.new(@width - 1, 1, 1, @height - 2) self.bitmap.stretch_blt(rect, @skin, @rect['cursor_right']) end end end #============================================================================== # ■ SG::Window #------------------------------------------------------------------------------ #   #============================================================================== class Window #-------------------------------------------------------------------------- # ● set instances variables #-------------------------------------------------------------------------- attr_reader(:x, :y, :z, :width, :height, :ox, :oy, :opacity, :back_opacity, :stretch, :contents_opacity, :visible, :pause) attr_accessor :active #-------------------------------------------------------------------------- # ● initialize #-------------------------------------------------------------------------- def initialize() @skin = Skin.new @viewport = Viewport.new(0, 0, 0, 0) @cr_vport = Viewport.new(0, 0, 0, 0) @width = 0 @height = 0 @ox = 0 @oy = 0 @opacity = 255 @back_opacity = 255 @contents_opacity = 255 @frame = Sprite.new() @bg = Sprite.new() @window = Sprite.new(@viewport) @pause_s = Sprite.new() @arrows = [] for i in 0...4 @arrows.push(Sprite.new(@cr_vport)) @arrows[i].bitmap = Bitmap.new(16, 16) @arrows[i].visible = false end @cursor_rect = Cursor_Rect.new(@cr_vport) @cursor_rect.margin = @skin.margin @cursor_fade = true @pause_s.visible = false @pause = false @active = true @stretch = true @visible = true self.x = 0 self.y = 0 self.z = 100 self.windowskin = RPG::Cache.windowskin($game_system.windowskin_name) end #-------------------------------------------------------------------------- # ● contents= #-------------------------------------------------------------------------- def contents=(bmp) @window.bitmap = bmp if bmp != nil if bmp.width > @viewport.rect.width bmp.height > @viewport.rect.height draw_arrows end end end #-------------------------------------------------------------------------- # ● contents #-------------------------------------------------------------------------- def contents return @window.bitmap end #-------------------------------------------------------------------------- # ● dispose #-------------------------------------------------------------------------- def dispose @bg.dispose @frame.dispose @window.dispose @cursor_rect.dispose @viewport.dispose @pause_s.dispose @cr_vport.dispose for arrow in @arrows arrow.dispose end end #-------------------------------------------------------------------------- # ● update #-------------------------------------------------------------------------- def update @window.update @cursor_rect.update @viewport.update @cr_vport.update @pause_s.src_rect = @skin["pause#{(Graphics.frame_count / 8) % 4}"] @pause_s.update update_visible update_arrows if @cursor_fade @cursor_rect.opacity -= 10 @cursor_fade = false if @cursor_rect.opacity <= 100 else @cursor_rect.opacity += 10 @cursor_fade = true if @cursor_rect.opacity >= 255 end end #-------------------------------------------------------------------------- # ● update_visible #-------------------------------------------------------------------------- def update_visible @frame.visible = @visible @bg.visible = @visible @window.visible = @visible @cursor_rect.visible = @visible if @pause @pause_s.visible = @visible else @pause_s.visible = false end end #-------------------------------------------------------------------------- # ● pause= #-------------------------------------------------------------------------- def pause=(pause) @pause = pause update_visible end #-------------------------------------------------------------------------- # ● update_arrows #-------------------------------------------------------------------------- def update_arrows if @window.bitmap == nil or @visible == false for arrow in @arrows arrow.visible = false end else @arrows[0].visible = @oy > 0 @arrows[1].visible = @ox > 0 @arrows[2].visible = (@window.bitmap.width - @ox) > @viewport.rect.width @arrows[3].visible = (@window.bitmap.height - @oy) > @viewport.rect.height end end #-------------------------------------------------------------------------- # ● visible= #-------------------------------------------------------------------------- def visible=(visible) @visible = visible update_visible update_arrows end #-------------------------------------------------------------------------- # ● x= #-------------------------------------------------------------------------- def x=(x) @x = x @bg.x = x + 2 @frame.x = x @viewport.rect.x = x + @skin.margin @cr_vport.rect.x = x @pause_s.x = x + (@width / 2) - 8 set_arrows end #-------------------------------------------------------------------------- # ● y= #-------------------------------------------------------------------------- def y=(y) @y = y @bg.y = y + 2 @frame.y = y @viewport.rect.y = y + @skin.margin @cr_vport.rect.y = y @pause_s.y = y + @height - @skin.margin set_arrows end #-------------------------------------------------------------------------- # ● z= #-------------------------------------------------------------------------- def z=(z) @z = z @bg.z = z @frame.z = z + 1 @cr_vport.z = z + 2 @viewport.z = z + 3 @pause_s.z = z + 4 end #-------------------------------------------------------------------------- # ● ox= #-------------------------------------------------------------------------- def ox=(ox) return if @ox == ox @ox = ox @viewport.ox = ox update_arrows end #-------------------------------------------------------------------------- # ● oy= #-------------------------------------------------------------------------- def oy=(oy) return if @oy == oy @oy = oy @viewport.oy = oy update_arrows end #-------------------------------------------------------------------------- # ● width= #-------------------------------------------------------------------------- def width=(width) @width = width @viewport.rect.width = width - @skin.margin * 2 @cr_vport.rect.width = width if @width > 0 and @height > 0 @frame.bitmap = Bitmap.new(@width, @height) @bg.bitmap = Bitmap.new(@width - 4, @height - 4) draw_window end self.x = @x self.y = @y end #-------------------------------------------------------------------------- # ● height= #-------------------------------------------------------------------------- def height=(height) @height = height @viewport.rect.height = height - @skin.margin * 2 @cr_vport.rect.height = height if @height > 0 and @width > 0 @frame.bitmap = Bitmap.new(@width, @height) @bg.bitmap = Bitmap.new(@width - 4, @height - 4) draw_window end self.x = @x self.y = @y end #-------------------------------------------------------------------------- # ● opacity= #-------------------------------------------------------------------------- def opacity=(opacity) value = [[opacity, 255].min, 0].max @opacity = value @contents_opacity = value @back_opacity = value @frame.opacity = value @bg.opacity = value @window.opacity = value end #-------------------------------------------------------------------------- # ● back_opacity= #-------------------------------------------------------------------------- def back_opacity=(opacity) value = [[opacity, 255].min, 0].max @back_opacity = value @bg.opacity = value end #-------------------------------------------------------------------------- # ● contents_opacity= #-------------------------------------------------------------------------- def contents_opacity=(opacity) value = [[opacity, 255].min, 0].max @contents_opacity = value @window.opacity = value end #-------------------------------------------------------------------------- # ● cursor_rect #-------------------------------------------------------------------------- def cursor_rect return @cursor_rect end #-------------------------------------------------------------------------- # ● cursor_rect= #-------------------------------------------------------------------------- def cursor_rect=(rect) @cursor_rect.x = rect.x @cursor_rect.y = rect.y if @cursor_rect.width != rect.width or @cursor_rect.height != rect.height @cursor_rect.set(@cursor_rect.x, @cursor_rect.y, rect.width, rect.height) end end #-------------------------------------------------------------------------- # ● windowskin #-------------------------------------------------------------------------- def windowskin return @skin.bitmap end #-------------------------------------------------------------------------- # ● windowskin= #-------------------------------------------------------------------------- def windowskin=(windowskin) return if windowskin == nil if @skin.bitmap != windowskin @pause_s.bitmap = windowskin @pause_s.src_rect = @skin['pause0'] @skin.bitmap = windowskin @cursor_rect.skin = windowskin draw_window draw_arrows end end #-------------------------------------------------------------------------- # ● margin= #-------------------------------------------------------------------------- def margin=(margin) if @skin.margin != margin @skin.margin = margin self.x = @x self.y = @y temp = @height self.height = 0 self.width = @width self.height = temp @cursor_rect.margin = margin set_arrows end end #-------------------------------------------------------------------------- # ● stretch= #-------------------------------------------------------------------------- def stretch=(bool) if @stretch != bool @stretch = bool draw_window end end #-------------------------------------------------------------------------- # ● set_arrows #-------------------------------------------------------------------------- def set_arrows @arrows[0].x = @width / 2 - 8 @arrows[0].y = 8 @arrows[1].x = 8 @arrows[1].y = @height / 2 - 8 @arrows[2].x = @width - 16 @arrows[2].y = @height / 2 - 8 @arrows[3].x = @width / 2 - 8 @arrows[3].y = @height - 16 end #-------------------------------------------------------------------------- # ● draw_arrows #-------------------------------------------------------------------------- def draw_arrows return if @skin.bitmap == nil @arrows[0].bitmap.blt(0, 0, @skin.bitmap, @skin['arrow_up']) @arrows[1].bitmap.blt(0, 0, @skin.bitmap, @skin['arrow_left']) @arrows[2].bitmap.blt(0, 0, @skin.bitmap, @skin['arrow_right']) @arrows[3].bitmap.blt(0, 0, @skin.bitmap, @skin['arrow_down']) update_arrows end #-------------------------------------------------------------------------- # ● draw_window #-------------------------------------------------------------------------- def draw_window return if @skin.bitmap == nil return if @width == 0 or @height == 0 m = @skin.margin if @frame.bitmap.nil? @frame.bitmap = Bitmap.new(@width, @height) @bg.bitmap = Bitmap.new(@width - 4, @height - 4) end @frame.bitmap.clear @bg.bitmap.clear if @stretch dest_rect = Rect.new(0, 0, @width-4, @height-4) @bg.bitmap.stretch_blt(dest_rect, @skin.bitmap, @skin['bg']) else bgw = Integer((@width-4) / 128) + 1 bgh = Integer((@height-4) / 128) + 1 for x in 0..bgw for y in 0..bgh @bg.bitmap.blt(x * 128, y * 128, @skin.bitmap, @skin['bg']) end end end bx = Integer((@width - m*2) / @skin['up'].width) + 1 by = Integer((@height - m*2) / @skin['left'].height) + 1 for x in 0..bx w = @skin['up'].width @frame.bitmap.blt(x * w + m, 0, @skin.bitmap, @skin['up']) @frame.bitmap.blt(x * w + m, @height - m, @skin.bitmap, @skin['down']) end for y in 0..by h = @skin['left'].height @frame.bitmap.blt(0, y * h + m, @skin.bitmap, @skin['left']) @frame.bitmap.blt(@width - m, y * h + m, @skin.bitmap, @skin['right']) end @frame.bitmap.erase(@width - m, 0, m, m) @frame.bitmap.erase(0, @height - m, m, m) @frame.bitmap.erase(@width - m, @height - m, m, m) @frame.bitmap.blt(0, 0, @skin.bitmap, @skin['ul_corner']) @frame.bitmap.blt(@width - m, 0, @skin.bitmap, @skin['ur_corner']) @frame.bitmap.blt(0, @height - m, @skin.bitmap, @skin['dl_corner']) @frame.bitmap.blt(@width - m, @height - m, @skin.bitmap, @skin['dr_corner']) end end end
  9. rottura della retina? Oo? comunque, ottimo mapping *ç*
  10. ehm... vi fa proprio così schifo? ;_; almeno date segno di vita... se vi pare troppo difficile, ditelo, non ci vuole niente a cambiare...
  11. c'è anche gratis, ma è senza terreno e sfigatissimo O_o
  12. i soldi te li danno se paghi O_o l'unico modo per guadagnarci credo sia giocando xD c'è una cosa che non mi convince però: quindi i maggiorenni non possono stare con i minorenni? che storia è questa? O_o
  13. guarda che l'ha scritto, in cima O_o comunque carino lo script :) EDIT: errore mio, ha editato lui dopo xD
  14. GRADO 1 Turno A (Nov 2006) -7oni: 6 -Havana24: 8 -Khan: 6 -Julo: 7 -Lord Bel: 8 -Mahun: 5 -Sclero Fritz: 6 -Zerathul: 5 Turno B (Dic 2006) -DracoMT2 : 7 -Khan : 6 -Khristal : 9 -Sclero Fritz : 7 Turno C (Gen 2007) -DracoMT2 : 8 -Khan : 7 -Axel L. Kantaros : 6 BSTR (Gennaio/febbraio 2008) -DracoMT2 : 10 -Soul Eater : 6
  15. O_o cambierà tanto... forse la cartella xD
  16. ehm... usando le fog? hai presente nel database, dove c'è scritto tileset xD comunque, io sono quel pallosissimo scripter che si occupa del BS O_o che tra l'altro spero di finire in tempo con la demo xD /me fiero di essere un Rhaxen
  17. Prossima scadenza: 5 febbraio a mezzanotte Consegna: Crea due mappe, una a tua scelta, l'altra con tileset assente e eroe invisibile. Create un evento comune che teletrasporti da una mappa all'altra premendo un tasto e nella mappa vuota (la seconda) ricrea il il layout di un menù a eventi , utilizzando le immagini date e come base questa lezione. Imposta i seguenti comandi come funzionanti: -salva (obbligatorio che funzioni) -oggetti (ricreane il layout, senza il funzionamento, cioè lo spostamento del cursore) -magie (ricreane il layout, senza il funzionamento) -equip (ricreare lo spostamento del cursore sia nella finestra sopra che in quella sotto) -status (una semplice immagine, nient'altro) -esci (ricrearne il layout e il funzionamento di "torna ai titoli") basta settare il comando salva più un altro comando a scelta ;) chiaramente a seconda della difficoltà il voto si alza (es:se impostate status prendete poco, perché non ci sono scelte animate da fare, se scegliete di fare equip invece la cosa si complica, perché ha 2 scelte concatenate da fare) per chiarimenti chiedete qui ;) P.S. per le immagini usate queste: http://img168.imageshack.us/img168/8326/986481383ji.png http://img260.imageshack.us/img260/5980/127205671wi.png http://img260.imageshack.us/img260/7931/253282835co.png http://img441.imageshack.us/img441/6954/441676323km.png http://img242.imageshack.us/img242/9601/773034035az.png http://img242.imageshack.us/img242/515/387216721nh.png e quelle dei sottomenù rippatele da quelle predefinite ( o aspettate in grazia che lo faccia io xD)
  18. il punto non è se noi, personalmente facciamo uso di softwere pirata il punto è che questo è un forum che: -ha delle regole, se non le sai leggile -se succede qualcosa, qualsiasi cosa (es:passa di qui la guardia di finanza) ad andare nella merda non sei tu, ma Otaku, che ha pagato il dominio -non puoi credere che dicendo "non me ne assumo la responsabilità" ti scagioni, perchè se lo dici a uno della polizia si mette a ridere ;)
  19. anche se non ne ho le capacità, ti farei quel chara, se tu sistemassi il tuo avatar qui e su art xDD no, scherzo, non sarei in grado... però magari in un atto di follia potrebbe venirmi voglia e...
  20. allora: "Non esistono storie originali, ormai è stato scritto tutto. La cosa importante è come l' autore la racconta" (citazione imperfetta del contenuto di "A volte la magia funziona" di "Terry Brooks") (l'ho scritta a memoria e non ho il libro a portata di mano) tornando a eragon, il punto è che nel libro c'erano 3 cose fatte bene e che rendevano la lettura piacevole: -L'addestramento e la crescita di Eragon -il personaggio di Arya -Il rapporto tra eragon e saphira nel film hanno reso malissimo tutte e tre le cose, quindi... BOCCIATO xD
  21. ricicli sempre la stessa variabile... cioè, quando hai finito di usarla la azzeri. poi, per far combattere ancora il tipo... boh, dovrei pensarci... comunque mi sa che basta farlo muovere vicino ad un altro evento e ri randomizzale la variabile
  22. rinomino il topic... comunque di norma, a eventi, basta mettere vicini due eventi dei combattenti che combattono. in uno dei due metti: aspetta tot tempo variabile [Vincitore] == rand 1..2 se variabile [Vincitore] == 1 qui non so, metti un cambia grafica all'evento di uno degli eventi con la grafica del cadavere se variabile [Vincitore] == 2 qui invece cambi la grafica all'altro evento-guerriero fine
×
×
  • Create New...