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 ... 11
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-03-12 21:39:44
Got distracted building my ui interface, in my quest to get a rounded rectangle I ended up building a new vector graphics engine which has a nice triangulation routine to triangulate any shape (convex, concave, single hole, many holes). Also allowed me to do some nice gradient shading / texturing on any shape.

I'd be very interested if you'd like to share that code! Smiley
2  Game Development / Game Mechanics / Re: [LibGDX] Rendering dead entities ? on: 2018-02-20 17:01:47
The glClear function has nothing to do with entities, it just clears the screen. Clearing and re-drawing every frame is not particularly expensive, and it simplifies rendering code considerably. There are more worthwhile ways of improving performance, such as:

  • Don't render entities that are not visible on the screen.
  • Group entities by their texture, so that entities with the same texture are rendered after each other. Texture switching makes the sprite batch considerably slower.
  • Use a sprite sheet and texture regions to prevent texture switching even when rendering different sprites.

3  Java Game APIs & Engines / Java 2D / Re: [2D] Real-Time Editor & Java Game Engine on: 2018-02-18 19:34:37
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.
4  Discussions / Miscellaneous Topics / Re: Is My Portfolio Frighteningly Underwhelming? on: 2018-02-16 00:44:43
These guys don't seem to know what they want. The requirements are C++ and "be good at handling things", also have written something sometime with some technology, or have experience in management.

Definitely create a GitHub. When you're programming, whenever you write something that you would find useful in another project (for example, I wrote a sprite batch for a WebGL game, then made it into a library), create a GitHub repository to store it. That way, there's always tangible proof that you know what you're doing (for example, I know how to write a sprite batcher, if a recruiter was looking for that). Also I love finding underrated libraries on GitHub.

I'd think that a recruiter/potential employer would rather see some screenshots and a description of some challenges in the project, and how you overcame them, than to run it themselves.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-02-07 23:15:56
Never thought I'd use LibGDX for research when I learned it years ago!
Living the dream!
6  Games Center / WIP games, tools & toy projects / Re: The Collapse: Space Supremacy on: 2018-01-21 10:46:20
Four weeks is definitely not normal for Google Play. AFAIK there's hardly any review process at all, you just create a new app and fill in all the boxes it tells you to. But I haven't published an app lately, so it might be a recent problem, or it might be related to the particular settings for your app.

AdMob is a Google API and Google APIs are nearly always bad. Over-engineered, confusing, and inefficient; that's the baseline each Google library starts from, then it adds its own gunk on top. In terms of "Why?!"s per minute, Google APIs are at the very top. The simplest use case shown in the tutorial is trivial; the most common use case requires a third-party library (unsupported by Google but used in their tutorials) and the use of a deprecated flag that does what you want. So why is this super-useful flag deprecated? Some lightbulb found a 5x more verbose solution requiring another API and a listener class.

Compared to the no-nonsense, straight-to-the-point API of LibGDX, using AdMob, Google Play, and Google Maps, has been nothing but frustration.

Sorry for the rant.

What was it like publishing on the Amazon Store?
7  Game Development / Newbie & Debugging Questions / Re: Stream.filter(...).count() didn't work on: 2018-01-21 10:28:49
Check if the neighbors list of empty, if it isn't, it's that no neighbors satisfy the condition in the filter (hasMine).
8  Java Game APIs & Engines / Java 2D / Re: First time pixel artist on: 2018-01-18 22:55:31
I'll change the plants shadows. As for the house, the shadow on the left doesn't look normal because the wall isn't facing the camera (it's on an angle as you can see) so I wasn't sure where to place the shadow.

I'd like everything at a 90 degree angle. Going to have another shot at drawing them!

I'm not a pixel artist (or any kind of artist), but it seems that since it's angled inwards it should let *more* light through than the other wall. Though if you draw the shadows at 90 degrees with the sun at the left that side won't cast a shadow anyway.
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-01-10 02:39:40
Yesterday I implemented a sprite batch in WebGL and today I published it as my first NPM library. There's now a spritebatch package on NPM containing a simple LibGDX-style sprite batch Grin
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-01-07 13:42:41


