Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (582)
games submitted by our members
Games in WIP (503)
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 ... 27
1  Discussions / Miscellaneous Topics / Re: We need more website like www.staggeringbeauty.com on: 2014-04-20 15:23:57
Death by epilepsy.
2  Discussions / Miscellaneous Topics / Re: f.lux on: 2014-04-17 00:32:29
f.lux is great, been using it about a year now I guess.

About the red eye, correlation != causation.
3  Game Development / Newbie & Debugging Questions / Re: LibGDX and Getting Pixels From Sprite on: 2014-04-16 14:25:00
Use a fragment shader.
4  Discussions / General Discussions / Re: What genre/artists do you listen to while coding? on: 2014-04-13 23:09:29
I haven't seen one in ages. Maybe my memory fails me. I just wish it'd be easier to get a quick listen to whatever it is people are listening to. Might find something new and interesting - but I don't much bother copy paste searching etc.

On that note, I've mostly been listening to jazz and this recently: https://www.youtube.com/watch?v=Y8O-XrveIfs
5  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-12 23:58:46
I used to use a 123systems.net 10€ / year 256MB VPS but upgraded it a bit recently.

Used to run wordpress with lighttpd (basically apache) with fastcgi/php5 but switched to nodejs/expressjs on top of nginx because it suits me much better since it's more barebones and on-hands - wordpress has so much stuff I don't need or care about.

If you need to store large files, you may want to consider other options.
6  Game Development / Newbie & Debugging Questions / Re: Difference between adding to a JFrame and setting ContentPane ? on: 2014-04-11 12:47:49
http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html#add(java.awt.Component)

JFrame inherits/overloads add() a few times so it depends on what the GamePanel object is.

http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html#setContentPane(java.awt.Container)
7  Discussions / General Discussions / Re: "Multiplayer" AI challenge on StackExchange right now: Create Your Wolf on: 2014-04-10 19:39:44
This was funny, annoying that it required Java 8 for no reason. Made a wolf (StoneGuardianWolf) that aims to protect the Stones. Will maybe update it later to more aggressively protect them.

Made also a clunky javascript port for no real good reason - indefinitely available here: http://www.heartpirates.com/wildjs
8  Discussions / General Discussions / Re: Are there any artists on this forum? on: 2014-04-09 21:48:33
That last gif reminds me of this: http://comic.naver.com/webtoon/detail.nhn?titleId=350217&no=31&weekday=tue

(tip: sound on, preferably headphones. Also alone in the dark at 2a.m)
9  Game Development / Newbie & Debugging Questions / Re: Almost Completely Static Class Design on: 2014-04-09 21:45:00
Or you could get rid of all static and singletons. If the user wants to access it from anywhere they can themselves create a static reference to the object they create.
10  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-08 07:44:15
getColor() may have some overhead so if you're doing it a lot you should turn it into a n array instead.
11  Game Development / Performance Tuning / Re: Pixel Array Manipulation vs. Multiple DrawImage Calls on: 2014-04-07 04:59:54
Exactly. You'll have to draw the image in the end anyway (using AWT).

The overhead you're sidestepping is doing a bunch of g.drawImage calls which in most cases won't matter at all. There was a post about Swings behavior a while back - couldn't find it.

Point is, sidestep the g.call overhead only if you have to -and if you are at a point where you have to - you're either doing something very, very wrong or you should be using something much more robust (e.g., openGL).

The only other reason to manually manipulate the pixels are because of interest or boredom. A fine but somewhat redundant form of mental masturbation if only for pedagogical reasons.
12  Game Development / Performance Tuning / Re: Pixel Array Manipulation vs. Multiple DrawImage Calls on: 2014-04-07 02:57:17
Both use AWT. There's no reason to use one instead of the other. You can use both.
13  Game Development / Newbie & Debugging Questions / Re: Having trouble with ArrayList on: 2014-04-07 02:48:43
It must be said that you should not be creating static methods or static init blocks to solve a problem - especially one as silly as this. They should be used when intended.

