Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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 ... 9
1  Discussions / General Discussions / Re: Rayvolution's JGO Appreciation Thread (AKA: Free copies of Retro-Pixel Castles!) on: 2015-06-03 18:49:39
Yay free copies, can I get one  Grin
Ps: congrats on your success  Smiley
2  Game Development / Networking & Multiplayer / Re: Handling both UDP and TCP input. Multithreading? on: 2015-05-27 22:12:09
@Phibedy please reread topic, that is not what op is talking about
how would I determine where the packet came from, so as to send a packet to that client in response?
-> The ip is written in the header

I can't find where I would have said TCP is faster than UDP
-> I don't think TCP is faster than UDP as long as you don't care about packet-loss

I don't see why it's not related to the question.
3  Game Development / Networking & Multiplayer / Re: Handling both UDP and TCP input. Multithreading? on: 2015-05-26 22:40:04
I can't find where I would have said TCP is faster than UDP. I don't know enough about either protocol to even have a stance on the matter, so perhaps you guys misinterpreted something I said somewhere. As for one UDP thread per application, I have no idea how this would be done or how it works. If I have one UDP thread, how would I send UDP packets to a client without holding up that entire thread? Also, how would I determine where the packet came from, so as to send a packet to that client in response?
I don't think TCP is faster than UDP as long as you don't care about packet-loss. The ip should be written in the header. I am not sure if you also get the port.
After all you shouldn't care about performance if you don't run into problems Smiley
4  Game Development / Networking & Multiplayer / Re: Handling both UDP and TCP input. Multithreading? on: 2015-05-26 10:43:21
Some time ago I read a paper about udp vs tcp and why a lot of people think they need udp but they would be just fine with tcp. Unluckily I can't find atm ...
TCP isn't that slow at all. Indeed using TCP and some smart interpolation between steps is fine in most cases. Of course UDP is usefull and sometimes required but implementing udp and tcp for a game that isn't finished and you don't know if you will get performance problems is quite time-wasting.
I always prefer easy readable code and structures. I don't care about performance until I get some issues Smiley
Replacing some slow TCP messages with UDP should be easy in the end.
If you want to learn how to use udp and tcp at once that approach is fine but the hardest part in game-development is getting something playable.

Like always, that is just my point of view  Grin
5  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-02 19:30:20
Aha thanks I wonder about that but surely I can use this as proof that it is my idea.

