Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (135)
games submitted by our members
Games in WIP (593)
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 3
1  Game Development / Game Mechanics / Re: "Help" with RayCasting on: 2015-01-25 18:50:50
No, they cant rotate, and they can move around freerly.
Heres what i got so far:
Code.
2  Game Development / Game Mechanics / Re: "Help" with RayCasting on: 2015-01-25 17:18:46
Please? Im sure someone on this forum knows something about the topic.
3  Game Development / Game Mechanics / "Help" with RayCasting on: 2015-01-25 12:09:25
Hey guys,
Im using Ashley and LibGDX to make a top-down game, but i wanted to use my own "physics engine".
In my previous projects i always integrated Box2DLights for lighting, but since it uses Box2D to do the math, i had a problem.
So i downloaded the sources of Box2DLights and changed it to use Entities instead of Bodies.
Everything is working fine, except the shadows. I cant get raycasting to work.

TL;DR Teach me how 2 raycast pls (or point me in the right direction)

Additional info:
-2D Environment
-Each entity has a Position and CollisionBox component.
-CollisionBox has 2 fields : size and offset
-Engine object manages enities. You can get any entity or group you want at any given time
-The function that gets called for raycasting:
1  
2  
3  
public static void rayCast(Engine engine, RayCastCallback ray, Vector2 start, Vector2 tmpEnd){
      //TODO: Implement raycasting
}

-What it should do in the end:
1  
ray.reportRayFixture(Entity body, Vector2 point, Vector2 normal, float fraction);
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-25 10:54:54
Converting my game to ECS, which allows me to do this.
Trying to figure out lighting now -> the tiles are loose entities
Click to Play
5  Game Development / Game Play & Game Design / Re: Appropriate mobile game controls on: 2015-01-24 18:15:48
Split the screen vertically, then split the right side horizontally (or again vertically) for two "buttons" (jump and shoot)? The left side is used as a analog sitck -> user puts his finge on the area and slides in the direction he wants to go. Im probably describing some game's controls that i saw a long time ago, but im not sure.
6  Discussions / Miscellaneous Topics / Re: Minecraft - ever server saying 'Timed Out' on: 2015-01-20 08:07:16
Idk if it will help, but maybe try port forwarding?
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-14 18:41:34
Today is my birthday Cheesy
Happy bd! I wish you a nice finished project that you can be proud of Smiley
8  Games Center / WIP games, tools & toy projects / Re: Bit Siege - 2D Competitive Multiplayer PvP Game. (Patch v1.3 out now!) on: 2015-01-14 13:19:27
Make the background art of the game's site less saturated, it really stands out, when it shouldn't. We should focus on the content, rather than the background. I haven't played the game yet, but as soon as i come back home (4 days) i will try it out Smiley Good luck!
9  Game Development / Newbie & Debugging Questions / Re: Creating a object from Class variable and calling a function on it. on: 2015-01-06 11:00:12
It did actually work, but the whole implementation was messy. I will try to use this again some time later, and do it properly, but for now i will stick with (Class+HashMap<String, Object>) and some IF checks. Thanks anyways, i learned something at least Smiley
10  Game Development / Newbie & Debugging Questions / Re: Creating a object from Class variable and calling a function on it. on: 2015-01-05 18:28:03
Thank you, i will let you know if it works Smiley
11  Game Development / Newbie & Debugging Questions / Re: Creating a object from Class variable and calling a function on it. on: 2015-01-05 17:34:43
Reflection:

1  
2  
Constructor<CrunchableComponent> ctor = klass.getConstructor();
CrunchableComponent cc = ctor.newInstance();


