Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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 ... 30
1  Games Center / WIP games, tools & toy projects / Re: Final Fantasy based game - Angel's Destiny on: 2015-08-04 18:38:48
Sorry to disturb you.

Apology accepted.

Sorry to contradict you but using copyrighted content without the consent of the copyright owner(s) even though you aren't selling anything is illegal.

Not a contradiction. A technical fact. A weak one at that, almost embarrassingly so, considering the context. Fair use doctrine and all that. But I forgive you and accept your apology.

Edit.: I agree with SHC. Moreover, it's good to accept to start a project by the beginning, even with crappy artworks. When you start making a cake, do you expect that the ingredients will magically appear in front of you? Making a game can require months or years of "work". If you want to get a nice result immediately lazily, maybe game programming isn't for you

There's a saying in my country, something about how nobody is born a smith. Granted it doesn't translate well - but what I'm trying to say, bearing no judgement of course, is that perhaps walking through life with a baguette up one's bum bum may not be the most graceful of parades.
2  Game Development / Newbie & Debugging Questions / Re: 2D-MMORPG physics engine on: 2015-08-04 18:08:55
If you want box2d level physics then you're better off sticking with it. Just be sure to make your game deterministic and probably opt for some kind of lockstep model for syncing the clients.
3  Games Center / WIP games, tools & toy projects / Re: Final Fantasy based game - Angel's Destiny on: 2015-08-03 15:24:00
Oh come on @gouessej

As long as you aren't selling anything asking forgiveness rather than permission is fine - don't worry about it. Plus you can always change the art later.
4  Discussions / General Discussions / Re: Recurring issue with making games on: 2015-08-01 04:37:38
@topic yeah we all know this problem... cows go moo :3


3. Try making a canvas (javascript/web) game or two. It's easy and fast to get feedback.

Thats interesting - I really dread making anything in javascript because javascript is weird, has no real OOP, is hard to debug and all.
What frameworks do you recommend?

Also sound programming seems to be a mess, I guess it would imply minimal or no sound...

The suggestion is based on my personal experience. At the beginning I didn't like javascript either - but I've found web development to be the most fun I've had with programming in a long time. And the most rewarding too in terms of quick feedback, development and work (aka money).

It's not necessarily harder to debug although the dev setup may take a bit more work/getting used to than a fully fledged IDE provides out of the box. Browser (Chrome especially) dev tools are great (even have hotswapping nowadays) + you can use pre-processors like jshint/lint to catch bugs immediately.

You can do OOP with javascript. Javascripts prototype system can mimic classical OOP. And now with ES6  (and Babel.js) it's as easy as using the familiar keywords 'extend' and 'class' (it still uses prototypes behind the scenes).

If you're specifically into game development Phaser.js or the Create.js suite are great alternatives. Another great rendering framework with game dev in mind is Pixi.js (which Phaser.js uses) or three.js for 3d. Or simply not use a framework at all.

For large projects (> 1000 LOC) you'll definitely want to be using some kind of bundler that will sort out your dependencies for you such as Browserify (my fav), WebPack or RequireJS.

As a side note, the web dev environment requires familiarity with the terminal/console or you'll struggle (at least at the start) using stuff like these bundlers and preprocessors.

A few things you might get inspired from:
https://www.youtube.com/watch?v=RTxtiLp1C8Y (JS wizardy)
https://www.youtube.com/watch?v=avwDj3KRuLc (talk by a dude who makes a kind of minecraft clone with javascript (software rendered, aka no webgl))
https://vimeo.com/105955605 (space invaders game from scratch, no libs)
5  Discussions / General Discussions / Re: Recurring issue with making games on: 2015-07-31 08:21:14
Well, without going into "hard works trumps talent" and all that - here's a few ideas you could try.

1. Do code jams - with restrictions/time limits. Restrictions set you free
2. Simple simple simple. Stop making frameworks, make games.
3. Try making a canvas (javascript/web) game or two. It's easy and fast to get feedback.
4. Don't work on or think about the project full time - code on it every day for only 5-15 minutes. Do a little change, fix a thing, add a comment, debug a thing - baby steps
6  Game Development / Newbie & Debugging Questions / Re: Isometric Object Rendering on: 2015-07-22 23:13:26
This may help, maybe not: http://www.java-gaming.org/topics/drawing-isometric-tiles-inside-a-screen/24922/msg/212780/view.html
7  Games Center / WIP games, tools & toy projects / Re: Babbie's first software-rendered ray-tracing on: 2015-07-02 04:51:10
Played around with raycasting myself a few months back in javascript. Never had the time to delve into transparent walls (windows) and variable height walls though - so keep us updated if you ever play around with that.

