Jump to content
Rpg²S Forum
  • 0

Bordare tutti i testi di gioco. Possibile?


Broly88
 Share

Question

Scusate il titolo un po' idiota, ma non sapevo che mettere. La mia richiesta è questa: è possibile modificare lo script che ha postato Tio per i testi bordati, in modo che tutti i testi di gioco vengano così? Tipo quelli dei menù e delle finestre. Si può fare?

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

...

class Bitmap
alias txt draw_text
 def draw_text(*v)
  old_color = font.color.dup
  font.color = Color.new(0, 0, 0, 255)
  txt(v[0] - 1, v[1] - 1, v[2], v[3], v[4], v[5])
  txt(v[0] + 1, v[1] - 1, v[2], v[3], v[4], v[5])
  txt(v[0] + 1, v[1] + 1, v[2], v[3], v[4], v[5])
  txt(v[0] - 1, v[1] + 1, v[2], v[3], v[4], v[5])
  font.color = old_color
  txt(x, y, w, h, text, m)
end
 end
end

codice scritto a botto, dimmi se va...

Progetti:

 http://i.imgur.com/jmLkIqi.png

http://i54.tinypic.com/2rh4ojq.png

https://github.com/ProGM

 

Crea anche tu il tuo gioco per Game Boy!
http://rpg2s.net/gif/SCContest3Oct.gifhttp://www.rpg2s.net/img/fablecontest1st.pnghttp://i43.tinypic.com/1zokd2s.png


http://i.imgur.com/BEu6G.gif

http://i.imgur.com/H1ARhq7.gif

http://i.imgur.com/Af6ijZN.gif

AOT: Associazione Odiamo la Telecom:

http://i.imgur.com/aYJs89E.png

"4 gattini... 4 stelline... E le 4 paperelle non ci stavano :3"

Flame


http://i30.tinypic.com/i27ypj.png

Link to comment
Share on other sites

  • 0

1) C'è un end di troppo (almeno ne ho tolto uno e poi è partito)

2) Mi da errore su questa riga:

txt(v[0] - 1, v[1] - 1, v[2], v[3], v[4], v[5])

dicendo che il "-" non è un metodo definito per la classe Rect...

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

  • 0

ah, vero... ovvio...

class Bitmap
alias txt draw_text
 def draw_text(*v)
  old_color = font.color.dup
  font.color = Color.new(0, 0, 0, 255)
  if v[0].is_a(Rect)
  txt(v[0].x - 1, v[0].y - 1, v[0].width, v[0].height, v[1], v[2])
  txt(v[0].x + 1, v[0].y - 1, v[0].width, v[0].height, v[1], v[2])
  txt(v[0].x + 1, v[0].y + 1, v[0].width, v[0].height, v[1], v[2])
  txt(v[0].x - 1, v[0].y + 1, v[0].width, v[0].height, v[1], v[2])
  font.color = old_color
  txt(v[0].x - 1, v[0].y - 1, v[0].width, v[0].height, v[1], v[2])
  else
  txt(v[0] - 1, v[1] - 1, v[2], v[3], v[4], v[5])
  txt(v[0] + 1, v[1] - 1, v[2], v[3], v[4], v[5])
  txt(v[0] + 1, v[1] + 1, v[2], v[3], v[4], v[5])
  txt(v[0] - 1, v[1] + 1, v[2], v[3], v[4], v[5])
  font.color = old_color
  txt(v[0], v[1], v[2], v[3], v[4], v[5])
  end
end
 end

 

boh, prova così xDD

Progetti:

 http://i.imgur.com/jmLkIqi.png

http://i54.tinypic.com/2rh4ojq.png

https://github.com/ProGM

 

Crea anche tu il tuo gioco per Game Boy!
http://rpg2s.net/gif/SCContest3Oct.gifhttp://www.rpg2s.net/img/fablecontest1st.pnghttp://i43.tinypic.com/1zokd2s.png


http://i.imgur.com/BEu6G.gif

http://i.imgur.com/H1ARhq7.gif

http://i.imgur.com/Af6ijZN.gif

AOT: Associazione Odiamo la Telecom:

http://i.imgur.com/aYJs89E.png

"4 gattini... 4 stelline... E le 4 paperelle non ci stavano :3"

Flame


http://i30.tinypic.com/i27ypj.png

Link to comment
Share on other sites

  • 0
Allora: ti sei scordato un punto interrogativo alla 6° riga (is_a?()). Cmq mi dice "no implicit conversion from nil to integer" subito dopo l'else.

Il mondo è il cancro... Io la cura...

 

Il mio sport preferito:

Gli altri --> (T_T#)O==(^_^Q) <-- IO

 

I miei alias:

http://www.naruto-kun.com/images/narutotest/shikamaru.jpg

-----------------------------------------------------

http://www.naruto-kun.com/images/narutotest/rocklee.jpg

-----------------------------------------------------

http://www.ff-fan.com/chartest/banners/auron.jpg

 

Broly88's

http://pokejungle.net/other/pokepet/trainers/e4k2.png http://pokejungle.net/other/pokepet/Charizard.gif

Flame Dancer the level 99 Charizard!

 

http://img259.imageshack.us/img259/7446/rockleeoj1.gif http://img233.imageshack.us/img233/7449/sorajm1.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...