Thank you.
So if the klass is f.ex. PositionComponent.class (which extends CrunchableComponent), will this throw a error? And will i be able to cast it to PositionComponent?
Also, if the PositionComponent has a constructor which takes a Object[] variable as an argument, what should i write?
Thanks in advance.
12  Game Development / Newbie & Debugging Questions / Re: Creating a object from Class variable and calling a function on it. on: 2015-01-05 17:08:32
Didn't tought of that.. Thanks.
But i still want to know if its possible to do what i want to do.
Besides its all already implemented except for the actual entity-creation-from-packet part.
13  Game Development / Newbie & Debugging Questions / Creating a object from Class variable and calling a function on it. on: 2015-01-05 17:03:09
Im currently at the game synchronization state with my morpg, and i've run into a problem.
Im using Artemis Entity Framework, and im trying to synchronize server entities with local entities.
Each entity has a set of components. I've created a custom Component class, called CrunchableComponent.
Basically it has 2 abstract functions : Object[] crunch(); and void decrunch(Object[] fields);
In the first one the component stores all its data, and in the second it deciphers it.

Now the problem part. Im sending a EntityCreationPacket each time a entity gets created on the server, and it contains a array of ComponentData objects, which just hold the Component's class and the Object[] array which represent the fields.
When the client receives the packet, it should create a object of that class (f.ex. PositionComponent, which extends CrunchableComponent), cast it to CrunchableComponent, call decrunch(); on the component,
and add it to a new entity. And thats what i have trouble with.
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-04 16:56:29
Bought this :
15  Game Development / Networking & Multiplayer / Re: Open World Multiplayer Game on: 2014-12-22 20:45:56
Since my entitys have to be rendered after the background but before the foreground, i just call the parts that need to be rendered... i digress the way im doing it is very anoying but it works for me currently

1  
2  
3  
4  
level.renderTiles(screen, xOffset, yOffset,player,1);//Background
level.renderTiles(screen, xOffset, yOffset,player,2);//Blocks entitys can hit
level.renderEntitys(screen);//entitys
level.renderTiles(screen, xOffset, yOffset,player,3);//forground


Hmm, thanks for help man Smiley And not to sound rude or anything, it's entities, not entitys Tongue (i used to write it like that too lol)
16  Game Development / Networking & Multiplayer / Re: Open World Multiplayer Game on: 2014-12-22 19:22:36
Well, i like to have my map in chunks that i can load and unload when i want and this will allow for the world to be infinite whilst keeping ram usage low

How does your game loop look like? How are you updating your entities?
17  Game Development / Networking & Multiplayer / Re: Open World Multiplayer Game on: 2014-12-22 19:11:44
In this type of project if i do something, i will have to stick to it for the rest of the development, thats why i first make a plan, and then code.
I tried to find helpful threads on google and JGO for over an hour or so, thats why i posted this. I know some people have experience here and
have done similar stuff.
I don't ask for code snippets or anything like that, just opinions.
Please don't post such useless responses like that KevinWorkman. I've seen that you post similar ones to other questions like this one. You aren't helping, you know..
18  Game Development / Networking & Multiplayer / Open World Multiplayer Game on: 2014-12-22 19:00:52
Hey,
I started making a mmorpg kind of game (actually morpg, without the massive), tile based, and i ran into a problem that im struggling to solve.
The game will be dynamic, so of course i cannot simulate the whole world every server update. I tought that maybe i can split it up
int "zones". Each of those zones would be a mini-world, handling its entities and communicating with the players. Their sizes would be multiples of 8,
and the entities would be managed by Ashley, a entity framework. Now this is where the problem starts. Should i make a seperate Engine for each
zone and update only those that contain players, or should i put everything in a single Engine and .. and.. something.. i dont even know how to approach that.
Im just trying to figure out what way would be the fastest and make sense.

