Tagged Questions
-2
votes
1answer
75 views
Slick game adding enemies towards the player [closed]
I'm beginner in java games, and this is my first time using Slick!
I followed the thenewboston tutorials to code my game.
My game is about a princess lost in a maze, on her way she finds bugs coming ...
1
vote
4answers
262 views
Limiting a player's movement to the screen's dimensions
I have a player, that I can control using WASD. And I don't want him to leave the screen.
So I've tried the following:
if (player1.getX()+5 < 974 && player1.getX()-5 > 0) {
...
0
votes
0answers
706 views
Issues playing audio with Slick 2D [closed]
Started trying to learn Slick 2D a few days ago and have enjoyed it so far. The only problem is I can't seem to be able to get audio to play. I have tried going through the documentation examples, ...
1
vote
1answer
535 views
Java 2D Tile Collision
I have been working on a way to do collision detection forever, and just can't figure it out. Here's my simple 2D array:
for (int x = 0; x < 16; x++) {
for (int y = 0; y < 16; y++) {
...
-1
votes
1answer
298 views
Resource not found?
When I write in my terminal, java -jar myJar.jar, it gives me an error "Resource Not found res/playNow.png" When I run it in eclipse, it does not give me any errors about this image.
My folder in my ...
0
votes
2answers
120 views
Unable to access jar. Why?
I was making a game in java and exported it as jar file. Then after that, I opeed jar splice. I added the libaries and exported jar. I added the natives then i made a main class. I created a fat jar ...
-1
votes
1answer
220 views
How to make an Image still when at position at Slick 2D?
I wanted to have a build functions. When I press for example 2, the image will appear with my character.
The question is, how do I stop it from following my character
//build
//I created many ...
-2
votes
2answers
116 views
How do I add Destroy with radius on Java Slick2d? [closed]
For Example, There is a tree(image) and i want to destroy it. I want my character only destroy it (For example the character must be facing the tree to destroy it and there must be a range were you ...
1
vote
2answers
832 views
Creating maps and tileset for a 2d java game
I'm not a completly beginner to java, so I decided to write a map loader and a tileset loader myself instead of using a tilemap editor like Tiled. I'm using Slick & LWJGL for my game.
The plan ...
1
vote
3answers
766 views
How to efficiently manage animations and/or textures (resources) in a game?
I am using Java, particularly the Slick2D library. Seeing as this is my first game, I have no idea how I should manage the Animations and the textures in the game in a way to be both memory efficient ...
2
votes
1answer
726 views
How can I accomplish Pokemon-style movement over tiles in java?
I'm talking about where if you press a directional key once you walk over to the adjacent tile and can't do any other actions during the walk. I can get my character to move one tile width, but my ...
2
votes
2answers
278 views
Are my programming methods for java games sufficient
so I'm making a 2d Java game with the slick2d and MarteEngine libraries. This is the biggest project since I made checkers for my Java class. I am still pretty new to programming concepts and using ...
0
votes
1answer
667 views
How to implement HUD
I'm wondering how one could implement an HUD in LWJGL. I've seen tutorials on this, but they don't seem to work. I know the basic structure goes like this:
init3d();
// 3d code
init2d();
// HUD
To ...
1
vote
1answer
1k views
Rotation of images in Slick2D
I have have a rotation problem in the Slick2d library, the image is just not rotating (ie I set a rotation but no result is shown). Here is the rotation code:
if (input.IsKeyDown(Input.KEY_LEFT)) {
...
0
votes
1answer
1k views
Resource not found: testdata/alphamap.png
I started a tutorial for java's slick 2d library, called SlickBlocks which is essentally a tetris clone. The problem is I have followed and typed in the code examples to the dot, yet when I run it I ...
0
votes
0answers
312 views
ParticleSystem in Slick2d (with MarteEngine)
First of all, sorry if this sounds very newbie-ish. I'm stuck at making a ParticleSystem I made using Pedigree to work in my game. It's basically an explosion that I want to display whenever an enemy ...
7
votes
3answers
1k views
Rendering only what is on the screen
I am fairly new to this world, so bear with me.
I have a grid of blocks in a top-down, 2d game written using Slick. The best way to think of it is the Pokemon world.
Right now, I am rendering all ...
4
votes
3answers
1k views
2D basic map system
i'm currently coding a 2D game in Java, and I would like to have some clues on how-to build this system :
the screen is moving on a grander map, for instance, the screen represent 800*600 units on a ...
3
votes
2answers
2k views
How do you structure a 2D level format with collisions etc. in Java (Slick 2D)?
I am developing a game in Java. 2D Fighter, Kind of like the 2d flash game Raze(http://armorgames.com/play/5395/raze). I currently am using the Slick 2D game library and am researching how to ...