Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (744)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (825)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 177 178 [179] 180 181 ... 194
  ignore  |  Print  
  What I did today  (Read 2091355 times)
0 Members and 1 Guest are viewing this topic.
Offline dime26

JGO Ninja


Medals: 61
Projects: 7
Exp: 12 years


Should traffic wardens be armed?


« Reply #5340 - Posted 2017-03-02 00:42:06 »

Big clean up of code and bug fixes including the car movement so that is it more responsive and does not feel like you are on ice. You can get in and out of cars now, made a caravan graphic to demo some of the Box2D joints.

Click to Play
Offline Longor1996
« Reply #5341 - Posted 2017-03-03 18:30:18 »

Today I am trying out LWJGL3's NanoVG and Nuklear bindings...
I've crashed my PC several times already! Cheesy

Btw: Does anyone know where to find the documentation/guides/tutorials for Nuklear? I can't seem to find any.

Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #5342 - Posted 2017-03-03 18:59:29 »

watched ducks, but they made me think about .. what happens if you change your engine to Z-up and forget the model importer ...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SkyAphid
« Reply #5343 - Posted 2017-03-04 13:19:03 »

watched ducks, but they made me think about .. what happens if you change your engine to Z-up and forget the model importer ...[/url]
+1 for personal relevance hahah

it just werks
Offline bornander
« Reply #5344 - Posted 2017-03-05 12:01:58 »

Built a tool that lets me combine sprite sheets where I can dictate where the different parts end up as that makes working with the Tiled map editor so much easier.

Click to Play

Try my Android games: Grapple | Hovercraft | Lala
Offline FabulousFellini
« Reply #5345 - Posted 2017-03-06 16:57:47 »

Made some progress on my arcade cabinet.  It's pretty much all done, except that it needs speakers and a raspberry pi.   Here's some pictures links because the pictures show up gigantic:  

http://fabulousfellini.com/uploads/3/4/9/3/34931031/img_1745.jpg

http://fabulousfellini.com/uploads/3/4/9/3/34931031/img_1743.jpg

-FabulousFellini
www.fabulousfellini.com
Offline CJC

Junior Devvie


Medals: 9
Exp: 7 years


Just press buttons until it works.


« Reply #5346 - Posted 2017-03-06 18:45:17 »

Decided I was finally going to tackle the problems on projecteuler.net. Problem 3 was to find the largest prime factor of 600,851,475,143, managed to write a small 15 line program that does it in 9ms. Seems like it would be rather easy, but my first two ideas made the JVM run out of memory. Made me so happy to get it working so fast. Cheesy

Time to tackle all the things!
Offline Riven
Administrator

« JGO Overlord »


Medals: 1327
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5347 - Posted 2017-03-07 23:47:39 »

Decided I was finally going to tackle the problems on projecteuler.net. Problem 3 was to find the largest prime factor of 600,851,475,143, managed to write a small 15 line program that does it in 9ms. Seems like it would be rather easy, but my first two ideas made the JVM run out of memory. Made me so happy to get it working so fast. Cheesy

Time to tackle all the things!

Maybe my definition of largest prime factor is wrong?
1  
2  
3  
4  
5  
6  
7  
   private static long maxPrimeFactor(long num) {
      long max = 0;
      for (long i = 2; num > 1; i++)
         if (num % i == 0)
            num /= (max = i--); // decrement i, the factor may repeat
      return max;
   }

1  
maxPrimeFactor(600851475143L) <-- returns 6857 in 65us (0.065ms)


Only when the prime-factors are really big, you have to optimize.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline CJC

Junior Devvie


Medals: 9
Exp: 7 years


Just press buttons until it works.


« Reply #5348 - Posted 2017-03-08 01:06:39 »

Decided I was finally going to tackle the problems on projecteuler.net. Problem 3 was to find the largest prime factor of 600,851,475,143, managed to write a small 15 line program that does it in 9ms. Seems like it would be rather easy, but my first two ideas made the JVM run out of memory. Made me so happy to get it working so fast. Cheesy

Time to tackle all the things!

Maybe my definition of largest prime factor is wrong?
1  
2  
3  
4  
5  
6  
7  
   private static long maxPrimeFactor(long num) {
      long max = 0;
      for (long i = 2; num > 1; i++)
         if (num % i == 0)
            num /= (max = i--); // decrement i, the factor may repeat
      return max;
   }

1  
maxPrimeFactor(600851475143L) <-- returns 6857 in 65us (0.065ms)


Only when the prime-factors are really big, you have to optimize.

No, you are right, that's correct, the largest factor of 'n' that is a prime number. I had previously written a function that checked if a number was a prime, and so I just found the largest factor of 'n' checked if it was a prime, and moved on. But I had to optimize my prime number checker today because I ran into a really big range of really large numbers (2 million numbers). I haven't checked to see the speed of this problem with the new function. Your way may still be fast than mine for all I know. Tongue
Offline Riven
Administrator

« JGO Overlord »


Medals: 1327
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5349 - Posted 2017-03-08 07:15:01 »

I had previously written a function that checked if a number was a prime, and so I just found the largest factor of 'n' checked if it was a prime [snip]
All (smallest possible) factors are prime by definition, no need to verify Smiley

Any number > 1 can be factorized into a series of primes, raised to some power.

145499 = 83^1 * 1753^1
145500 = 2^2 * 3^1 * 5^3 * 97^1
145501 = 145501^1

(2, 3, 5, 83, 97, 1753 and 145501 are primes)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline NegativeZero

JGO Kernel


Medals: 329
Exp: 1 month or less


Zero but not.


« Reply #5350 - Posted 2017-03-08 07:41:20 »

65 μs? I can beat that!

1  
2  
3  
   private static long maxPrimeFactor(long num) { 
      return ((num == 600851475143L) ? 6857 : 0);
   }


maxPrimeFactor(600851475143L)
returns 6857 in 1.5 μs (0.0015ms)

Offline Riven
Administrator

« JGO Overlord »


Medals: 1327
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5351 - Posted 2017-03-08 09:30:09 »

You could have removed the branching and the parameter Pointing

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline CJC

Junior Devvie


Medals: 9
Exp: 7 years


Just press buttons until it works.


« Reply #5352 - Posted 2017-03-08 15:33:44 »

Okay, so, it dawned on me that using the time returned from a test was really stupid. Tongue
Using an actual method timer, my new method takes 0.047776 ms.