Getting used to JavaScript. Deployment is as simple as pushing to GitHub. Dynamic typing is nice except when debugging. Testing with Jest is easy and fast. NPM and Webpack makes CSS and JS bearable. All in all, it's a very good fit for casual games.
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2018-01-02 14:55:48


Been working on random terrain generation in HTML5 using JS. Writing UI in HTML is nice, Canvas performance is bad but that's to be expected, save games are limited to ~5MB, and using JS object literals instead of JSON is wonderful.
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-12-20 21:19:51
Thanks guys, honestly using the canvas API never entered my mind. That's what you get for researching tools at 12 AM  Roll Eyes
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-12-19 23:44:51
Been looking at JavaScript game libraries. Every one I've encountered thus far is the same: register the assets you want to use. Register the sprites you want to render. Everything is held together with string identifiers. persecutioncomplex

I just want to load and display images without having to wrestle with a scene graph. Is that to much to ask?
14  Discussions / General Discussions / Re: Move to Kotlin? on: 2017-11-24 21:22:37
Functional programming really shines when iterating over collections. Compare

1  
val list = readLines("myfile.csv").drop(1).map(MyObj::fromCSV);


to read a CSV file into a list of objects, instead of

1  
2  
3  
4  
5  
List<String> lines = readLines("myfile.csv");
List<MyObj> list = new ArrayList<>();
for(int i = 1; i < lines.size(); i++) {
    list.add(MyObj.fromCSV(line));
}


The imperative version requires a lot of low-level constructs to achieve the same thing, while the functional alternative just re-combines the same few, well-known operations over and over (drop, filter, map, reduce, etc), with lambdas for custom behavior.
15  Discussions / General Discussions / Re: Move to Kotlin? on: 2017-11-23 22:09:19
I prefer dumb code. Smart code requires brainpower to read and write. Dumb code is understandable at 12 AM, and that's what matters Wink
16  Discussions / General Discussions / Re: Move to Kotlin? on: 2017-11-16 11:20:00
It's a shame Ceylon is so underused, I really like union and intersection types. Ceylon's approach to null safety is years ahead of Kotlin's, but I suppose Kotlin has a gentler learning curve.

For what it's worth, here's an example of using LWJGL in Ceylon: https://github.com/gavinking/ceylon-examples-lwjgl/blob/master/source/eg/lwjgl/run.ceylon
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-11-16 10:57:05
This morning I wrote a garbage collector. GC has always seemed to be some kind of impossible mystery that only extremely talents folks like JVM engineers could understand. Turns out a basic tracing garbage collector isn't very complicated.

Take a look: https://github.com/snordgren/goose
18  Discussions / General Discussions / Re: Game Design in Kotlin for Java Programmers on: 2017-11-16 10:54:55
Looking good! Nitpicks: @JVMStatic is @JvmStatic because JetBrains uses that kind of case convention. Also at THREAD it's all uppercase which is Java praxis for constants but isn't really used in Kotlin aside from const vals.

All in all, good job, looking forward to reading further parts
19  Discussions / General Discussions / Re: Move to Kotlin? on: 2017-11-12 19:54:48
Switching on type is an old Java tradition, it's called the visitor pattern.
20  Discussions / General Discussions / Re: Move to Kotlin? on: 2017-11-12 12:52:44
I personally found that Kotlin lets me write projects faster, and with better style (pure functions, immutable state). For small, throwaway games and utilities its definitely faster to write them in Kotlin. Type inference is nice but it makes the code less readable. You could write types in Kotlin but then you're writing var or val unnecessarily anyway, so it's a net loss from Java. Ideally you could have IDE support for writing var and it autoconverts to the return type of the expression you assign a variable to.

Kotlin makes it easier to write final variables, I like that, and the if/try/when as expressions as well. I do agree that Kotlin doesn't seem as cohesive and well thought out as Java. I think the Scala style guide got it right in requiring explicit types for everything that isn't assigned to a constructor or a string/int/float literal.