19  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-07 05:02:19
Cmon man, reply :c LIIVE
20  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-07 03:59:50
Gimme 30 minutes, i need to make some more levels. Should i pm you or e-mail?
21  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-07 01:02:12
If you could make the installer too, it would be awesome. I will include a icon and a info.txt file regarding .exe file error texts, installer text etc. (it needs to be in Polish).
And again, thank you  Grin
22  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-07 00:54:12
Will you be online in exactly 3 hours? I will send you the finished game then so you can convert it. You are my last hope, here in poland its 2 AM and no one is online :/
I post the game here with pictures of the cd later Smiley
23  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-07 00:37:30
Ok, heres a quick demo jar : https://drive.google.com/file/d/0B4zq61CeB97nMGVCMGdFREdQUEU/view?usp=sharing
Try converting this on your computer and tell me if it opens up.
Its a runnable jar file with all the libraries packed in it.
I still have to do the GUI, level select and levels themselves :C No sleep for me today...
Btw: im on a mac
EDIT: i cant express how thankful i am for your help with this project
24  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-06 23:49:28
Ok, the game is finished, but when i try to create a exe with Launch4J, it spits out at the end "ExecException: Exec failed (139)". Im hopeless :c
25  Discussions / General Discussions / Re: Working with Lua in Libgdx - Android NDK on: 2014-12-06 17:48:51
Nashorn is hotspot...not android.

D'oh! Sorry, i somehow missed the "(Android, specifically)" part :/
26  Discussions / Business and Project Management Discussions / Re: [Charity][Due to Sunday] Noble Santa on: 2014-12-05 17:30:08
Thanks! I checked the links you provided me and think i get it Smiley I will try it out once i finish the game. Also, can you tell if Launch4j will work with LibGDX?
27  Discussions / Business and Project Management Discussions / [Charity][Due to Sunday] Noble Santa on: 2014-12-05 16:17:38
Hey guys,
Here in Poland we have a charity organization called "Noble Pack". Basically, schools (classes, to be exact) from all around the country select a poor family in their town, and they collect things that they need. Our class hosts a fair from which the money obtained goes to the family. Im making a platformer game, involving santa, and this is where i need your help. I've got the graphics done, starting on code, but i still need music.
The fair starts at sunday. Can you help me by making some christmas (chiptune ? ) music?
List:
-Menu (catchy, very christmasy)
-Game (candy'ish, night, faster tempo)
-Boss (intense, just a little bit frightening, should still have some christmas details)

It really can be anything as long as i can distribute it (10PLN for a disc).
Also, i need help with some other things:
-(Startable from disk) installer which installs the game and checks if you have java installed (but wait, i can bundle java with the .jar file, right?)
-Making a .exe starter file for starting the game.

ANY HELP IS APPRECIATED Smiley
28  Discussions / General Discussions / Re: Working with Lua in Libgdx - Android NDK on: 2014-12-05 14:07:54
Java has a built in JavaScript interpreter (Nashorn?) , try that. It worked perfectly for me.
29  Games Center / Showcase / Re: Rage Day on: 2014-11-27 17:52:14
Time Lapse Video is out! Still trying to figure out what music i should put in. Check it >>
<a href="http://www.youtube.com/v/loXez1r9HDU?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/loXez1r9HDU?version=3&amp;hl=en_US&amp;start=</a>
30  Games Center / Showcase / Re: Rage Day on: 2014-11-25 22:38:32
I will make more content for the game after the jam is over ( long after it, got work to do for my job and for school) and slap "Rage Day 2" on it. Currently this is what i want to add:
  • More animals
  • Parallax background
  • Different weapons
  • Online scoreboard
  • Better, animated gui
  • More tiles
  • Better level generator
  • Bunnies with rocket launchers MODE
  • Death animations for animals
  • Intro cutscene
Pages: [1] 2 3
 

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

The first screenshot will be displayed as a thumbnail.

Olo (3 views)
2015-01-25 18:44:22

Robo11 (18 views)
2015-01-25 06:14:26

basil_ (26 views)
2015-01-17 22:29:32

wxwsk8er (24 views)
2015-01-16 21:42:21

wxwsk8er (20 views)
2015-01-16 20:44:20

basil_ (25 views)
2015-01-14 09:46:59

basil_ (21 views)
2015-01-14 09:46:52

wxwsk8er (32 views)
2015-01-13 20:42:16

wxwsk8er (34 views)
2015-01-13 03:23:59

vctt (55 views)
2015-01-12 03:21:07
2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17
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!