You should never be using static unless you know exactly what you're doing.

To test small snippets of code you can stick it inside the objects main method but preferably you should do it inside the objects constructor or call the objects methods from the main method where you instantiate your object.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
class Game {

  Player player = new Player();
  List<Entity> entities = new ArrayList<Entity>();

  public Game() {
     entities.add(player);
     System.out.println("The Game");
  }

  public static void main(String[] args) {
    new Game();
  }
}
14  Game Development / Newbie & Debugging Questions / Re: My most inefficient way of implementing running texts. How to optimize? on: 2014-04-05 19:30:32
Sleeping isn't really an optimal solution for creating the typing effect. See this thread: http://www.java-gaming.org/topics/would-there-be-any-thread-sleep-problems/28774/msg/262512/view.html#msg262512
15  Game Development / Newbie & Debugging Questions / Re: My most inefficient way of implementing running texts. How to optimize? on: 2014-04-05 13:44:13
Optimizing is unnecessary. Drawing a few lines of text, no matter how, has practically zero effect on performance.
16  Game Development / Game Mechanics / Re: Sidescroller jumping/collision (Not Java, but Javascript) on: 2014-04-03 10:18:00
Changed to do this, even if it burns my soul a little, seeing as it's now 2n instead of just n in runtime. But it works, and it'll have to do for now. Smiley

<a href="http://www.youtube.com/v/31g0YE61PLQ?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/31g0YE61PLQ?version=3&amp;hl=en_US&amp;start=</a>
17  Game Development / Game Mechanics / Re: Sidescroller jumping/collision (Not Java, but Javascript) on: 2014-04-02 22:39:19
LiquidNitrogen has the right idea. Even better if you separate the hor/ver movement into moving left/right up/down.

Additionally, looping through all entities to check for collisions isn't really efficient at all in the long run - but hey, if it works it works.
18  Discussions / General Discussions / Re: JGO Kickstarter on: 2014-04-02 00:02:49
This thread genuinely confuses me :<
19  Discussions / General Discussions / Re: Programmer jokes on: 2014-04-01 21:01:51
<a href="http://www.youtube.com/v/BKorP55Aqvg?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/BKorP55Aqvg?version=3&amp;hl=en_US&amp;start=</a>
20  Discussions / General Discussions / Re: JGO Kickstarter on: 2014-04-01 16:34:28
I thought the logo looked different. It's nice, I guess.

Apart from being more or less completely opposite of what you wanted to do based on the previous thread - the first few pledges were completely reasonable imo. I furiously wanted the plush duke toy and was heartbroken when "free shipping"  was excepting America and Europe - so basically free shipping to Asia, JGO's top demographic I'm sure. :|
21  Game Development / Newbie & Debugging Questions / Re: Web Hosting My Java Server Code - How? on: 2014-04-01 15:38:58
I've used 123systems for a year or two now and never had any significant issues.  It's cheap, like 3€ a month or so, so it's perfect for newbies and comes with all the jazz you'd expect from a VPS provider (Control Panel etc).

Keep in mind a VPS is just a computer somewhere on the internet that you connect to through the terminal/console. Most of these computers are unix based, since linux is a beast, so if you know unix (linux, OSX) you'll feel right at home. If you're on windows unix may seem unfamiliar since some of the commands are different than on the windows terminal but just take a look at a quick unix tutorial on youtube or something.

You should be familiar with using the terminal/console. You'll be doing everything from the console.

In addition, all unix systems  pretty much come with a so called "package manager". This is a program installed by default in the OS that allows you to easily install other programs (such as java, gcc, apache, node.js etc).

There are a few package managers out there but they all pretty much work the same way (apt-get, yum etc).

You'll use them for example something like this:

apt-get install java

Google is your friend when you need to install a program and don't know what or how. "How to install <xxx> on <distro>".