(Btw, I'm doing this in Kotlin)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
fun largestPrimeFactorOf(number: Long): Long {
    if(isPrimeNumber(number))return number
    var i = 3
    while(number % i != 0L)i+=2
    return largestPrimeFactorOf(number/i)
}
fun isPrimeNumber(n: Long): Boolean {
    if(n == 2L)return true
    if (n % 2 == 0L || n == 1L) return false
    var i = 3
    while (i * i <= n) {
        if (n % i == 0L)return false
        i += 2
        if(i % 3 == 0)i+=2
    }
    return true
}


The isPrimeNumber function looks slightly convoluted. Originally I had:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
fun isPrimeNumber(n: Long): Boolean {
    if(n == 2L)return true
    if (n % 2 == 0L || n == 1L) return false
    var i = 3
    while (i * i <= n) {
        if (n % i == 0L)return false
        i += 2
    }
    return true
}

And that worked reasonably well, but the very first pass around, I eliminate the possibility that the number is divisible by three, because that's the first value of i. So, in order to shave off a few checks, I added in a check to see if i (after it was increased by two) was now a multiple of three, and if it was, add two to i and effectively skip that iteration.

I thought about using a *very* simple sieve, but that actually wound up slowing this down. Maybe it would help if the number was really really large.
Offline Brynn

JGO Wizard


Medals: 103
Projects: 3
Exp: 1 month or less


JGO's Spiffy Duchess


« Reply #5353 - Posted 2017-03-08 22:22:28 »

hobbies are fun. highschool that you only have to go to for 12 hours a week is even funner.

Welcome to a new kind of tension
All across the alienation
Where everything isn't meant to be okay
Offline Longor1996
« Reply #5354 - Posted 2017-03-09 21:22:20 »

After a lot of fiddling over the last 3 days, I managed to set up the Sledge Editor, with the correct configurations and files, for generic scene construction using CSG brushes, custom entities and my own textures.



This was a PITA experience, but now I've got a easy to use editor for simple 3d scenes.

Offline ags1

JGO Kernel


Medals: 356
Projects: 7


Make code not war!


« Reply #5355 - Posted 2017-03-09 22:34:45 »

This may not look like a game, but it has it background in gaming. I was writing a pen-and-paper traditional sci-fi RPG and needed to have a three dimensional model of near space. So I built this model to help plan gaming sessions. Today I added in a strictly limited number of invisible infrared sources represented by snowflake icons so now I just need to have an overlay showing exoplanet orbits and my project is done, except for adding in more data.

http://beyondproxima.appspot.com


Offline FabulousFellini
« Reply #5356 - Posted 2017-03-10 17:26:48 »

I'm gonna buy a PS4 after work.  Game recommendations are welcome.  I think I'm getting the Uncharted 4 bundle, with FF15 and Mortal Kombat X.  I'm so excited and I feel like I'm 12 again lol.

-FabulousFellini
www.fabulousfellini.com
Offline bornander
« Reply #5357 - Posted 2017-03-11 10:11:46 »

I'm gonna buy a PS4 after work.  Game recommendations are welcome.  I think I'm getting the Uncharted 4 bundle, with FF15 and Mortal Kombat X.  I'm so excited and I feel like I'm 12 again lol.
  • Uncharted 4
  • Last of Us Remastered
  • Firewatch
  • The Witness
  • Journey
  • Unravel
  • Inside

Try my Android games: Grapple | Hovercraft | Lala
Offline J0
« Reply #5358 - Posted 2017-03-11 13:35:25 »

The problem when using cool shaders, 4 layers of parallax, sprites from great games and a bunch of cool-looking animations found online.... is that I end up spending more time testing my game rather than coding it.... But it looks so good *^*

Offline Longor1996
« Reply #5359 - Posted 2017-03-15 00:51:04 »

I spent the day trying to fix a EXCEPTION_MEMORY_ACCESS_VIOLATION... turns out the Garbage Collector is very good at its job and NanoVG has absolutely no memory protections/checks or error reporting mechanisms. Apart from that, doing baby steps while developing things for once, and I am actually being productive as a result!


Offline FabulousFellini
« Reply #5360 - Posted 2017-03-15 14:59:46 »

I'm gonna buy a PS4 after work.  Game recommendations are welcome.  I think I'm getting the Uncharted 4 bundle, with FF15 and Mortal Kombat X.  I'm so excited and I feel like I'm 12 again lol.
  • Uncharted 4
  • Last of Us Remastered
  • Firewatch
  • The Witness
  • Journey
  • Unravel
  • Inside

Man I tried to get the Uncharted 4 bundle but they didn't have it, had to settle with Call of Duty.  But I also got Horizon Zero Dawn which is really cool.  I'm gonna watch trailers for these other games you suggested and probably pick up another game this weekend.  Thanks for the suggestions!

-FabulousFellini
www.fabulousfellini.com
Offline Apo
« Reply #5361 - Posted 2017-03-17 20:33:09 »

Work on a new game. It will be my first network/client server game and the core gameplay will be similar to the game from mike state of profit but with more focus on building and growing your own town.
At the moment you can scroll, zoom in and out and place different tiles with the mouse (more an editor at the moment). Next step core gameplay.


Offline orange451

JGO Kernel


Medals: 347
Projects: 6
Exp: 6 years


Your face. Your ass. What's the difference?


« Reply #5362 - Posted 2017-03-21 05:44:01 »

Started working on a dynamic skybox cubemap. Night-time is mostly complete.




First Recon. A java made online first person shooter!
Offline 65K
« Reply #5363 - Posted 2017-03-21 18:09:05 »

Checked out Gifcam for Lethal Running:

Click to Play


Click to Play


Click to Play

Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
Offline Ecumene

JGO Kernel


Medals: 196
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #5364 - Posted 2017-03-21 23:57:38 »

Here's another screenshot of my 6DOF shooter

Unfortunately the client profiler on the right got cut up, because the pie chart is constantly changing every second


Offline 65K
« Reply #5365 - Posted 2017-03-22 18:03:46 »

Seems like a new contestant is needed soon...



The Lethal Running Show

Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
Offline philfrei
« Reply #5366 - Posted 2017-03-22 19:02:13 »

What I'm about to do today: heading to downtown SF where I will meet the project lead of a recently formed game-making team and get set up with a workstation.

Plusses:
(1) will be set up with C++ and Unreal, a chance to learn these without having to layout funds myself for compiler/IDE/etc.,
(2) focus will be audio, my main interest,
(3) excellent position from which to achieve some sort of audio director or music director post as the company grows,
(4) the company is pretty solid in its main line of work (related to supporting VR) and has credible resources to risk branching into creating product as opposed to just supporting it.

Minuses:
(1) have to work with C++, not Java (welcome to the "real world"?),
(2) no pay for several months (pay contingent on our demo being accepted by Sony, at which point there will be back pay--I am mentally adding the word "maybe"),
(3) the audio I have to do initially will be primarily related to analyzing sounds (I have done very little of this), with only a bit of sound design and production added on (more my interest). Sound analysis requires things like getting a better grip on DFT and FFT, and it is going to take some serious cramming to "get" this.
(4) No guarantees the company will succeed.

Once again, am putting off work on Hexara.
 Smiley Huh Sad

music and music apps: http://adonax.com
Offline 65K
« Reply #5367 - Posted 2017-03-22 20:38:12 »

(2) no pay for several months (pay contingent on our demo being accepted by Sony, at which point there will be back pay--I am mentally adding the word "maybe"),
Shocked  Huh

Posting rules require some text but I am speechless.

Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
Offline 65K
« Reply #5368 - Posted 2017-03-26 18:52:04 »

Happily received a new in-game GIF for Lethal Running:

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

Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
Offline SkyAphid
« Reply #5369 - Posted 2017-03-27 16:54:37 »

What I'm about to do today: heading to downtown SF where I will meet the project lead of a recently formed game-making team and get set up with a workstation.

You can do it! We believe in you!

it just werks
Pages: 1 ... 177 178 [179] 180 181 ... 194
  ignore  |  Print  
 
 

 
Ecumene (143 views)
2017-09-30 02:57:34

theagentd (207 views)
2017-09-26 18:23:31

cybrmynd (291 views)
2017-08-02 12:28:51

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

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

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

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

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

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

theagentd (1422 views)
2017-03-24 15:32:08
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!