Java-Gaming.org 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 ... 44
1  Game Development / Newbie & Debugging Questions / Re: Could someone explain to me the update method? on: 2018-04-10 08:50:52
The best is having game logic in another thread. Separated from game view as far as possible.

Making game logic dependent from rendering will cause for example: slowdown of logic if rendering got slowdown.

Actually while making game logic truly independent from rendering is possible, and perhaps desirable, it needs careful architectural thought.  Just been having a similar conversation with someone on the Processing forum trying to do this and running into lots of exceptions (CME, etc.) because of a lack of understanding of concurrency.  Kevin's approach on delta time is probably the best approach for most projects, at least until there's a demonstrable benefit to be had from parallelizing this.  I'm not sure bad collision detection algorithms count!  Wink
2  Game Development / Newbie & Debugging Questions / Re: Could someone explain to me the update method? on: 2018-04-08 19:12:42
So that people with slow computers don't play at an advantage. Eg. game logic happens at a constant rate even if the rendering can't keep up.
3  Game Development / Newbie & Debugging Questions / Re: Reactive Games? on: 2018-03-28 10:34:11
Note that there are RxJava extensions for Swing and JavaFX.  You don't have to consider this to be about rendering at all - it's a great way to hook events up to actions.  I built a light weight reactive streams / functional reactive like API into Praxis LIVE and love working with it (mine, like the Swing / JavaFX implementations, is single-threaded, while the main RxJava / reactive streams handle concurrency for you too).

Also, the basic building blocks for concurrent reactive programming are now in the JDK - https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/Flow.html
4  Game Development / Newbie & Debugging Questions / Re: Does processing is using Java 2d api or open GL? on: 2018-03-22 15:42:29
Cool!  Grin  I'm involved with the new Apache NetBeans project, so good to know.  New release should be out soon.

You should definitely give Praxis LIVE a try too, then.  Should feel familiar.  It's a NetBeans-based IDE with the ability to live-code Java, and has the Processing libs built in.
5  Game Development / Newbie & Debugging Questions / Re: Does processing is using Java 2d api or open GL? on: 2018-03-22 11:49:45
Processing gives you ... a simplified IDE

Also note that you don't have to use PDE.  If you already have an IDE of choice, I'd stick with that and use Processing as a library, once you get past the basics.  PDE is pretty dire for all but the most simple projects!

.. of course, the IDE of choice should be NetBeans, but then again I'm biased.  Wink
6  Game Development / Newbie & Debugging Questions / Re: java 2d Game its working in windows but on mac or linux is slow on: 2018-03-21 16:22:47
Try seeing if xrender on Linux is any better - https://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#xrender
7  Game Development / Newbie & Debugging Questions / Re: Does processing is using Java 2d api or open GL? on: 2018-03-21 16:21:20
Processing can use Java2D, OpenGL, JavaFX, JavaScript Canvas, and more.  It depends what renderer you set it to.  Make sure to use P2D or P3D for OpenGL - the default is Java2D.

Of course, the best way to use Processing is in Praxis LIVE, but then, I'm biased! Wink
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-03-21 11:16:15
I guess for what I did today, I released v3.8.0 of the Rhythm Heaven Remix Editor.

Looks great!  Good seeing projects shipping with libraries I wrote too.  Not that you seem to be using them!  Wink
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-03-20 10:09:37
Well, strictly speaking yesterday's fun hack - decided the Electron framework wasn't bloated enough so added a JVM into the mix!  Grin

Apache NetBeans HTML4J and Dukescript examples running on the JVM and rendering in an Electron Chromium window.

10  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL3FX - A sneak peek on: 2018-03-14 11:20:10
Yes, that's what I mean. But also be good to know who those interested parties are and what their interests are.
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL3FX - A sneak peek on: 2018-03-14 10:53:14
The big difference is that AWT is set in stone, we're limited by what the JDK supports/allows. A JavaFX port opens up opportunities that will be impossible with AWT.

Well, interesting to see what that client roadmap means there too!  There's no mention at the moment of what happens with AWT after Java 11 (even if it will be in JDK 12), or who the "interested parties" involved in conversation around stewardship are.  That's causing some consternation in a few places, but might also open up some opportunities ...
12  Discussions / Business and Project Management Discussions / Re: Looking for ambitious java developers on: 2018-03-12 18:19:42
In other news, I've just been contacted by a Nigerian prince who wants to finance ALL OF YOUR PROJECTS. Just add me on Skype and email me your bank password, I WILL NOT REPLY HERE.
13  Discussions / General Discussions / Re: Gun violence in video games: Donald Trump meets with video game execs on: 2018-03-10 19:12:24
What we call liberal, the rest of the world calls normal.