source: https://github.com/hannyajin/raycast
demo: http://ray.jin.fi/
8  Discussions / Miscellaneous Topics / Re: What's your favorite OS and why? on: 2015-07-01 16:53:01
Win7 for play. OSX for work (laptop). Unix (most familiar with Debian) for both work and play.

Picking favourites is pretty meaningless.
9  Discussions / Miscellaneous Topics / Re: How to Learn Web Development for Java Programmers on: 2015-06-28 22:41:28
As far as I'm concerned, the only place you need to go to learn about web development is w3 schools. http://www.w3schools.com/. Literally that website, look at the menu down the left hand side. HTML, CSS, JavaScript (Including JQuery, AJAX and Angular and Bootstrap if you're interested in such things) and then goes onto all kinds of server side and more core technologies. And that's just the tutorials it shows there. There are plenty more on pretty much anything you'd ever need to know about developing anything for the web. The tutorials are great and they've even got interactive examples. Look no further.

This makes me cringe a bit, but maybe the site has improved over the past few years? Full disclosure I haven't touched the site in years. w3schools is, or at the very least, used to be notorious for misinformation and a good cause of major beginner web dev headaches. They're not in any way affiliated with w3c btw. See http://www.w3fools.com/.

Even so the Mozilla Developer Network (MDN) is a good place for accurate information https://developer.mozilla.org/en-US/

If you're more into a classroom approach https://teamtreehouse.com/ is a good choice imho.
10  Game Development / Networking & Multiplayer / Re: Lag when sending position data on: 2015-06-28 17:51:03
Manage the state of the game server side and send an updated blob of state of the game to the clients at set intervals instead. Also you can interpolate between the most recent and second most recent states client side to achieve "smooth" looking movement.

http://www.gabrielgambetta.com/fast_paced_multiplayer.html
11  Discussions / General Discussions / Re: IRC Channel for Java-Gaming.org on: 2015-06-28 17:43:42
Have you considered https://slack.com/? A lot more user friendly and completely compatible with old IRC nerd tools.
12  Discussions / Miscellaneous Topics / Re: How to Learn Web Development for Java Programmers on: 2015-06-28 17:10:51
Learn the basics of HTML, CSS and JS (i.e. HTML5) and especially how they work together. Broadly speaking HTML is the content of the site, CSS is the styling/graphics and JS is the glue/functionality that ties it all together.

After you got the basics down, which is all client-side, you might want to look into the server-side of things. Which since a few years ago can also be done in JS using NodeJS - a very interesting project in both implementation and surrounding community - which can be used to build a web server with a few lines of code.

If you get into more sysadmin or webmin stuff you'll want to look into things like Apache and Nginx, not to mention basic DNS or unix know-how, and get familiar with how they can replace/substitute your web server and/or work with your web app.

The web is and has been moving forward extremely fast. Frameworks come and go and fall in and out of favor every few months.

Ajax is another thing you'll run into which basically only means getting content from a server without reloading the page on the browser (using JS). Traditionally, like, 10 years ago, every time you clicked something on the web you would send a request to the server and the server would send you back a pre-rendered completely new full HTML page. These days a variety of different things can happen such as rendering on client side and or inserting stuff to an already existing page (using JS) or fetching something from a server or another webpage. SPA vs Static sites etc. It's really the wild west of web development atm.

You can do a "blog" a variety of ways. Either edit the static sites each new blog post or have the site read from some database and edit the database. Or bundle up what I just said into an UI that you can use without yourself directly fiddling with the database (i.e., pretty much a mini CMS).

Along the way to server side you'll want to get familiar with databases and what they are. Basically they're an abstraction of writing text into a file, i.e., writing stuff down and getting it back. There's a lot of options. MySQL is the old school way while lots of new DB's have been popping up since the NodeJS age such as MongoDB, Redis or RethinkDB.

If you don't want to fiddle with server side and still have a database you can use services like firebase.com which handles stuff like user authentication etc all for you with a simple client side library (again, JS) you can use. Services like these are very nifty and you don't have to know diddly squat about unix, servers and stuff like that. Comes with a nice webview of your database etc - of course, for enterprise apps it comes with a nice price tag as well but a great choice for front-end devs. You'd need a database to create sites like facebook which has comments and chat etc.

JSON is a big deal and it's simple as shit. It's the way JS presents objects - JavaScript Object Notation. People like it so much they use it everywhere nowadays where you want to send data in a tangible workable form to and from somewhere. Just like XML it's a way to present data. Essentially it's a just dictionary or in Java it'd be a HashMap. It's a lot easier to understand than XML IMHO.

