Java-Gaming.org Hi !
Featured games (88)
games approved by the League of Dukes
Games in Showcase (679)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (731)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2
1  Games Center / WIP games, tools & toy projects / Re: [Android] Floor Runner on: 2015-11-24 15:23:17
Another new update to bring:

- A bat now has a simple AI that fires projectiles to the player
- The player now has a new texture
- Some AI for generating the terrain was tweaked


2  Games Center / WIP games, tools & toy projects / Re: [Android] Floor Runner on: 2015-11-13 17:35:21
UPDATE:

So here is a little post showing what I have added into the game.

- A player (needs new graphic and now has double jump)
- A floor and roof which scroll
- Blocks to jump over that are randomly generated and inifinite
- Simple collision detection with the block and player
- Projectiles that fire off at random directions and random angles
- A bat entity that needs some very basic AI

Here is a little screenshot off the progress.

3  Games Center / WIP games, tools & toy projects / Re: [Android] Floor Runner on: 2015-11-01 16:59:06
So looking at the post I now have double jumping in the game which will allow me to start adding some game features. The screen shot below shows the current state of the game. I have added some rectangles for collision detection which I will be adding next.

4  Games Center / WIP games, tools & toy projects / Re: [Android] Floor Runner on: 2015-10-29 15:43:16
I did have that idea but the part I struggled with is where do I add that boolean and how do I modify the loops
5  Games Center / WIP games, tools & toy projects / [Android] Floor Runner on: 2015-10-29 12:23:11
Hi,

I am currently working on a little android game called floor runner. The idea is your a stick man and you just have to keep away from objects trying to kill you. Very simple. Currently I have some base code in place and very bad graphics. I am looking for someone to create some minimlistic but good looking art, if they want. I will start to post screen shots when im making good progress. This is just the start of the post.

I have a question on how to add double jumping into the game, below is the code I use for jumping.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
public void update(float delta) {
      if(jumping) {
         velocity.y = -100;
         jumping = false;
      }
     
      if(position.y > originalY){
         position.y = originalY;
         canJump = true;
      }else{
         canJump = false;
         velocity.add(gravity.cpy().scl(delta));
      }
     
      position.add(velocity.cpy().scl(delta));

      collisionBox.x = position.x + 3;
      collisionBox.y = position.y + 1;
   }

   public void onClick(){
      if(isAlive){
         if(!jumping && canJump == true){
            jumping = true;
            canJump = false;
         }
      }
   }
6  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-03 08:39:10
Okay okay guys. I will look at sql and servers and if I have another question I will put it in the work in progress thread
7  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-02 14:06:41
Yeah okay thanks for that I was going to carry on the development whilst I wait, but hey lets go for it.

One quick question I want to have a login screen that remembers your username and password on the internet. I also want it so that if you log on from another phone it remembers all your information so like details of your business card. What would I use to do this.
8  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-02 08:44:20
Well yes and no. I will program it as-well and all im looking for is someone who knows a bit about android development and Java - I think I am in the right place. I haven't got a budget but thats the fun, trying to make it big from nothing. *cough* Nick D’Aloisio *cough*. I have a bit of knowledge and will help, but the only proper app I have released was a torch. https://play.google.com/store/apps/details?id=com.idkstudios.toby.torch
9  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-02 08:28:47
Aha thanks I wonder about that but surely I can use this as proof that it is my idea.
10  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-02 06:14:58
Well I am just looking for a little help. I have a tiny skill in programming and can help with that but also have the developers license and admob account. I can take care of the manaent and promotion of the app.

But thanks for trying to not make it fall through
11  Discussions / General Discussions / Looking for a developer on: 2015-04-01 21:51:22
Hi, I'm 15 and I'm a android app devolper. I know this is a forum for game development but hey its java.

The idea is you have this app which allows you to create your own business card within the app. If you want to add other peoples business cards you can transfer your business cards via NFC. You could then see all the business cards you have and can email, phone or add to your contacts via the app. If you are intrested email me at tobydrane@gmail.com and say what you can bring to the team (well me)
12  Game Development / Newbie & Debugging Questions / Re: AI on: 2015-01-12 18:58:26
So I reading that I should use the angle of reach equation?
13  Game Development / Newbie & Debugging Questions / AI on: 2015-01-11 18:25:22
So here I have a simple game which has a player and some enemies. What I want to happen is the enemies to jump when they have a block in front of them just like a player would. I have rectangles for all the sides of the walls and the enemy. I have gravity but how would I add this jumping.

Thanks Toby

14  Game Development / Newbie & Debugging Questions / Re: Libgdx Rotate a sprite 90 degress on: 2014-12-27 14:58:26
Any help?
15  Game Development / Newbie & Debugging Questions / Re: Libgdx Rotate a sprite 90 degress on: 2014-12-25 16:48:05
Thanks for the help it's just I really struggle at the logic, could you put it into code or even pseudo code that would be really appreciated.

Thanks, Merry Christmas
16  Game Development / Newbie & Debugging Questions / Re: Libgdx Rotate a sprite 90 degress on: 2014-12-24 18:57:00
So thank you that was a little better, I am trying to have it rotate like this. I have got a shape with 4 sides and when I touch the screen I want it to rotate like like what they have.

http://gamejolt.com/games/arcade/shapedown/29861/
17  Game Development / Newbie & Debugging Questions / Re: Libgdx Rotate a sprite 90 degress on: 2014-12-24 18:46:42
Okay so mark 2, when I press once, the sprite just constantly rotates fast and doesn't stop, although looking cool its not what I wanted.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
    private float degrees = 0.0f;
    boolean rotating = false;
    private void rotateSprite(float delta) {
       if(Gdx.input.isTouched() & !rotating) {
          rotating = true;
       }

       if(rotating) {
          degrees += delta * 1;
          if(degrees != 90.0f) {
             AssetLoader.shapesGridSprite.rotate(degrees);
         }else {
            degrees = 0.0f;
            rotating = false;
         }
       }
18  Game Development / Newbie & Debugging Questions / Re: Libgdx Rotate a sprite 90 degress on: 2014-12-24 18:38:45
1  
2  
3  
4  
5  
6  
7  
8  
9  
    private float degrees = 0.0f;
    private void rotateSprite(float delta) {
       if(Gdx.input.isTouched()) {
          degrees += delta * 1;
          if(degrees != 90.0f) {
             AssetLoader.shapesGridSprite.rotate((float) Math.toRadians(degrees));
         }else degrees = 0.0f;
       }
    }


I have this and what happens is if I want it to rotate I have to hold the screen down.
19  Game Development / Newbie & Debugging Questions / Libgdx Rotate a sprite 90 degress on: 2014-12-24 18:27:52
I have my sprite which I want to rotate 90 degrees on ever touch. I dont want the rotation to be instant I would like it to be fade 90 degrees if you get what I mean. I get the coding its just the logic I struggle with, thanks Toby.
20  Discussions / Miscellaneous Topics / Android App survey on: 2014-12-10 18:27:28
Here is just a quick survey that I would really appreciate if you you would fill it out thanks

http://goo.gl/forms/oGZgZcjkfm
21  Game Development / Newbie & Debugging Questions / Re: Weird tilemap rendering not working on: 2014-09-05 16:05:03
Oh im so stupid, I just needed to change a variable name and now it works fine. Thanks alot.

Toby
22  Game Development / Newbie & Debugging Questions / Re: Weird tilemap rendering not working on: 2014-09-04 15:06:17
Okay, sorry. Look at the first image, can you see there are black walls. The middle ones are slightly to the right, when I want them to just be straight. I dont understand why it is happening. They should be drawn probably in the spritesheet (image below)

Hope that helps
23  Game Development / Newbie & Debugging Questions / Weird tilemap rendering not working on: 2014-09-04 10:55:22
The game I am currently working on has a very weird rendering error. It loads text from a file and sets a specific tile to a certain text (If you get what I mean). It has this very weird rendering error though. 



The textures move a couple of pixels to the right. This is what my spritesheet looks like.



And the some snippets of the code.

Loading the map:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
   public void LoadWallsMap(String filename, int tileSize) {
      this.tileSize = tileSize;

      try {
         @SuppressWarnings("resource")
         BufferedReader br = new BufferedReader(new FileReader("res/maps/" + filename));

         mapWidth = Integer.parseInt(br.readLine());
         mapHeight = Integer.parseInt(br.readLine());

         mapWalls = new int[mapHeight][mapWidth];

         for (int row = 0; row < mapHeight; row++) {
            String line = br.readLine();
            String[] tokens = line.split(" ");
            for (int column = 0; column < mapWidth; column++) {
               mapWalls[row][column] = Integer.parseInt(tokens[column]);
            }
         }
      } catch (Exception e) {
         e.printStackTrace();
      }
   }


And rendering the map:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
   public void renderWallsMap(Graphics g) {
      for (int row = 0; row < mapHeight; row++) {
         for (int column = 0; column < mapWidth; column++) {
            int x = mapWalls[row][column];
            if(x == 1) renderTile(Tile.wallTop, x, y, column, row, g);
            if(x == 2) renderTile(Tile.wallTopMiddle, x, y, column, row, g);
            if(x == 3) renderTile(Tile.wallSide, x, y, column, row, g);
            if(x == 4) renderTile(Tile.wallBottom, x, y, column, row, g);
            if(x == 5) renderTile(Tile.wallBottomMiddle, x, y, column, row, g);
         }
      }
   }


1  
2  
3  
   public void renderTile(Tile tile, int x, int y, int column, int row, Graphics g) {
      tile.render(x + column * tileSize, y + row * tileSize, g);
   }


Any help would be much appreciated.

Thanks Toby
24  Games Center / WIP games, tools & toy projects / Re: Arcade Game [Duck drop game] on: 2014-08-16 14:01:51
Oh yeahh, Thanks I forgot
25  Games Center / WIP games, tools & toy projects / Arcade Game [Duck drop game] on: 2014-08-15 16:20:05
Over the summer my Dad saw me doing a bit of java coding. He set me challenge to design a simple duck drop game. I set about the challenge to design the game and so I finished it.

You can play the final game here https://www.dropbox.com/s/ambgsyvlh98mcrd/Duck%20Drop%20Game%20%5BAlpha%20V1.0%5D.zip

If you have any good suggestions on what to add to the game, please put them in the comments below. Any art and sound would be much appreciated as I would put a reference to the creators of it.







Thanks Toby
26  Game Development / Newbie & Debugging Questions / Re: Voxel Destroy Item on: 2014-07-29 10:08:53
Okay Okay
27  Game Development / Newbie & Debugging Questions / Re: Voxel Destroy Item on: 2014-07-29 09:46:06
Yeah you are right this is a 3d Game. I have blocks being destroyed correctly and working but I want to get the pickaxe to be removed from the game and my inventory when it's life runs out.
28  Game Development / Newbie & Debugging Questions / Voxel Destroy Item on: 2014-07-28 18:11:20
I have a voxel game, and I want to destroy items like a pickaxe. How would I do that, I am using LWJGL and Slick in case that helps a bit. Sorry for the broad question but if you point me on the right path I could find the answer.

Thanks Toby
29  Games Center / WIP games, tools & toy projects / Re: Athanas Quest on: 2014-06-16 16:56:33
Yeahh thanks for that, I will use tiled because it is quite simple to implement in slick2d. The only problem I have is collision detection with tiled but I'm sure I will figure it all out. I am going to spend the next few weeks completly re-writing the game engine because it is an complete mess.
30  Games Center / WIP games, tools & toy projects / Re: Athanas Quest on: 2014-06-12 17:05:49
Input:

I am at the stage where I can start to re-design some aspects of my game. Im going to spend a bit of time on level design. I need your input on what to use for a map. Tiled or a RGB based map.

Any help would be really really useful

Thanks Toby
Pages: [1] 2
 
Mac70 (7 views)
2016-05-24 21:16:33

theagentd (39 views)
2016-05-14 18:38:35

theagentd (70 views)
2016-05-10 22:37:41

theagentd (74 views)
2016-05-10 22:33:46

IanParcs (106 views)
2016-04-18 14:18:53

KaiHH (99 views)
2016-04-18 08:35:41

KaiHH (126 views)
2016-04-15 12:43:58

theagentd (130 views)
2016-04-14 02:16:17

theagentd (152 views)
2016-04-14 02:15:43

IanParcs (246 views)
2016-04-12 03:51:16
FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!