To be fair, what you call liberal doesn't really bear much relationship to liberalism either.  Wink
14  Discussions / General Discussions / Re: Gun violence in video games: Donald Trump meets with video game execs on: 2018-03-10 19:08:48
I'm genuinely curious if that's true; I was under the impression that there were many Europeans here.

Yes, I thought so too!  Proudly European and British persecutioncomplex here!
15  Discussions / General Discussions / Re: Gun violence in video games: Donald Trump meets with video game execs on: 2018-03-10 17:28:02
I think this thread should be ended before it ends badly. What do you think?

Trying ... really ... hard not to say, before someone gets shot ... damn!  Grin

+1 to killing this thread.  Mainly because it's pointless, and I'm fed up of reading the same tired arguments flying back and forth without anyone actually taking anything in, while us bemused outsiders all think the whole thing is, well, frankly, a little odd.

Me, I'd have all your guns confiscated until you all feel you have the maturity to handle a Kinder Egg without killing yourselves!  Tongue
16  Discussions / General Discussions / Re: Gun violence in video games: Donald Trump meets with video game execs on: 2018-03-09 19:20:56
Don't log in for a day and all hell breaks loose  Grin

Because it's worked in every other country that's done it. Apart from being common sense - if there are no guns, nobody can get shot.

While I mostly agree with you, to be fair there are a lot of countries with fairly high gun ownership and much lower death rates - which means there are wider cultural issues at play too.

And ain't the second amendment about protection from tyranny rather than being too busy shooting each other to notice the tyranny!  Wink

The worst part is that is, that is is being exported wholesale to every other country in the world. We have it particularly badly here in the UK because we share some common language. 40 years ago you would rarely ever see guns used in television dramas - which largely mirrored actual real life in the UK - they were a real event.

Guess you've got a few years on me, but growing up UK in the early 80's we'd all be watching The A-Team - so many guns and bullets, so few gunshot wounds and deaths.  I don't have a problem with seeing portrayals of guns, but lets see some reality of the consequences too.  If you're going to show guns to kids, at least scare the crap out of them!
17  Game Development / Newbie & Debugging Questions / Re: Java regex pattern for finding text between [[ ]] on: 2018-03-04 14:20:16
? will make it non greedy.

Yes, that'll be important.

it seems \r is your line break in your editor instead of \n

Unlikely, unless we're gone back significantly in time, but \r\n is likely.  I'd missed the addition of \R in Java 8 - nice!

https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#lineending
18  Discussions / General Discussions / Re: Write Now, Run Anytime talk on: 2018-03-01 17:03:53
I took a look at your projects some times already, but wasn't able to figure out: Is everything you load/reload an asset in the project workspace, a file you can load from the hard drive? Or did you implement a way that your project can for example load precompiled versions of assets as well?

In terms of Java code (and shaders actually), everything is a String property.  Every time a component receives new code, it looks up another actor that provides compilation, etc. and sends it a message.  When the compiled code comes back later the behaviour gets swapped.  So javac is a key part of the runtime, although a bytecode cache is in development.  This is also fun because you can write components (actors) that generate source code for other components.

How did you do the separation between identity and state, how does this look like implementation-wise?

There's a slide for that!  Wink  Quite simply really - there are 3 classes for each actor - identity (component) wraps state (context) wraps behaviour (delegate).  The delegate is the user's code.  It uses annotations for defining state layout (and inputs/outputs, additional metadata).  A context is created for each delegate - it analyses the delegate, maintains the defined state, and knows how to process the previous context to inject state forward, dispose resources, etc.  The component is the bit that exists throughout.

Yea, I learned some of this stuff at the university, one professor of mine was some rare kind of smalltalk god Smiley

That seems to be where to find them! I never learned any of this at university - mainly because I didn't to computer science -
 sometimes think I should have, but I seem to have ended up mostly doing it anyway! Grin

Did you take a look at DCEVM?

Yes, a bit.  Still has the problem (in my opinion) of trying to change existing classes IIRC?  One reason I like the simpler blank slate approach is that if you accidentally remove something essential it tends to fail immediately rather than 3 days later when you try to run the project again.
19  Discussions / General Discussions / Re: Write Now, Run Anytime talk on: 2018-03-01 15:13:00
I said it often, but once again: Your work is really really awesome.

Thank you!  Grin

it's an attempt to bring some of the benefits of Erlang and Smalltalk to Java.

What exactly do you mean by that? Could you give some examples?

OK, I'll try a short version!  Wink  Erlang is actor-model based, designed for soft real-time and distributed systems, and supports the ability to hot swap running code without stopping.  Praxis CORE is also actor based (or an extension of), supports running across multiple processes / machines and allows for atomically hot swapping code.  Now Java supports some limited hot swapping of code in development, and things like JRebel extend on that, but in my opinion updating the behaviour of an existing class usually ends up in problems.  Instead, by using actors and throwaway classloaders, state injection, and splitting apart the idea of identity, state and behaviour it becomes possible to build an API that allows for runtime code replacement in a really stable way.

Likewise, Smalltalk is message-based, and influenced (although isn't) the actor model.  It also has really strong support for runtime introspection and coding, and image-based persistence.  Praxis LIVE brings some of that in.  It's worth taking a peek at Pharo for an example of what a contemporary Smalltalk IDE can do.  You also can start to get a sense of what OOP was meant to be about (hint, Java ain't it!)

Nothing radical in any of the pieces I'm putting together there, just trying to arrange them in different ways!  Smiley

Hopefully that makes some sense - check out the "technical stuff" bit of the talk from 24:55 - it has some slides that might illustrate that better.

Incidentally, the title of that talk is actually comes via a quote about Erlang - "if Java is Write Once, Run Anywhere, Erlang is Write Once, Run Forever".
20  Discussions / General Discussions / Re: Write Now, Run Anytime talk on: 2018-03-01 14:20:50
Nice project, I'm not a music creator but this kind of IDE could be useful to build quick demos/intro to some projects. Because this is Java gaming, do you plan to add some kind of support to gaming build in the future ?

Thanks!  Smiley What sort of support exactly do you mean?  I'm intrigued how much you watched, because there's a lot of stuff that is not music specific.  The core can work with any Java library, but there's specific modules that wrap Processing, OpenGL / GLSL support, video, mouse / keyboard control, sensor controls, etc.

I'm not personally interested in creating traditional games, but I have created real-world gaming-like experiences with it - eg.
 this was made with a very early version - http://www.java-gaming.org/topics/meeting-point-2014/34630/view.html  Still, if there's a feature you'd like to see, ask (or contribute!) - it's on GitHub.

Praxis CORE is not specific to any particular use (video, audio, gaming, etc.), although there are optional modules for those purposes - it's an attempt to bring some of the benefits of Erlang and Smalltalk to Java.
21  Discussions / General Discussions / Write Now, Run Anytime talk on: 2018-03-01 11:57:55
Just noticed a video of my keynote (Write Now, Run Anytime) from JDD in Krakow last October has finally gone online, should anyone be interested in 40min of me talking about and demoing live / interactive coding in Java with Praxis LIVE.  Nothing like doing the first run of a new talk in front of ~700 Java devs at 9am.

May contain blinky visuals, cheesy techno and some poor tortured breakbeats!  Grin

<a href="http://www.youtube.com/v/3cQ-8wZwsmY?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/3cQ-8wZwsmY?version=3&amp;hl=en_US&amp;start=</a>

In other news, Praxis CORE (the hot code-reloading runtime part of all this) will be released under LGPL very soon!
22  Java Game APIs & Engines / Java 2D / Re: [2D] Real-Time Editor & Java Game Engine on: 2018-02-19 09:57:32
If you want to make something impressive, take a look at Elm and the time traveling debugger. That's one thing that might warrant the existence of a real-time editor.

Yes, Elm is interesting, although as far as I'm aware the hotswapping and time-travelling stuff got removed and hasn't returned yet?!

Incidentally, Praxis CORE (the runtime in Praxis LIVE) has some similarities to the lower-level aspects of Elm and supports real-time coding / hot code reloading in Java - actually supports quite a bit of what you can see on that page.  I'm currently working on a v4 release that will see the core runtime more easily reusable under LGPL.

A time-travelling debugger would be cool - have to think how easy it would be to add that - definitely harder than for Elm.

Hey guys, i'm fairly new to this forum. (surprising considering how many years i've been making games)

If you want to engage people, maybe show some evidence of that.  I find myself wondering how many years you've really been making stuff, because judging from the number of colours you felt the need to use in that post, I'm not sure whether you're a teenager yet or still stuck in the halcyon internet years of the mid-90's with a homepage on GeoCities.  Tongue
23  Discussions / Miscellaneous Topics / Re: Is My Portfolio Frighteningly Underwhelming? on: 2018-02-16 12:39:03
TL;DR recruiters are idiots; design for idiots!  Grin
24  Game Development / Performance Tuning / Re: fast box blur algorithm on: 2018-02-12 09:26:45
IMO it's not always bad to necro a thread if you want to ask a question about something in context.  OTOH, asking for it to be deleted, particularly when it's your error is never OK!  Pointing

@malvers - your code there seems to be the wrong way around - horizontal blur from img to offscreen, vertical blur from offscreen to img!

Incidentally, the code I linked to above has moved a couple of times - it's still in Praxis LIVE here if anyone wants it.
25  Game Development / Newbie & Debugging Questions / Re: AnimatedFramesDemo example (Java2D) on: 2018-01-22 15:34:15
Looks like they should be in an images folder with your sources.
26  Java Game APIs & Engines / Java 2D / Re: First time pixel artist on: 2018-01-16 10:46:02
Yup! In particular, I think the shadow of the cactus is off - is everything else fine?

To me, the building, person and bushes have the sun almost straight ahead; the cacti and two of the trees have the sun coming from the left; and one of the trees has the sun from 45 degrees (between left and ahead).  Everything with the shadow at 45 degrees might look better?

In fact, could you draw shadow and object separately?  Then you could play with different rotations / even move them during the game?
27  Java Game APIs & Engines / Java 2D / Re: First time pixel artist on: 2018-01-15 16:32:32
Looks great, particularly considering you've just started. Only one negative comment - decide where the sun is!  Wink
28  Discussions / General Discussions / Re: HappyNewYear! on: 2018-01-06 20:16:46
He sounds like a very interesting person. I'll try to find that book and give it a read. It's funny though, the reviews on Amazon are very extreme on both sides. This one is very negative:

https://www.amazon.co.uk/gp/aw/review/0753812770/RMJ0T732HD32T/ref=cm_cr_dp_mb_rvw_7?ie=UTF8&cursor=7

May be some good points in that, but they're not really who the book is aimed at, and it comes across as a bit of an arrogant rant from someone who's credentials are unknown and was still in junior school when this "game" was created.  For comparison take this NY Times article from 2002, and some of the people quoted in it (and I've seen various similar) - http://www.nytimes.com/2002/02/02/arts/man-who-would-be-god-giving-robots-life.html - eg.

Quote
The result dazzled both amateurs and experts. ''Very occasionally, somebody from outside academia comes along and shows us academics how to do something we've been working on for years,'' Rodney Brooks, director of the Artificial Intelligence Laboratory at the Massachusetts Institute of Technology, said of Creatures.

I have a soft spot for self-taught outsiders, particularly those who teach the establishment a thing or two - read of that what you will!  Grin
29  Discussions / General Discussions / Re: HappyNewYear! on: 2018-01-04 11:06:02
I'm probably the only one taking NetBeans editor into nightclubs, so it's a good niche!
Woah what? That sounds really interesting. Can you talk more about exactly what you do?

Mainly AMEN $ Mother Function (https://youtu.be/SgE9POc5BdA) - deconstructing a wavetable using a single live-coded Java pure-functional lambda (and demoing Praxis LIVE's ability to live code DSP).  Did this in various events, clubs, etc. last year, including an impromptu set at the JCrete BBQ - nothing like having Jaroslav Tulach bouncing around and proclaiming NetBeans to be "the loudest IDE in the world"!  Grin

There's also the cheesy shit techno I did in my JDD talk (in their promo vid - https://youtu.be/w7f9N-laVW0) to demonstrate functional reactive coding.  The FFT manipulated 3D spirals were partly live-coded earlier in the talk, and are Processing based.

@nsigma I hadn't heard about the Creatures games, what a great concept!

Yes!  Highly recommend the book he wrote about developing it - Creation: Life and How to Make It.  Just found this post from 2016 too which is interesting, and to quote "But all the computer power in the world is no help unless you know how to build a mind, and despite all the ridiculous hype surrounding AI at the moment, most people really don’t."  That kind of sums up my own feelings on the topic!  Smiley
30  Discussions / General Discussions / Re: HappyNewYear! on: 2018-01-02 18:02:55
I remember some jgo people were working on composing music using artificial intelligence, to react to fights by upping the musical intensity and so on. Have you ever tried that or thought about putting it together with praxis live?

Praxis LIVE might be an interesting environment to play with such things in that you get instant feedback, but I personally don't find a lot of the current creative artificial "intelligence" stuff that interesting, or intelligent!  Wink  I've heard the same phrase a few times this (last!) year - machine learning, yeah, we used to call it statistics.  I've made loads of self-generating/evolving things, but it's far more interesting when you throw a human into the mix, hence why I'm more concerned with exploring new ways of interacting with tech than the AI stuff per se.  The new coding interfaces stuff I'm working on, of which the music is a small part, stems from that.

The best use of A-Life / AI in computer "games" remains Creatures IMO.
Pages: [1] 2 3 ... 44
 
ivj94 (582 views)
2018-03-24 14:47:39

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

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

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

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

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

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

buddyBro (91 views)
2018-02-28 16:45:17

xxMrPHDxx (493 views)
2017-12-31 17:17:51

xxMrPHDxx (730 views)
2017-12-31 17:15:51
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
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!