There's a lot of open source stuff out there you can look at and learn from. Most of it on github. JavaScript can be tricky to wrap your head around at times but it's not complete garbage as some would have you believe. Async callbacks and function scope are powerful features that goes hand in hand with the async nature of the web.

You'll undoubtedly hear or come across jQuery at some point and all you need to know is that jQuery is essentially only a simple ("better") API of working with your HTML/CSS from JavaScript than pure vanilla JavaScript. For instance, getting a HTML tag with the id of main-content would be $('#main-content') instead of document.getElementById('main-content'). This isn't as true anymore as it was 5 years ago. 5 years ago browsers had a lot of unique quirks you would have to account for. So you would have to write code that checks for if the current browser is Internet Explorer and write different code to do the same thing - jQuery was an abstraction of these "quirks" so you didn't have to worry which browser the user was using when viewing your site. This is much less of a problem today but still exists to some extent - and if you want IE8 compatability you'd better stick with jQuery. jQuery has grown and does a few other things as well like animation etc. Just remember that jQuery is simply a JavaScript function that is loaded before your other code does. So the '$' mark is simply a function name. I suggest reading the jQuery source for more info. Also: http://youmightnotneedjquery.com/

Also, press F12 (or Apple+Shift+J on Mac IIRC) in your browser to open up the console to fiddle around with/look at what's really making up the site you're currently viewing. F.ex you can type this into the console
1  
$('img').animate([{opacity: "0.5", transform: "scale(.5)"}, {opacity: "1.0", transform: "scale(1)"}], {direction: "alternate", duration: 500, iterations: Infinity});


One more thing, when you look at sites source code you might see all jumbled up scribbly nonsense - this is because in production you'll want to minify and compress the files you are sending over the wire for better loading speeds. This also has the side effect of obfuscating the code.

2cents
13  Discussions / Miscellaneous Topics / Re: What are your habits while you're programming? on: 2015-05-14 08:31:15
14  Java Game APIs & Engines / Java 2D / Re: Mirroring Isometric image on: 2015-05-14 07:59:25
A negative width on g.drawImage might work.

15  Game Development / Game Mechanics / Re: Using delta time messes up movement on: 2015-05-06 08:44:53
What @Springrbua is describing is a simple time accumulator.

In code it could look like this (javascript):

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
module.exports = function(rate) {
   var accum = 0;
   return function(time, callback) {
      accum += time;
      while (accum >= rate) {
         accum -= rate;
         callback(rate);
      }
   };
};

source: https://github.com/ericlathrop/time-accumulator

Might also want to check out this:
https://www.youtube.com/watch?v=avwDj3KRuLc&t=21m0s
16  Discussions / Miscellaneous Topics / Re: What do you define as a programming language? on: 2015-05-01 18:24:30
<a href="http://www.youtube.com/v/MSyIhapMdI8?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/MSyIhapMdI8?version=3&amp;hl=en_US&amp;start=</a>
17  Game Development / Newbie & Debugging Questions / Re: Getting errors in CMD on: 2015-05-01 18:21:22
do you have the "public static void main(String[] args) {};" method in the class you're trying to run?
18  Games Center / Showcase / Re: You can't fight here, this is the War Room! on: 2015-04-30 14:40:15
The debug version didn't output anything but I ran the exe as admin and it ran fine.

As for the game, well, can't go wrong with some Dr Strangelove.

IMHO you should stick with HTML5 for simple/quick LD games - makes deployment much much easier and brings the audience within reach of a single click.
19  Game Development / Networking & Multiplayer / Re: Smartphone external IP problem on: 2015-04-30 14:16:12
I don’t want be rude.
But it not ethical, is this so hard write: “Ok” or “Thanks” or at least anything “I read it”
Or click “no one care” medal button.

This is so frustrating when you wasting time on some one and hi even can’t say that hi read answer on own question.

Nothing personal: I don't say all this if that was first time, or second, or third …^^

P.s That why I so rarely answer someone - many of them don't care answer XD

pp.s And yes many ppl here doing the same, but its wrong really)
Its destroy forum and mood to do something. People let be ethical and tolerant - please!!!


No reply doesn't mean they didn't read it. Also, I think that omitting the one-word "thanks" posts is better,
That why forum have "Appreciate" button  Pointing

If no one give you needed answer,
or you don't need it any more
or find self solution say THAT )

I would hope that most people don't need the confidence boost of someone saying "thanks" after their post,
IMHO: If you can't even say thanks to someone why other must help you?

IMHO 2: I understand that all useless, but at least I try.

p.s https://www.youtube.com/watch?v=EloDnA1_XEU

Not everyone has time to read the forums every day. Or even care or notice the medal awarding system.  Plus you come off as a needy imaginary point hustler - it's only been a day.

