Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (529)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Duckman  (Read 1127 times)
0 Members and 1 Guest are viewing this topic.
Offline PatxiOca
« Posted 2014-05-23 12:24:52 »

Hi, this is my first game.  Grin

This is a SandBox game where you can "modify" the world, recollect items and improve your character. It has a two players mode.
When it is dark, there will be a lot of phantoms near you that want kill you. You have to survive!!

[NOTE]
PVP is OFF, if you want to put it on, put two players mode, press ESC, go to options, and put it ON.

[CONTROLS]
WASD - Move
Q - Attack
E - Action
Z,C - Move Inventary.
ESC - Menu

Read "Intrucciones" in the game menu.

The game is in Spanish, but it is programmed in English. I hope you enjoy.

[DOWNLOAD]
Duckman V1.6

[LATEST UPDATE]
V 1.6
-New Sound Effects
-Better Perfomance
-Some bugs fixed

[SCREENSHOTS]



PD: I am not a spriter, so the graphics of the game are not mine. The idea is to put original sprites.
If you see bugs or you have ideas, please, let me know.  Pointing
Offline _james_h

Senior Newbie


Medals: 3
Exp: 2 years



« Reply #1 - Posted 2014-05-25 17:11:20 »

Getting a 404 on that Dropbox link
Offline PatxiOca
« Reply #2 - Posted 2014-05-25 18:17:34 »

Getting a 404 on that Dropbox link

I don't know why the Droopbox link had expired.
Thanks, now it is fixed.  Roll Eyes
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline wessles

JGO Wizard


Medals: 64
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #3 - Posted 2014-05-28 03:16:29 »

This is very nice (although I wish more people would add 16:9 ratios)!

There is one issue though, and I think I know how to fix it. Your movement collision seems to merge both axis, making it so that if you are colliding on one direction, you can't move on any axis (I call it the 'sticky wall effect'). I assume you are checking like this in your movement code:
1  
2  
if(no_collision_x && no_collision_y)
    // Do movement on x and y

What you need to do is make 2 if statements:
1  
2  
3  
4  
if(no_collision_x)
    // Do movement on x
if(no_collision_y)
    // Do movement on y

This way, movement won't be so difficult for the player.

EDIT:
I could not read your code, so this may not be how you check, but I reccomend you check out kevglass' tutorial on TileMaps, in which he covers collision logic way better than I ever could  Tongue.

Offline PatxiOca
« Reply #4 - Posted 2014-05-28 13:33:33 »

This is very nice (although I wish more people would add 16:9 ratios)!

There is one issue though, and I think I know how to fix it. Your movement collision seems to merge both axis, making it so that if you are colliding on one direction, you can't move on any axis (I call it the 'sticky wall effect'). I assume you are checking like this in your movement code:
1  
2  
if(no_collision_x && no_collision_y)
    // Do movement on x and y

What you need to do is make 2 if statements:
1  
2  
3  
4  
if(no_collision_x)
    // Do movement on x
if(no_collision_y)
    // Do movement on y

This way, movement won't be so difficult for the player.

EDIT:
I could not read your code, so this may not be how you check, but I reccomend you check out kevglass' tutorial on TileMaps, in which he covers collision logic way better than I ever could  Tongue.

Thanks for the feedback.

I explain to you. The world is a toroid world, see "image", so first we have "two rects" to go to the same point and there is no borders.


Each tile have the collision issue. I detect a collision using a group of 2x2 tiles (If there is a collision with any of the entities inside of them) and the tile where we go, if it is walkable or not. So first, I do a movement, then I detect the collision (tile colission or entity collision), if there is a collision, I undo the movement.
Your idea sounds great, but there will be 2 "ticks" rather than one (I will think about it). I use Graphics2D as library and it is too slow, I know, so I can not put more than a HD resolution because the framerate goes down of 60 fps and I love 16:9 ratio.

I am not a programmer, I am just a mathematician student, and I'm trying to improve this game little by little. As I said in description, the graphics are provisional, I think I will do it in the end. I prefer improve the performance and the fun, and then, I'll put my own graphics.

Regards!
Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (31 views)
2014-07-18 06:55:21

Zero Volt (27 views)
2014-07-17 23:47:54

danieldean (23 views)
2014-07-17 23:41:23

MustardPeter (24 views)
2014-07-16 23:30:00

Cero (39 views)
2014-07-16 00:42:17

Riven (41 views)
2014-07-14 18:02:53

OpenGLShaders (28 views)
2014-07-14 16:23:47

Riven (28 views)
2014-07-14 11:51:35

quew8 (25 views)
2014-07-13 13:57:52

SHC (61 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!