Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (734)
Games in Android Showcase (222)
games submitted by our members
Games in WIP (811)
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 ... 34
1  Game Development / Newbie & Debugging Questions / Re: 2 questions, coding MMORPG in Java on: 2017-08-15 17:42:08
1. It's a silly question to begin with -- why restrict yourself arbitrarily?

2. Same as 1.

3. Most likely not. Possibly. Definitely the other way round. Net code is hard and can't simply be slapped on.

Also, as a tip, since you're way out in the water swimming with sharks -- why not try something a bit more tangible first -- make 2d multiplayer game with HTML5 for example with the backend in NodeJS/Socket.IO -- relativiely easy setup into networking with the tools to draw stuff on the screen.
2  Game Development / Game Play & Game Design / Re: Raycasting in a 3d game to create hitscan weapons on: 2017-08-13 21:17:41
..aren't you already using raycasting when rendering the game?

Essentially raycasting is casting a bunch of rays/projectiles in an arc around the camera -- these rays/projectiles have a direction they step through and check for collisions -- when they hit something they stop and you'll know the distance they travelled (so that you can draw the walls/etc big/small based on how far away they are from the camera).

eg:
https://github.com/talmobi/raycast/blob/master/app.js#L177
http://ray.jin.fi/
3  Discussions / General Discussions / Re: Steam Greenlight to be replaced with Steam Direct on: 2017-07-19 02:08:11
games have a gender?
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-01 12:22:17
Ah...cunt + straight pride week?  Nope, he's being an ass.  Even if being straight was illegal and/or got you killed in some places the cunt bit would ruin any potential point.

<snip> the cunt bit would ruin any potential point.

lmao. That's retarded.

I like how you use the words "potential" to insinuate there's no point behind the tweet -- and the word "ruin", almost as a synonym for "invalidate" (but you can't use that word since that would suggest that there indeed was a point behind the tweet), to suggest that even if there was one it would be of no merit due to the way it was presented.

Obviously he's being an ass but cmon bruh.
5  Game Development / Networking & Multiplayer / Re: Online networking question(s) on: 2017-06-05 14:13:52
You're mixing layers https://en.wikipedia.org/wiki/OSI_model

Generally TCP and UDP are used. Depends on the game. Most likely there's already some kind of API that does most of the heavy lifting for you so you don't have to deal with the Transport layer yourself too much.

I suggest you stick to TCP unless there's a specific reason why you would need UDP.

TCP and UDP in itself are quite low level -- there's so much more to net code in games.

eg: https://www.youtube.com/watch?v=vTH2ZPgYujQ
6  Discussions / Miscellaneous Topics / Re: Silly Programming Mistakes on: 2017-06-05 07:17:55
Only since 7.6. And if you got callback hell you're probably doing something wrong to begin with.

Not that there's anything wrong with Promises (async/await) per se as long as you know what you're doing.

@kingroka123

You should avoid using the 'new' keyword entirely, it's not necessary (unless some odd api requires it for some god forsaken reason).
7  Game Development / Game Mechanics / Re: Isometric Mouse Collision? on: 2017-05-29 14:12:05
Perhaps s.width / s.height doesn't correspond to the actual tile width/height (not necessarily the same as sprite width/height)

Nevertheless if the error remains constant on all the tiles it's just a small offset issue -- try adding +- offsets to the tiles until you get the correct behavior -- then you will know the actual error offsets in numbers and it might help you pinpoint the actual issue.
8  Game Development / Game Mechanics / Re: Isometric Mouse Collision? on: 2017-05-29 00:42:10
Seems like a sprite anchoring issue (should be top corner pixel of your isometric sprite) (the first tile top corner should be smack middle on the top left corner of the screen) -- that or screen offset issue.
9  Discussions / General Discussions / Re: Coding music! on: 2017-04-22 19:14:25
And here's a bit of a different mix from the previous genre