More importantly, however, I don't see any particularly "medal" worthy (indulging their superficial merit for the moment) content other than a sign of interest to the OT.

p.s gratitude != respect

my 2cents
20  Games Center / WIP games, tools & toy projects / Re: Tower Defense prototype on: 2015-04-30 09:00:15
I had 1.8u40 - there's really no need to build for the latest version is there? Anyhow, worked fine, looks cool!
21  Games Center / WIP games, tools & toy projects / Re: Tower Defense prototype on: 2015-04-30 08:34:05
Ahh, this takes me back!
Click to Play


Anyhow, the app crashes for me, giving me this

JVM Architecture: 64bit

>>>>>>>>>>>>The game will now start.<<<<<<<<<<<<<<
Shader log:

Inserted click event!
Inserted click event!


and this

22  Discussions / Miscellaneous Topics / Re: TheDungeonLooter (LiveStream Coding) (Offline!!!!) on: 2015-04-30 08:12:08
https://www.livecoding.tv/ Might be a more suitable platform.
23  Game Development / Newbie & Debugging Questions / Re: Getting started with game programming on: 2015-04-29 00:37:50
Watch this: https://vimeo.com/105955605

It's not java but it doesn't matter - the principles are the same.
24  Game Development / Newbie & Debugging Questions / Re: Drawing voxel pixels? on: 2015-04-28 01:09:36
For what it's worth, I just draw rays through the 3d array - as soon as I hit a block, I drew it. With this being orthographic projection only these rays were essentially along the depth axis and then stepping down one block at a time.

Cheers,

Kev

ala wolfenstyle raycasting? ray.jin.fi
25  Java Game APIs & Engines / OpenGL Development / Re: GLSL: packing two floats into one on: 2015-04-27 02:04:13
http://mywiki.wooledge.org/XyProblem ?
26  Discussions / Miscellaneous Topics / Re: Random Image Generator on: 2015-04-26 23:31:46
32^(100x100) is a bit more than just "a lot". Given that there are an estimated only 10^80 something particles in the observable universe.
27  Game Development / Newbie & Debugging Questions / Re: [SOLVED] Game (Executable .jar) won't Load Files on: 2015-04-26 21:39:40
https://dl.dropboxusercontent.com/u/4856429/zips/javaFolderTest.zip

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
import java.nio.*;
import java.nio.file.*;
import java.nio.charset.*;
import java.io.*;

import javax.swing.*;

class Main extends JTextArea {
  String text = "";

  public Main() {
    this.setRows(6);
  };

  public void run() throws IOException {
    Path path = FileSystems.getDefault().getPath("res", "list.txt");
    BufferedReader br = Files.newBufferedReader(path, StandardCharsets.UTF_8);

    String str;
    while (true) {
      str = br.readLine();
      if (str == null)
        break;
      print(str);
    };
    print("Done!");
  };

  private void print(String str) {
    text += str + "\n";
    this.setText(text);
    System.out.println(str);
  };

  public static void main(String[] args) {
    Main m = new Main();
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.add(m);
    frame.pack();
    frame.setVisible(true);

    try {
      m.run();
    } catch (Exception e) {
      e.printStackTrace();
    };
  };
}


[EDIT]:

Quote
solved  ! Grin Grin Grin Grin Grin
Click to Play
28  Game Development / Newbie & Debugging Questions / Re: Game (Executable .jar) won't Load Files on: 2015-04-26 18:37:23
http://www.java-gaming.org/topics/loading-a-bufferedimage/30470/msg/282671/view.html#msg282671

http://www.java-gaming.org/topics/having-an-issue-loading-text-files/30433/msg/281026/view.html#msg281026
29  Game Development / Game Mechanics / Re: Using delta time messes up movement on: 2015-04-26 07:59:17
Or better yet use a fixed step game loop. A variable step loop is more often than not a mistake.
30  Discussions / General Discussions / Re: Check network state in libGDX on: 2015-04-26 07:45:47
http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/Net.HttpRequest.html
Pages: [1] 2 3 ... 30
 
bilznatch (26 views)
2015-08-04 11:03:17

SHC (44 views)
2015-08-01 03:58:20

Jesse (25 views)
2015-07-29 04:35:27

Riven (48 views)
2015-07-27 16:38:00

Riven (26 views)
2015-07-27 15:35:20

Riven (28 views)
2015-07-27 12:26:13

Riven (19 views)
2015-07-27 12:23:39

BurntPizza (42 views)
2015-07-25 00:14:37

BurntPizza (56 views)
2015-07-24 22:06:39

BurntPizza (35 views)
2015-07-24 06:06:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

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
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!