Giter Site home page Giter Site logo

javajogo2d's Introduction

javajogo2d's People

Contributors

wfrsilva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

devlorran

javajogo2d's Issues

JAR Executavel do jogo nao absorve as imagens

Ao gerar o JAR executável, jogo não funciona pois o JAR não absorve a pasta RES:
(JavaJogo2D/res/)
onde se encontram as imagens, uma vez que a pasta foi criada fora da pasta do SRC.:
(JavaJogo2D/src/)
Estou com dificuldades de entender a hierarquia de diretórios do JAVA,
Pois ao mover o RES para dentro do src:
(JavaJogo2D/src/res/)

O codigo não consegue localizar as imagens.

JavaJogo2D/src/meujogo/Container.java
ImageIcon("res//icon_spaceship.png");

JavaJogo2D/src/meujogo/modelo/Fase.java
ImageIcon("res//background.jpg");
ImageIcon("res//Nebula2.png");

Container e Fase, mesmo estando em hierarquias diferentes, conseguem ler a pasta RES com as imagens.
O mesmo não acontece se eu mover o RES para dentro do SRC.

Já tentei assim :
ImageIcon("..//res//Nebula2.png");

Sem sucesso.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.