Thanks in advance.ĮDIT: Forgot to mention something, the screen class implements JPanel, to work as a Canvas. Different styles of Cow PNG images with high resolution are available. Can you spot what I'm doing wrong? Or have ane advice or tips? It would be highly appreciated, I've been freaking about about this for the last minutes. You can explore in this category and download free Cow PNG transparent images for your design flashlight. It's a simple class, that extends an interface which (for now) only has the refresh() method, I decided to have the rendering and updating in that single class, for this is just a practice. JOptionPane.showMessageDialog(gameFrame, "Fatal Error\n" e.toString() "\n" e.getLocalizedMessage(), Url = this.getClass().getResource("/images/projectile.png") Url = this.getClass().getResource("/images/enemy.png") Supercow's powers lie in a green blanket that she wears as a cape, and her costume is purple with a logo on the chest which slightly resembles that of Superman, but with a C instead of an S. A superheroine with superhuman strength, speed, near-invulnerability, and the ability to fly. Url = this.getClass().getResource("/images/arena.png") Supercow is the superheroine alter-ego of 7 year old Cow. URL url = this.getClass().getResource("/images/char_sheet.png") You can see it is actually transparent, I used BufferedImage and getSubimage(.) to render it on screen, but all I get is this: Searching aroud the web I found out that there's Graphics2D API, so I decided to give it a shot, using BufferedImage (as many have recommended), but this is where it all went to hell. Directed by Yoshitaka Nitta, Narrated by Duncan Macintyre, Produced by Akiko Nakano, Film Ideas, In Superlife: Genetic Manipulation (Wheeling. Tried to use JLabels also to achieve this, but with no success, aparently there's no way to select a single tile on the sheet properly, BUT transparency works just fine. In previous oportunities I've used JLabel to render my sprites (Player, enemies, misc) but that takes a lot of single files just to make simple animations, so I decided to use spritesheets, which have served me right on C (SFML) before. So' I've been trying to make a simple game. I've been around the internet for about 5 hours and found no solution to my issue, so hopefully someone will help me.
0 Comments
Leave a Reply. |