That doesn't count at all.
I don't want to be rude but nobody cares about it as the law doesn't protect ideas. Some people believe that ideas are protected but no, they aren't.
Indeed not even patents are really protected, big companies can easily steal your ideas because you don't have the money for a lawsuit.
Nevertheless only stupid people don't share their knowledge and asking for advice or help will be worth the risk because noone will clone an idea that isn't already hyped Smiley
6  Game Development / Game Mechanics / Re: LibGDX table bug? on: 2015-04-02 19:17:09
The green rectangle seems to be on the correct position for the Lable and is the chatTable?
If yes:
Are you messung around with invalidate and layout?
Why do you have a container, I don't think that you need it.
The ScrollPane is only as big as the content it holds, you want to set the size of the chatTable. (Maybe that behavior changed as I haven't used it the last months)
If you are unsure what some actors do have a look at the getPrefWidth() and getWidth() etc. methods. A lot of actors override them and I don't think that the behavoir is well documented so you might have to check out the source-code Smiley
As I don't know what your skin looks like I can't tell you why the actor is outside the chatTable. Indeed I haven't used skins yet, I prefer Layouts.
7  Discussions / Miscellaneous Topics / Re: What Anti-Virus are you using? on: 2015-03-22 20:30:25
I've never had issues with Norton 360 (now known as Norton Security). And its not even a monthly subscription. You must be thinking of the crappy Norton Antivirus, which doesn't exist anymore..

Tomsguide ranked it pretty high,review-2588.html
Nope Norton 360, my inet provider has/had that subscription
8  Discussions / Miscellaneous Topics / Re: Crash - Corrupt File, Months of Work Lost on: 2015-03-22 09:40:31
I am backing up most of the stuff I use at bitbucket, free private repos. For public repositories I use github  Smiley
9  Discussions / Miscellaneous Topics / Re: What Anti-Virus are you using? on: 2015-03-22 09:36:38
Problems that most people think are related to viruses != problems caused by viruses.
Indeed I believe that windows protection is fine and as viruses are programmed before the protection I think that spending money on anti-virus is useless (maybe in some cases it's usefull).
On unix-systems I don't care about viruses at all  Grin
What I tried:
 - haven't found a virus in ages on my machine.
 - blocks inet connection that shouldn't be blocked and I haven't figured out how to disable that "feature".
 - still blocks stuff even if I disable it

Norton 360:
 - worst software I ever bought (I think I still pay monthly for it as I forgot to cancle the subscription)  Roll Eyes
 - destroyed my custom audio driver
 - removed some software from the dark side
 - deleted stuff without asking.
 - slowly

Some other free software that didn't last longer then one day on my computer.
As long as you don't use java-applets and have no-script enabled you should be fine.

As I store most of my date in git repos I don't care if I have to reset my system  Grin
Indeed I haven't got problems in years  Smiley
10  Discussions / Miscellaneous Topics / Re: Good language for prototyping on: 2015-03-01 22:01:58
What kind of prototyping?
For math-stuff I use python and matlab Smiley
11  Discussions / General Discussions / Re: Future career in programming and school suggestions? on: 2015-02-15 20:51:01
It may differ from person to person, but that's how I am mastering my educational live:
Set up MY own goals I have to  reach (The important thing is, that those goals have to be your goals, not the ones of your family or anyone else)
One the one hand side I got a plan, maybe it can be called work in progress blueprint of my live plan-A, which is targetting my life in 10 years (For example what I want to do/work etc).
Of course it differs from time to time, but it's a guideline I am following.
On the other side, I got a plan-B that targerts the near future. For example, be good enough in school to be able to go to the university you want and to study what you want or whatever you want to do. Plan-B is also some kind of backup related to the values of the society and you might don't need it for your plan-A (In most cases they overlap, if they don't, you may should think about plan-B again) , but in my case plan-A is connected with setting up a company, so it can't be really planed.

In addition, always give your best at start of anything, if you have to get an B to go to the university you want to go, go for an A (grades, not plan-A or plan-B) until you are sure, you will make it. At that point, I always start to work on plan-A or whatever I want because I know I will reach B Smiley

Why do I need B if I could just work on A. You never know what future brings and going for just one thing isn't a good idea (Maybe in some cases, but in most not). In my case I am studying physics as B (absolutely interesting but I don't want work as a typic (not sure if typic is the right word in that case) physicist - indeed most physic sudents won't work as a typic physicist after graduating). Maybe that will change in the future, but that major combines information I need for A and some stuff I am interested in.

One more important thing I learnt: If you have to chance to work on something you like as a team in school or university just go for it. Projects at home are a lot of fun and may be worth it, but you will meet a lot of interesting and helpfull people in those workgroups Smiley

Thanks a bunch Kev. It's a strange thing, growing up. It's coming a lot faster than I expected it...
Don't worry, if you go to university and don't have a lazy course you will become extremely fast older  Grin

To sum it up:
Work to reach your goals you have to reach and work hard on your trophy in a team  Smiley
12  Game Development / Newbie & Debugging Questions / Re: Would this work? GooglePlay Code on: 2015-02-02 08:32:05
Since when : Destroying asteroids = Violence?
Even if you create a game which is about feeding little kittens and add a highscore-table where users can add comments (about what a good person you are as you fed all those poor kittens) your game could be set to Medium Maturity.
Destroying asteriods seems to be intense fictional violence  Roll Eyes
You could write an email to the support but dont expect any response soon  Smiley
13  Game Development / Newbie & Debugging Questions / Re: AI on: 2015-01-11 19:20:02
Your bot is the projectile:
Detect if your bot can reach the block, if yes jump.
14  Games Center / Showcase / Re: A Top Down Shooter with a Shyamalan Twist on: 2015-01-05 19:31:01
 persecutioncomplex <- Me first two times 
A Top Down Shooter with a Shyamalan Twist...

Don't shoot cars with their top up or else...
Well played  Roll Eyes
15  Discussions / General Discussions / Re: Difference between libGDX and Swing And Java on: 2014-12-01 15:41:47
Not sure what you are asking but here we go  Smiley

Whats the difference between Java Thread and libGDX Thread?
Maybe I am wrong or get your question wrong but I am quite sure that there is no libgdx thread. They extend it sometimes but there is no other "default" thread that extends object direktly.
You can look up the diffrent Object <- Thread <- SomeLibgdxThread in the docs. For example:

I know that sleep() of java is a bit annoying and that libGDX is more stable.
Although i saw java games that are able to stabilize the FPS... So whats the difference?
I think that you are talking about the main-loop. sleep(1) -> thread sleeps at last 1 ms.
It depends on the main-loop:

Does Java swing threads for rendering is faster and occupy less memory than a same view using libGDX?
Dont think that the event-threads of swing can be compared to libgdx mainthread. Indeed Libgdx memory usage depends on the type of the libgdx app (desktop, android, ios, html)
Libgdx offers you opengl support so it will be faster if you use it (in the way it should be used).
16  Game Development / Newbie & Debugging Questions / Re: Is it possible to cast Vector2 float to int? on: 2014-11-23 17:12:42
position instanceof Vector -> true
position instanceof Integer -> false

You cant cast it, you have to cast the elements of the vector. Indeed it doesnt make sense, you should write your own Vector if you really want to use integers
17  Game Development / Game Mechanics / Re: How to simulate Electricity in Tile-based game on: 2014-10-27 19:40:04
Havent read everything and maybe it's just me but I wouldn't use an array.
If you have only some little parts of your map powered by elec. you would have huge arrays for nothing and you would need to iterate over them. In addition, if you dont want the whole map to be loaded as it's to big, you would run into problems like minecraft has.
For small elec. I would go for some tree-map-structured object Smiley
18  Games Center / Showcase / Re: Hovercraft on: 2014-10-26 14:17:08
What do I need for unlocking a new chapter?
You need to finish all the levels in the previous chapter.
I finished all levels without any star -> I wasnt able to play chapter 1
Afterwards I got min 1 star in each level except one in chapter 1 -> I was able to play chapter 2
Maybe it's a bug but there seems to be a difference between completing a level with 1 star and without a star.
19  Games Center / Showcase / Re: Hovercraft on: 2014-10-21 20:13:33
Good game, like it  Wink
Some questions:
How are the numbers of stars calc. you get after finishing a level?
What do I need for unlocking a new chapter?

You could/should answer those ingame Smiley
20  Discussions / General Discussions / Re: painful maths that will hurt your brain... on: 2014-10-13 12:11:04
I totally missunderstood your answer,  Roll Eyes
thought that your post
But it's an odd-looking equation and a series of answers like that isn't useful in all situations. Which makes me curious - what's the context? Where does it come from? What does x represent? Are you sure the working up to where you got this equation is right? Cheesy
refers to the post from quew8.
That's why I wrote the math step by step  Smiley
I hope that I didnt make a mistake, it has been a long day Smiley
No excuse but I knew that I was doing something wrong  Grin
21  Discussions / General Discussions / Re: painful maths that will hurt your brain... on: 2014-10-12 20:22:20
x is the 7th root of 28274625. Or the 24th root, or the 41st root etc. In other words 11.600...., 2.043...., and so on.

E.g. expressed in logs to base 11.600, 28274625 is 7, because raising 11.600 to the power 7 gives you 28274625.

But it's an odd-looking equation and a series of answers like that isn't useful in all situations. Which makes me curious - what's the context? Where does it come from? What does x represent? Are you sure the working up to where you got this equation is right? Cheesy

I think that quew8 answer is correct. You might want to have a look at:
As modulo isnt an injective operation you dont get one solution, you get a set.
You could also go for:
a = log x (b) % c
(n*c)+a= log x (b)
d = log x (b)
b = x^(d)
-> x = b^(1/d) //d != 0

I hope that I didnt make a mistake, it has been a long day Smiley
Anyways, I would go for the solution quew8 already posted as you can work with the ln much better then with log. ln has some nice features, for example the power series:

This is for calculating the reverse multiplicative modulo inside an RSA encryption function , a step by step thing is what im looking for.
As written above, keep in mind that modulo isnt injective. You will get the x that solves the equation and that you used to generate it, BUT you wont know what the "correct" x out of your set is.
No offense/dont want to be rude/just a hint, you might want to have a look at some more advanced math before implementing your own RSE  Smiley
22  Game Development / Newbie & Debugging Questions / Re: How to learn about build systems. (Gradle, LibGDX) on: 2014-10-09 19:02:16
So, if I take the Gradle build settings and the source code, and upload them to my (bitbucket) repository, then anyone with Gradle and the proper libraries and such on their system can build the necessary project for their IDE? Thank you for the clarification, I'll try taking a look at the Gradle setting files when I get home later.

Yes but you might have to add some files to the gitIgnore list as different IDEs create different files inside the project. Most of the files are ignored by default (.gitignore).
23  Game Development / Newbie & Debugging Questions / Re: [Android][Facebook] I can't get anywhere with this on: 2014-10-09 18:59:36
Havent used android facebook api as I go for facebook graph api.
The documentation isn't that good. It seems like that facebook assumes that you already know how it basically works and just want to look something up  Roll Eyes
Stackoverflow will be your best friend, but after some time you get used to it Wink

Why I prefer graph api:
I am using libgdx and dont want to write to much platform-specific code.
Graph-api can be easily debuged as most error-messages from facebook contain usefull information, you can even debug it in your browser.

Afterall I havent found any up to date + usefull tutorial, getting facebook running is for try and error commanders as the documentation isnt the best  Smiley
24  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Nightmod - Rapid development live-coding game specific IDE on: 2014-09-01 09:37:12
  (fn [screen entities]
    (height! screen 300)))

Love that type-safety syntax  Wink
25  Game Development / Newbie & Debugging Questions / Re: Should I move to LWJGL on: 2014-08-04 19:54:38
I havent missed any lwjgl content in libgdx,
if you want to go for modern opengl you have enough to learn Smiley
If you just want to create desktop-games you can go for lwjgl but anyways I would stick with libgdx, if you want to create games Wink
Yaay if if if if if if  Roll Eyes
26  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-28 08:05:59
I  think that there are restrictions how high a model airplane is allowed to fly.
But anyways I would go for a zeppelin  Roll Eyes
and a picture stabilizer like this

Of course no big zeppelin. Just a small one Smiley
One big problem is to get it back after it falls  Grin
Maybe a gps tracker will help but if some unkind person find a zepelin with an expensive camera he might keep it.

All in all it would be a nice advertisement for your city, you might wanna get some support because a small zepelin that flies autonomous will be a lot of work and it's not for free.

But if you go and ask for help you need something like a businessplan. Not a finished plan of your project, just something that you can show, so people say that you already put work in your project and aren't just daydreaming. It's a nice project and I am sure you can get some sponsorship if you don't rush it  Smiley
27  Game Development / Newbie & Debugging Questions / Libgdx Textures behave weird - some kind of content loss on: 2014-06-23 20:02:36
Hi, I already asked that question in the libgdx forum but got no response. post:
So maybe someone of you know what we are doing wrong. Has to be something stupid because I never had this error before.
Somehow the textures are mixed sometimes
How it looks like:

How it should look like:

On Nexus 5: It seems like that the texture of the bitmapfont replaced the triangle etc.
On samsung s1: The textures are black and/or mixed:
1. Start after installation
2. Restart (if the app wasn't closed using the taskmanager)
So it seems like that those textures are disposed/the content is lost.

That "content-loss" also happens in different situations. It seems a bit random sometimes.
How we are creating scene2d-elements:

    new Image(new Texture(Gdx.files.internal(...)));

Sometimes we are creating Drawables like:
   Drawable drawable =  new Image(new Texture(Gdx.files.internal(...))).getDrawable();
   //-> use drawable to create several Images
   Image image1 = new Image(drawable);
   Image image2 = new Image(drawable);
   Image image3 = new Image(drawable);

I already read that: (and everything else I found on google searching "libgdx content loss")
but as this blog post says:
In case of managed textures you might have noticed that to construct such a texture you always specify a FileHandle (Graphics.newTexture( FileHandle file, …)). That’s the secret to managed textures. They recognize when the OpenGL context was lost and automatically reload the texture from the file formerly specified via the FileHandle. If i’d allow you to draw to such a texture via Texture.draw(Pixmap) i’d have a bit of a problem. I’d have to keep track of your changes to the texture. I could not just reload the original file as all subsequent changes via the draw() calls you make would be lost since i can’t write the changes to the original file.
There shouldn't be a problem  Huh

We are using the current nightly version Smiley

thx for help

Fixes found:
Textures were mixed because of native dialogs (android). We called
 new Texture(...)
in the listener of the dialog provided by android. But as they run in a different thread that has gl context (not sure how it's called) it didn't throw an error BUT the textures were created in that different context. But as I am no gpu guru I don't know what really happens  Grin
After creating a queue and running the code on the mainThread it worked.
28  Games Center / WIP games, tools & toy projects / Re: Mazer on: 2014-05-04 19:31:40
The character will be back in version 1.2. Atm it's playing with the src-code. But as you can't see the src anymore you don't see the character!  Grin
Just two things to mention.
You published 1.0 yesterday, 1.1 today. Your game might get more attention if you just push "bigger" updates.
Secondly, I don't know how good you are at coding/what you have done so far, but you will learn more if it's open-src.
Anyway keep up good work  Smiley
29  Discussions / Miscellaneous Topics / Re: Advice on dealing with internet trolls? on: 2014-04-20 12:16:26
Click "ignore". Smiley Not ignoring is rewarding them.
You are a mad person, if you don't feed the troll it will die of starvation  Cry
30  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-18 14:58:02
I use kaspersky Pure 3.0.Used internet security before... Dude, its awesome.
No virus whatsoever.After i installed i ran some checks with another antiviruses to check if kaspersky was really working and it is.
Just fine.
kaspersky removes files without asking and you can't restore it. It destroyed my custom sound-driver and it killt the software I used for playing with and some other stuff. (And yes the software was clean)
I bought it but after the first day I removed it  Smiley
Pages: [1] 2 3 ... 9
nelsongames (13 views)
2018-04-24 18:15:36

nelsongames (11 views)
2018-04-24 18:14:32

ivj94 (586 views)
2018-03-24 14:47:39

ivj94 (49 views)
2018-03-24 14:46:31

ivj94 (383 views)
2018-03-24 14:43:53

Solater (63 views)
2018-03-17 05:04:08

nelsongames (110 views)
2018-03-05 17:56:34

Gornova (159 views)
2018-03-02 22:15:33

buddyBro (707 views)
2018-02-28 16:59:18

buddyBro (93 views)
2018-02-28 16:45:17
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!