Re: Custom battle background
JOSE LUIS VAZQUEZ POLETTI <[email protected]> Mon, 16 Aug 2021 14:03:08 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_636_726655888.1629147788713 Content-Type: multipart/alternative; boundary="----=_Part_637_1590833181.1629147788713" ------=_Part_637_1590833181.1629147788713 Content-Type: text/plain; charset="UTF-8" Thank you very much for your prompt reply! We'll try this solution, which should be perfect for our needs :-D. Right now we have submitted a proposal to include a Robocode workshop at Madrid's Science Week (https://www.semanacienciamadrid.org/). Our idea is to see how much public and competitors we can gather, so we decide whether to move to the next step or not. And, if you don't mind the spam, I'll be very happy to share any updates with the group. Maybe here there are potential participants as well! On Monday, August 16, 2021 at 10:04:21 PM UTC+2 fnl wrote: > Hi Jose, > > I am happy to learn that you are about to start a national league in > Spain. :) > And I agree that programming games like CoreWar and Robocode are a great > and fun way for young people to learn about both AI and programming. > > Regarding the background. Currently, the tiles can be turned off as a > setting in Robocode (to black). > But the code for the blue_metal tiles is hardcoded. But this is something > that could be changed in the code of course. It could be done using some > property file to point at the image files and tell the size of the images > etc. > > The image is read from the ImageManager here: > > https://github.com/robo-code/robocode/blob/4255d1a4b59906a4630e0345aef7b0ca10456049/robocode.ui/src/main/java/net/sf/robocode/ui/ImageManager.java > > ... and used by the BattleView in the createGroundImage() method: > > https://github.com/robo-code/robocode/blob/4255d1a4b59906a4630e0345aef7b0ca10456049/robocode.ui/src/main/java/net/sf/robocode/ui/battleview/BattleView.java > > Currently, the easier way to change it is to unzip (and re-zip) the > robocode-setup-1.9.x.x.jar file and replace the blue_metal_X.png with 5 > other images of your choice. This would do the job. The tiles could be the > same image or up to five different. > > Cheers, > - Flemming N. Larsen > > > mandag den 16. august 2021 kl. 13.00.32 UTC+2 skrev JOSE LUIS VAZQUEZ > POLETTI: > >> >> Hi there! >> >> First of all, thank you very much for keeping Robocode alive. This is a >> great way to bring AI and programming to youngsters. In fact, we plan >> starting a national league at my country. We had great experiences with >> CoreWar (https://corewar.ucm.es/) and now we wanted to jump to Robocode >> as well :-). >> >> In fact, my question is somehow related: is it possible to customize the >> battle background? I have found the blue_metal_X.png files inside the >> robocode.ui-1.9.4.2.jar. An initial idea could be to change them and then >> re-create the jar file. >> >> However, I'm sure somebody already has thought of this and managed to >> perform it in a more simple way. >> >> Thank you very much in advance!!! >> > -- You received this message because you are subscribed to the Google Groups "Robocode" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/robocode/45ea841a-749c-4835-9622-20db9469f0dcn%40googlegroups.com. ------=_Part_637_1590833181.1629147788713 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div>Thank you very much for your prompt reply!</div><div><br></div><div>We= 'll try this solution, which should be perfect for our needs :-D.<br></div>= <div><br></div><div>Right now we have submitted a proposal to include a Rob= ocode workshop at Madrid's Science Week (https://www.semanacienciamadrid.or= g/). Our idea is to see how much public and competitors we can gather, so w= e decide whether to move to the next step or not.<br></div><div><br></div><= div>And, if you don't mind the spam, I'll be very happy to share any update= s with the group. Maybe here there are potential participants as well!<br><= /div><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On M= onday, August 16, 2021 at 10:04:21 PM UTC+2 fnl wrote:<br/></div><blockquot= e class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px soli= d rgb(204, 204, 204); padding-left: 1ex;">Hi Jose,<div><br></div><div>I am = happy to learn that you are about to start a national league in Spain. :)</= div><div>And I agree that programming games like CoreWar and Robocode are a= great and fun way for young people to learn about both AI and programming.= </div><div><br></div><div>Regarding the background. Currently, the tiles ca= n be turned off as a setting in Robocode (to black).</div><div>But the code= for the blue_metal tiles is hardcoded. But this is something that could be= changed in the code of course. It could be done using some property file t= o point at the image files and tell the size of the images etc.</div><div><= br></div><div>The image is read from the ImageManager here:<br><a href=3D"h= ttps://github.com/robo-code/robocode/blob/4255d1a4b59906a4630e0345aef7b0ca1= 0456049/robocode.ui/src/main/java/net/sf/robocode/ui/ImageManager.java" tar= get=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.= com/url?hl=3Den&q=3Dhttps://github.com/robo-code/robocode/blob/4255d1a4= b59906a4630e0345aef7b0ca10456049/robocode.ui/src/main/java/net/sf/robocode/= ui/ImageManager.java&source=3Dgmail&ust=3D1629233494000000&usg= =3DAFQjCNFT4Gr_aWXNN4EuANnzfU6NFZd3gA">https://github.com/robo-code/robocod= e/blob/4255d1a4b59906a4630e0345aef7b0ca10456049/robocode.ui/src/main/java/n= et/sf/robocode/ui/ImageManager.java</a><br><br></div><div>... and used by t= he BattleView in the createGroundImage() method:</div><div><a href=3D"https= ://github.com/robo-code/robocode/blob/4255d1a4b59906a4630e0345aef7b0ca10456= 049/robocode.ui/src/main/java/net/sf/robocode/ui/battleview/BattleView.java= " target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.go= ogle.com/url?hl=3Den&q=3Dhttps://github.com/robo-code/robocode/blob/425= 5d1a4b59906a4630e0345aef7b0ca10456049/robocode.ui/src/main/java/net/sf/robo= code/ui/battleview/BattleView.java&source=3Dgmail&ust=3D16292334940= 00000&usg=3DAFQjCNF7EH_aLQt4D60GX3n-HRaMjo86lQ">https://github.com/robo= -code/robocode/blob/4255d1a4b59906a4630e0345aef7b0ca10456049/robocode.ui/sr= c/main/java/net/sf/robocode/ui/battleview/BattleView.java</a><br></div><div= ><br>Currently, the easier way to change it is to unzip (and re-zip) the ro= bocode-setup-1.9.x.x.jar file and replace the=C2=A0blue_metal_X.png with 5 = other images of your choice. This would do the job. The tiles could be the = same image or up to five different.<br><br>Cheers,</div><div>- Flemming N. = Larsen</div><div><br></div><div><br></div><div class=3D"gmail_quote"><div d= ir=3D"auto" class=3D"gmail_attr">mandag den 16. august 2021 kl. 13.00.32 UT= C+2 skrev JOSE LUIS VAZQUEZ POLETTI:<br></div><blockquote class=3D"gmail_qu= ote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex"><br><div>Hi there!</div><div><br></div><div>First of all, th= ank you very much for keeping Robocode alive. This is a great way to bring = AI and programming to youngsters. In fact, we plan starting a national leag= ue at my country. We had great experiences with CoreWar (<a href=3D"https:/= /corewar.ucm.es/" rel=3D"nofollow" target=3D"_blank" data-saferedirecturl= =3D"https://www.google.com/url?hl=3Den&q=3Dhttps://corewar.ucm.es/&= source=3Dgmail&ust=3D1629233494000000&usg=3DAFQjCNFpJnu9JgbfsDutNtE= 96pBqXSc1-A">https://corewar.ucm.es/</a>) and now we wanted to jump to Robo= code as well :-).<br></div><div><br></div><div>In fact, my question is some= how related: is it possible to customize the battle background? I have foun= d the blue_metal_X.png files inside the robocode.ui-1.9.4.2.jar. An initial= idea could be to change them and then re-create the jar file.</div><div><b= r></div><div>However, I'm sure somebody already has thought of this and= managed to perform it in a more simple way.</div><div><br></div><div>Thank= you very much in advance!!!<br></div></blockquote></div></blockquote></div= > <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Robocode" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">robocode+u= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/robocode/45ea841a-749c-4835-9622-20db9469f0dcn%40googlegroups.co= m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid= /robocode/45ea841a-749c-4835-9622-20db9469f0dcn%40googlegroups.com</a>.<br = /> ------=_Part_637_1590833181.1629147788713-- ------=_Part_636_726655888.1629147788713--