![]() Thanks in advance.ĮDIT: Forgot to mention something, the screen class implements JPanel, to work as a Canvas. 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. 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. Supercow is good entertainment for virtually all age-groups. 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") Different styles of Cow PNG images with high resolution are available. Url = this.getClass().getResource("/images/arena.png") You can explore in this category and download free Cow PNG transparent images for your design flashlight. DMCA Add favorites Remove favorites Free Download 323 x 444. Log in Sign up Upload Super Cow - Supercow Skin Png,Minecraft Cow Png. ![]() URL url = this.getClass().getResource("/images/char_sheet.png") Super Cow - Supercow Skin Png,Minecraft Cow Png, free download transparent png images. 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. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |