Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (715)
Games in Android Showcase (214)
games submitted by our members
Games in WIP (788)
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 ... 33
1  Game Development / Newbie & Debugging Questions / Re: 3D dungeon crawler on: 2017-03-19 22:30:57
There is no best way.
2  Java Game APIs & Engines / Java 2D / Re: Axonometric Projection? on: 2017-03-07 14:30:19
LiquidNitrogen has the right idea; what were you even thinking with `Math.atan(0.5)`?

Note that the order of the transforms matter (scaling, rotating, translating); May vary between implementations/engines.

Demo I made out of boredom: https://jsbin.com/gadevexuwi/1/edit?html,output
3  Game Development / Game Mechanics / Re: Simulating orbital gravity with a prediction of trajectory (Multiple attractors) on: 2017-02-22 21:58:40
Yeah, so simulate it.
4  Game Development / Game Mechanics / Re: Simulating orbital gravity with a prediction of trajectory (Multiple attractors) on: 2017-02-20 18:47:25
Just run the simulation, why would you need to predict anything?
5  Game Development / Game Play & Game Design / Re: Too much abstraction? on: 2017-02-07 18:01:31
Highly recommend: https://www.youtube.com/watch?v=mVVNJKv9esE&feature=youtu.be
6  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Ongoing project: Type-Safe access to ByteBuffers on: 2017-02-05 13:17:46
I don't understand. What are you trying to accomplish? And why isn't JNI an option?
7  Games Center / Contests / Re: Urgent announcement about java4k.com on: 2017-02-04 21:28:50
I spend more money on a cup of coffee a day than a single domain name per year..
8  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Advantages of Ant? on: 2017-01-29 19:26:23
What's wrong with npm? It's great.

Usually it's a good idea to use exact versions for your dependencies regardless because sometimes people use semver wrong, either unknowingly or unintentionally, and break stuff.

Speaking of npm, the ecosystem has gone through a few task runners itself: grunt, gulp, bundlers (browserify, webpack, rollup...) and more recently npm scripts to name a few.
9  Discussions / General Discussions / Re: How do you Guys manage it? on: 2017-01-25 16:20:41


This is the extent of my personal artistic ability. Good luck.
10  Discussions / Miscellaneous Topics / Re: What's in your gamedev software rig ? on: 2017-01-24 22:47:36
Hardware:
MacBook Air 2014Q4 (1.3Ghz i5, 8GB RAM, Intel Graphics 5000)

Software:
Vim
Tmux
Chrome

Not really make proper games though, more akin to shitty demos, like:
http://ray.jin.fi/
http://flapmmo.jin.fi/
http://tetris.jin.fi/
http://jin.fi/projects/Misc/pocketcraft/
http://jin.fi/projects/Misc/ld29/
http://gof.jin.fi/
http://jin.fi/projects/Misc/pairs-game/
http://jin.fi/projects/Misc/twin/
http://codepen.io/talmobi/pen/RWVBzG
11  Game Development / Newbie & Debugging Questions / Re: Libgdx HTTPRequest on: 2017-01-11 10:51:00
Lots of sites load content dynamically directly through API's these days. Usually text based like articles, blogs, comments, posts and image/video URLs (that are later <img src="">:ed to the page) (Although avatars and small images are sometimes base64 encoded directly as a string). Using ajax-calls like you said (XMLHttpRequest).