Point is you should learn what a package manager is and how to use it and never need to install anything manually (although you can do this, of course).
22  Discussions / General Discussions / Re: JGO Kickstarter on: 2014-04-01 05:40:45
Everything in moderation ra4king ツ

As others have said, seems to be broke atm.
23  Discussions / Miscellaneous Topics / Re: new computer purchase advice on: 2014-03-31 17:36:34
How is nVidia vs ATI/AMD these days? nVidia used to be overheating power hungry junk comparatively afaik.

Before you buy anything including a new GPU like many have suggested - upgrade that Power supply (PSU), 350W is not enough for a decent CPU and GPU, otherwise your system will be power starved and it might (it will) permanently damage your hardware and not function properly.
24  Game Development / Networking & Multiplayer / Re: How do you configure a router with Java to make it... on: 2014-03-30 21:23:59
You can't control this through Java. A prominent use of NAT's is to divide a single IP into potentially unlimited clients/connections (NAT's within a NAT - NATception) and are ill served when using these connections to host content since the IP could be shared by hundreds of devices.

Your ISP additionally might not like/allow hosting, especially if you haven't paid extra.

In general, however, all of the networking mumbo jumbo sorts itself out if you stick with something basic like TCP/UDP and configure your stuff on your own end. Basically it looks like you need to (re)configure your own router.
25  Discussions / Miscellaneous Topics / Re: Advice on dealing with internet trolls? on: 2014-03-25 11:39:18
Trolling is a phase in everyone's life in one way or another. Understand that the troll is a human being and that its cause and agenda are whimsical at best but above all utterly uninteresting to you.

Trolling ranges from the playful jokes you pull on your best friends - and to the harmful bullying of inexperienced individuals inducing suicidal thoughts.

Somewhere out there there are people who utterly despise and hate you for being who you are. It's a beautiful thing, really.

Lighten up, don't take it too personally. I've found that comedy is the one and only true panacea out there in this world.

Try looking at things from the funny side of life once in a while. Learn to laugh at yourself. Also honesty is always funnier.
26  Game Development / Performance Tuning / Re: clearing or make new array? on: 2014-03-25 10:52:38
Really? That sounds awful. Didn't realize foreach could be that bulky.
27  Game Development / Newbie & Debugging Questions / Re: [LIBGDX] multiple data in json on: 2014-03-24 12:00:21
Generally you'd use a library to do the parsing for you to make life easier. You COULD do it on your own but please don't.

http://www.json.org/
http://www.json.org/java/index.html

With these any of these libs you can parse json text into familiar java objects that you can work with.
28  Discussions / Miscellaneous Topics / Re: Speed Code Tutorials? on: 2014-03-24 03:56:00
A little update on the Copter game thing. This one turned out to be the most fun to use/play project of the three (the others were a twitter server with Node.js/MongoDB and a programmable web program/API involving turning text (漢字) into images).



I cleaned it up a bit and put it on github (it's a mess) for those who want to look at lazy hieroglyphs.

For those only want to try it out you can get it here [1.5 MB] http://heartpirates.com/archives/CaveRace.zip

It's supposed to upload your highest score replay/name when you check the Top Scores (it saves replays of runs) and upload it online RESTfully and show you (download) the top high scores (also replays). That should work. Might not.

Controls:
QW and AS (moves up and down, press both for maximum thrust). Otherwise Arrow keys and Enter/Backspace. + and - for music volume control.

You can toggle the Ghost player mode for online top score or personal best or turn it off.
29  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [LibGDX]Update game logics in ApplicationListener.render() method? on: 2014-03-17 18:37:03
That's right, read this: https://github.com/libgdx/libgdx/wiki/The-life-cycle
30  Discussions / General Discussions / Re: Why imageboards are not as common as forums? on: 2014-03-17 14:44:35
Because most of the stuff that gets posted are images instead of text? Who knows, who cares. Semantics.
Pages: [1] 2 3 ... 27
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (72 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!