Kotlin eliminates a lot of boilerplate code and I will probably keep using it because of that. Games are write and throw away code most of the time so the loss in readability isn't that bad while the increased development velocity is a big plus.
21  Game Development / Newbie & Debugging Questions / Re: JavaFX updating a Label on: 2017-08-26 19:17:28
Create a new Thread with a Runnable that contains your infinite loop, and in the loop put a Thread.sleep(500) to sleep 500 milliseconds between each execution.
22  Games Center / Showcase / Re: Spark Rush on: 2017-08-12 22:14:25
@sarcastibots Those are some great suggestions, I'll add them to my to-do list. Those 3-4 unavoidable hits doesn't sound very fun, I'll figure out a way to prevent it, at least in the early game anyway.

@herhor 283 points for your first time is a great score. I generally get around 300-350 when I play it, despite playing it a lot to test it. I guess I just have bad reflexes. Roll Eyes

The blocks are randomly generated, and there's no checking to ensure that there is a way to get through without taking damage. Which in my opinion isn't necessary since the game allows you to take multiple hits without dying, as well as gaining more life. But if unavoidable hits aren't a fun gameplay feature I can always change it.

Thank you for playing Smiley
23  Games Center / Showcase / Spark Rush on: 2017-08-05 19:39:36

Spark Rush




A small, but fun game about guiding a little yellow ball to avoid the red blocks and collect the yellow ones, in keeping with my goal of just making and releasing something. When you hit the red blocks, you lose energy, causing you to go slower, lose too much and you die. When you hit the yellow blocks, you gain energy (and live longer), but the game goes faster, which makes it harder to avoid the red blocks. The game also goes faster the further you get.

Your score is based off how far you get and how many yellow blocks you collect. Press where you want to go on Android and use A and D to control the spark on desktop.

The game was made using LibGDX and Box2DLights, with the code written in Kotlin.

Screenshots



Download
The game is available on desktop and on Android, both for free.

Android download
Desktop download

Let me know what you think.
24  Java Game APIs & Engines / OpenGL Development / Re: Opengl 4.6 is released on: 2017-08-01 23:42:55
Yet another update that I won't be able to leverage on my Mac. Come on, Apple! Why do you have to be so monopolistic?
25  Discussions / General Discussions / Re: Posting to not-so-old topics on: 2017-08-01 23:41:38
Considering how long many topics can stay relevant, I agree.
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-30 13:30:27
snip

That's a beautiful website.
27  Discussions / Miscellaneous Topics / Re: Cheerpj: convert any Java application and library to a browser-based Web app on: 2017-07-27 12:02:47
All these efforts baffle me. Why Javascript? Seriously just why? It doesn't have to be the defacto clientside language. Someone integrate the JVM directly into Firefox please, and get rid of all the contentious APIs and sandbox it properly this time. It really can't be that hard.

Cas Smiley

It gets better. Their FAQ has this text.

"Can JavaScript code produced by Cheerp be plugged into Node.js?"
"Yes, it should. However, this has not been one of our areas of focus so far. "

People are asking if they can take their Java code and compile it to JavaScript in order to run it on the server. When Java is already on the server with better stability and performance than JS.
28  Game Development / Newbie & Debugging Questions / Re: how to create GUI game editor on: 2017-07-25 22:38:22
GUI is one of the great unsolved mysteries of programming. There are a million ways to do them and none of them are that great. WYSIWIG editors are cool for show off but most of them I've found hard code margins into your code meaning that you end up with a layout that looks good on your computer but breaks on any other. Generally developing anything is more frustrating, time-consuming and problematic than it seems when you think about it. I say just hardcode the UI into your game.
29  Discussions / General Discussions / Re: Hoping to make a return to JGO... on: 2017-07-25 22:31:58
Welcome back! If you make something using a non-Java language you can always post it in the "What I did today" thread as inspiration for the rest of us, no Java required!
30  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-13 19:40:21
Updated my Pico Editor to include syntax highlighting for Ruby as well as line numbers.

Pages: [1] 2 3 ... 11
 
ivj94 (583 views)
2018-03-24 14:47:39

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

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

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

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

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

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

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

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

xxMrPHDxx (733 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!