However, since the API is public (you don't have to register or be logged in to see comments) practically anyone could make use of your content (and they can).

Using Access-Control-Allow-Origin, however, you can restrict access to the API (and its content) from a specific domain. This way someone else can't simply make another site using content from your API (since 99.9% of users use modern Browsers like Edge, Chrome or Safari that respect CORS).

Nothing of course prevents them from creating some kind of proxy (an HTTP request not issued through the Browser) to your API (but those are much more easier to detect and block), or simply copy/pasting your content (but still takes much more effort than simply using your API directly).

And if someone is somehow abusing your content anyway regardless of CORS, since your API is flexible, you can push a button to serve GOATSE or jargon from your old endpoints while keeping your own domain unaffected.
12  Game Development / Newbie & Debugging Questions / Re: Libgdx HTTPRequest on: 2017-01-10 03:18:33
It's not, though. I mean technically it's an accepted vulnerability to break out of the Same-origin policy (which is different).

It's practically a gentlemen's agreement between the web server and the browser.

It doesn't actually secure the web server in the slightest, nor the browser for that matter, and not really the user either - the only scenario I can think of is a compromised domain hosting the app accessing the same API - in which case the user has already been bamboozled (in fact it would make more sense for the comprised domain to NOT use the same API but simply grab the user details by proxy in that case so as to keep the original host unawares).

So in practice CORS really only prevents content leeching (through browser land). But certainly doesn't actually secure anything. In fact browsers put heavy restrictions on CORS requests.
13  Game Development / Newbie & Debugging Questions / Re: Libgdx HTTPRequest on: 2017-01-02 14:50:33
Ah, yes, your web server needs to set the "Access-Control-Allow-Origin" header on the http response, otherwise the Browser will not allow the client side code to receive the message.

Browsers comply with this since it prevents blatant content leeching  (doesn't prevent anyone from accessing it directly though)
14  Game Development / Newbie & Debugging Questions / Re: Libgdx HTTPRequest on: 2017-01-02 14:47:07




Seems to work for me?
15  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-17 10:44:13
My "But why?" gif is so relevant in this thread.

16  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-06 05:29:46
Wrote a long post on the Puppyblog.
Give me your filthy cash!!! If I could blag a buck a month out of everyone on JGO...

Cas Smiley
A little personal question. If titan attacks sold as much as steam spy claims, i guess you wouldn't have so much funding troubles. So my suspicions of steamspy accuracy are correct? they are often way off.

Incidentally there is really interesting math with sphere and grids and hexes. It comes to one simple fact. You *cannot* evenly space more than 20 points on the surface of a sphere. Maths.. Who knew.

A respectable number for sure, but Steam takes a minimum of 30%, take away taxes, various costs of running a company, salaries, development time, rent/cost of living, marketing, subcontractors, risk, debt -- frankly I'd be surprised if they broke even.

Plus a funding campaign isn't just about the funding. It's also about marketing and market research bundled into one. You can get a sense of the interest of the game and also spread the word out at the same time among other things.
17  Game Development / Newbie & Debugging Questions / Re: Multi thread Memory Visibility inside Synchronized keyword on: 2016-11-04 19:31:43
rhetorical

<a href="http://www.youtube.com/v/G2y8Sx4B2Sk?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/G2y8Sx4B2Sk?version=3&amp;hl=en_US&amp;start=</a>
18  Discussions / General Discussions / Re: Programmer jokes on: 2016-09-20 18:16:26
Oh my:



I have this book. It's great especially for beginners new to javascript. Although it's a few years old, and doesn't talk about es6 at all, the core concepts still hold up today. Particularly everything and all the "tricks" with closures (function scoping). These aren't secrets but they're certainly foreign to non-functional (programming) people - aka most people new to javascript.

It's written by the author of jQuery, John Resig, circa 2013. The design principles introduced here are industry standard today and you'll find them in pretty much any js library.

I guess the image and title is a bit silly, but the author is moderator of both the /r/javascript and /r/ukiyoe subreddits (/u/jeresig)
19  Discussions / Miscellaneous Topics / Re: There is no hope on: 2016-08-21 10:50:33
<a href="http://www.youtube.com/v/4duJdeKTwHY?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/4duJdeKTwHY?version=3&amp;hl=en_US&amp;start=</a>
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-10 18:10:56
Put in the oven and hope for the best.
21  Discussions / General Discussions / Re: JGO Website Error on: 2016-06-06 18:23:26
<a href="http://www.youtube.com/v/0oBx7Jg4m-o?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/0oBx7Jg4m-o?version=3&amp;hl=en_US&amp;start=</a>
22  Java Game APIs & Engines / JavaFX / Re: JavaFX For Pixel Games on: 2016-06-04 10:21:09
Couldn't care less about X11 Smiley Seriously, who actually uses that for real work?
Quote
Use HTML5 (javascript + html + css).
Now it's funny you should say that but I've looked quite seriously into the potential for this for game UIs but still have the same ol' problem of no libraries out there actually render directly natively to OpenGL. It's all render-to-a-system-texture-and-upload-it-every-frame. This is crap in two ways: 1. the whole copying it to OpenGL every frame thing 2. mixing it with OpenGL rendered parts means readbacks and thus terrible performance.

Cas Smiley

Certainly. You're easily dealing with 1/10th of the performance you're accustomed to outside browser land (electron etc included) and without all the bells and whistles.

What this means in practice for most people is that you can't get away with writing horrible code - you can still do a lot if you do it smart.

There are complete game frameworks available such as http://phaser.io/ (uses pixi.js to render) (free open source) and http://impactjs.com/ (100$) are probably the "best".

As an example this game uses no framework, just pure html, js and css: http://www.littlewargame.com/

As a bonus when in browser land you get the most advanced/used UI tools at your fingertips along with it.
23  Java Game APIs & Engines / JavaFX / Re: JavaFX For Pixel Games on: 2016-06-02 16:49:24
Use HTML5 (javascript + html + css).
24  Discussions / General Discussions / Re: Google wins trial against Oracle over Android on: 2016-05-27 20:24:06
because corporations have the same rights in law as you or I have.

Yeah, no.

[EDIT]: As in they reap the benefits but take none of the, erm, the other thing.

[EDIT2]: In other words a corp isn't personally liable for anything. A corp isn't a person. It's a construct. It's an important distinction I think. I feel context should be taken into greater consideration.
25  Discussions / General Discussions / Re: Google wins trial against Oracle over Android on: 2016-05-27 20:07:24
My point is precisely that it isn't you, me or anyone else personally - it's corporation and should be considered as such.
26  Discussions / General Discussions / Re: Google wins trial against Oracle over Android on: 2016-05-27 19:22:45
I'll suppose those programmers have never spent 20 years designing something, only for some giant corporation to come along and go "yoink! I'm 'avin' that" and subsequently make forty billion dollars out of it without giving them a bean.

Obviously not - but more to the point why should they care? Open Source is all the rage these days. You're making it sound like Oracle is a one man personal project. Clearly this decision benefits the system as a whole, no? Plus all programming languages are subject to a bit of a catch 22... All I'm saying is it's definitely not as black and white as you make it sound.
27  Game Development / Newbie & Debugging Questions / Re: Adding delta value in character movements? on: 2016-05-21 22:33:26
It ensures identical movement and speed regardless of how fast a computer can keep up.

In theory yes, in practice no. What you should do instead to get consistency is to call the tick an extra time for each dropped frame.
28  Game Development / Newbie & Debugging Questions / Re: Adding delta value in character movements? on: 2016-05-21 22:26:11
You're right, it is a gimmick. Don't use it.

Only use it when it has no side effects. Where it doesn't change or affect anything. A pure function if you will. For example interpolation inside the render loop. Although for most games that won't be necessary.
29  Discussions / Miscellaneous Topics / Re: Going to China for 2 months on: 2016-05-21 20:48:24
Also no matter how much you've studied - nobody will understand you at first - probably not even in the first few months. Basically you know nothing jon snow. Especially if you enter a region where they speak a dialect (aka most places).
30  Discussions / Miscellaneous Topics / Re: Going to China for 2 months on: 2016-05-21 20:46:01
Always watch both ways before crossing the roads - they use silent electronic mopeds that accelerate from 0 to top speed in a few seconds (they're awesome, definitely rent one - but they are silent as death).

The traffic rules are non-existent, it's first come first serve - basically don't ever get a drivers license, always use a taxi and or metro. (it is very scary sometimes since they all drive like they're insane)

Most food places are good, some are AVOID AVOID at all costs. Generally if there's a lot of people -> it's probably a good place no matter how "street" it looks. Do not enter low population food places (roaches literally crawling on the walls sometimes - i have first hand experience).

It's hot and moist/humid. Public toilets are all just holes in the ground. Always have napkins/paper with you. Always carry hand sanitiser and use before eating (this is not rude).

China is very rich and very poor - there is not much of a middle class. It's a big place - you can find anything. You will see incredible things and horrible things.

If you're not asian you will encounter mild racism, nothing horrible or obvious though. Your input in most things will probably be ignored completely.

They also smoke all the time everywhere and anywhere.

Also get travel insurance.

China is a lovely, sometimes frustratingly confusing place - have fun! Do recommend.

Also shanghai? Get face masks for most days (except very clear days). New mask for every new day.
Pages: [1] 2 3 ... 33
 
CopyableCougar4 (199 views)
2017-03-24 15:39:42

theagentd (181 views)
2017-03-24 15:32:08

Rule (239 views)
2017-03-19 12:43:22

Rule (223 views)
2017-03-19 12:42:17

Rule (228 views)
2017-03-19 12:36:21

theagentd (247 views)
2017-03-16 05:07:07

theagentd (243 views)
2017-03-15 22:37:06

theagentd (178 views)
2017-03-15 22:32:18

theagentd (172 views)
2017-03-15 22:31:11

ral0r2 (165 views)
2017-03-03 11:52:41
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

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!