<a href="http://www.youtube.com/v/tGunmdqA82I?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/tGunmdqA82I?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/Jd4TgKaE6FI?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/Jd4TgKaE6FI?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/Nr_z2Imadn4?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/Nr_z2Imadn4?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/BsEu1EAma48?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/BsEu1EAma48?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/_1FagYg2m5c?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/_1FagYg2m5c?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/BEmgRaHt2tc?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/BEmgRaHt2tc?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/pA0VMbVgeQw?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/pA0VMbVgeQw?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/r8pIfZ1EIbA?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/r8pIfZ1EIbA?version=3&amp;hl=en_US&amp;start=</a>
10  Discussions / General Discussions / Re: Coding music! on: 2017-04-22 18:45:59
<a href="http://www.youtube.com/v/LYOtZvwNCsc?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/LYOtZvwNCsc?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/BMOsLAz4II4?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/BMOsLAz4II4?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/rSGnNMnvM6M?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/rSGnNMnvM6M?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/zJqLH8EA2rM?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/zJqLH8EA2rM?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/A9ew7glBHy0?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/A9ew7glBHy0?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/e_63m0rwhLc?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/e_63m0rwhLc?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/HL_3D4b3UZM?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/HL_3D4b3UZM?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/QpDn4-Na5co?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/QpDn4-Na5co?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/sFwcLC5HC9I?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/sFwcLC5HC9I?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/1AHNQZwCkd8?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/1AHNQZwCkd8?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/l3NoYyNKSXQ?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/l3NoYyNKSXQ?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/rShyYcdWeK0?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/rShyYcdWeK0?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/whRcgZrUWwU?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/whRcgZrUWwU?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/2Cw0lK6n5Y8?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/2Cw0lK6n5Y8?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/Dj173JEwJR8?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/Dj173JEwJR8?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/KdbNc8QzXpo?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/KdbNc8QzXpo?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/mv1XUyRqcGU?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/mv1XUyRqcGU?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/UJsUpeXK6Jo?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/UJsUpeXK6Jo?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/1Vsf3zYppP4?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/1Vsf3zYppP4?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/SHCY9a0KEvs?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/SHCY9a0KEvs?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/yergWdn968o?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/yergWdn968o?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/DY1s9SmrQRE?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/DY1s9SmrQRE?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/MB5mRTkJmFA?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/MB5mRTkJmFA?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/qApOLaLYZb0?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/qApOLaLYZb0?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/UF9GNLzaIwg?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/UF9GNLzaIwg?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/HMLrn_bLmT0?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/HMLrn_bLmT0?version=3&amp;hl=en_US&amp;start=</a>
<a href="http://www.youtube.com/v/d_HlTGzkKeE?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/d_HlTGzkKeE?version=3&amp;hl=en_US&amp;start=</a>
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-04-18 02:14:48
Played around with ffmpeg and headless browsers:

gif reverser thing:

http://i.imgur.com/7hYptTI.gif
http://gifr.jin.fi/http://i.imgur.com/7hYptTI.gif
http://gifr.jin.fi/https://lovelace-media.imgix.net/uploads/413/3b2629e0-9542-0133-6dce-0e87cd6e10c7.gif


Opens a url, flips the images, transforms a's to å's and o's to ö's

http://nordicshot.jin.fi/http://java-gaming.org
http://nordicshot.jin.fi/https://imgur.com


And a site thumbnail shortcut thing:

http://qs.jin.fi/?url=https://slashdot.org
12  Game Development / Networking & Multiplayer / Re: Saving characters online. on: 2017-04-08 17:37:39
WoW uses Oracle RDBMS which is an SQL like thing. Relational databases aren't going anywhere - pretty much every MMO should be built around one.

SQL in general is not waning in usage. There are many flavours of it.

NoSQL databases have their place but won't probably ever compete with relational databases.

Use what make sense. A lot of big projects use many databases for different purposes. Redis is quite popular as a cache for example.

Big messy projects like an MMO will (should) definitely use a relational/SQL database. NoSQL databases don't even come close for those kinds of use cases. At least not yet, probably never.

My favourites in these categories are Postgres (SQL), MongoDB (NoSQL) and Redis (message broker, cache)
13  Game Development / Newbie & Debugging Questions / Re: 3D dungeon crawler on: 2017-03-19 22:30:57
There is no best way.
14  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
15  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.
16  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?
17  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
18  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?
19  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..
20  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.
21  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.
22  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
23  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.
24  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.
25  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)
26  Game Development / Newbie & Debugging Questions / Re: Libgdx HTTPRequest on: 2017-01-02 14:47:07




Seems to work for me?
27  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.

28  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.
29  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>
30  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)
Pages: [1] 2 3 ... 34
 
cybrmynd (28 views)
2017-08-02 12:28:51

cybrmynd (42 views)
2017-08-02 12:19:43

cybrmynd (56 views)
2017-08-02 12:18:09

Sralse (61 views)
2017-07-25 17:13:48

Archive (493 views)
2017-04-27 17:45:51

buddyBro (640 views)
2017-04-05 03:38:00

CopyableCougar4 (1119 views)
2017-03-24 15:39:42

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

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

Rule (1082 views)
2017-03-19 12:42:17
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!