Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (798)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 175 176 [177] 178 179 ... 214
  ignore  |  Print  
  What I did today  (Read 3463714 times)
0 Members and 3 Guests are viewing this topic.
Offline Coldstream24

JGO Ninja


Medals: 82
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #5280 - Posted 2017-02-23 10:42:54 »

I can finally cut and paste and move tiles around (on x, y and z axes) inside my engine's editor Smiley

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Offline CJC

Senior Devvie


Medals: 16
Exp: 7 years


Just press buttons until it works.


« Reply #5281 - Posted 2017-02-23 15:19:27 »

I can finally cut and paste and move tiles around (on x, y and z axes) inside my engine's editor Smiley

Wait, z-axis? With tiles? What is this? I must know! D: I assume this is talking about layers, right?
Offline J0
« Reply #5282 - Posted 2017-02-23 17:05:09 »

3D tiles could be a thing Wink

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Coldstream24

JGO Ninja


Medals: 82
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #5283 - Posted 2017-02-23 17:35:42 »

Yeah, it's just layers. Each map can have its own depth that you enter while making it. Then what happens is each layer renders separately along with depth-sorted bodies. Moving them around on the z-axis just involves switching to a different layer while you're dragging them around. 

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Offline EgonOlsen
« Reply #5284 - Posted 2017-02-24 11:11:16 »

I've improved the templating system of my Commodore BASIC/6502 assembly language fun project, so that it's actually usable in combination with a normal web framework.

I'm not sure, but this might be the only webpage whose template has been written in 6502 assembly code (scroll down the page to see the actual code): goo.gl/5vc7cd (there's BASIC version as well that uses the labels-instead-of-line-numbers-option that I've added to the compiler recently: goo.gl/dcxCtc).

Offline CJC

Senior Devvie


Medals: 16
Exp: 7 years


Just press buttons until it works.


« Reply #5285 - Posted 2017-02-24 18:13:04 »

I've improved the templating system of my Commodore BASIC/6502 assembly language fun project, so that it's actually usable in combination with a normal web framework.

I'm not sure, but this might be the only webpage whose template has been written in 6502 assembly code (scroll down the page to see the actual code): goo.gl/5vc7cd (there's BASIC version as well that uses the labels-instead-of-line-numbers-option that I've added to the compiler recently: goo.gl/dcxCtc).

Some people are just show offs. Tongue

In less impressive news, I had some fun messing with libGDX and it's port of Box2D. Let me just say, those error messages are about as useless as they come. But, in the end, I created a projectile that will place a "gravity well" (the big circle in the video). And I allowed bullets (the small circles) to be pulled by said mass. Fun result. Cheesy

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

Offline Coldstream24

JGO Ninja


Medals: 82
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #5286 - Posted 2017-02-25 05:18:14 »

breaking stuff is fun
<a href="http://www.youtube.com/v/zUgfjDyZ7ys?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/zUgfjDyZ7ys?version=3&amp;hl=en_US&amp;start=</a>

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Offline Icecore
« Reply #5287 - Posted 2017-02-26 15:53:45 »

Interesting idea – that I don’t have time to check:
If your fears hash Collisions – Fear Not!!!
Simply use 2 or more hash algorithms on same DATA – and compare(equals) their results each other
---
if with one algorithm you have 8 byte(1 long) hash size and 1% collision
when using 2 algorithms you have 16 byte(2 long) hash size and 0.000001% collision  ^^

p. i update text^^ - because so simple solutions hard to understand from start:
if let say using SHA-1 you have collision on different data check MD5 hash - it really small chances that you receive collisions on 2 hash algorithm at once for different data

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Offline J0
« Reply #5288 - Posted 2017-02-26 18:54:04 »

Parallax is tricky when trying to have different backgrounds for different parts of the level. I'll get back to it tomorrow... Grin

Offline Archive
« Reply #5289 - Posted 2017-02-27 06:10:23 »

After four years, I finished the first public release build of my software renderer! Check it out if you want, download it and let me know what you think.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline TritonDreyja
« Reply #5290 - Posted 2017-02-27 16:09:15 »

Got a good start on the cover for my next concept album of instrumentals.

It'll be about how INFP's have a hard time leaving behind the ideal world they have imagined in their mind over the years; yet everyone says we should do so to come back to reality.

The tone of the music will be dreamy and may have some tracks with vocals, but the overall idea is me expressing my inner "f*** it I'll stay in my head if I want to, and I can still be successful".

It's not something that rules my life, but it is however something I can never express properly.



"If you can't escape the reality you've created for yourself, embrace it"
Offline Ecumene

JGO Kernel


Medals: 200
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #5291 - Posted 2017-02-28 02:24:46 »

A friend and I have been working on a multiplayer 6DOF arena shooter. I'm too lazy to explain it so heres a screenshot, if you want more PM me Wink


Offline philfrei
« Reply #5292 - Posted 2017-03-01 01:11:30 »

Quote
Got a good start on the cover for my next concept album of instrumentals.

Nice concept! It reminds me of a cover I was working on for a project that never got completed. I had a person sleeping on a mattress on the floor with a "thought balloon" of a dream of a person sleeping on a mattress on a floor with a "thought balloon" of a person sleeping on a mattress on a floor, etc. In one of the deeper layers, the sleeper has a single eye open. Derived from an actual multi-layer dream occurrence.

One of these days, maybe.

music and music apps: http://adonax.com
Offline kingroka123
« Reply #5293 - Posted 2017-03-01 17:17:34 »

So i revisited the idea of a gravity simulation using the bending of space. Im not sure if i ever posted about my past simulation but essentially I used a square grid to inherit gravity values from their neighbors. This time around, I'm using vector fields and the results are much better.

Stable Orbit:
Click to Play


Multiple Planets:
Click to Play


Satellite Orbits (Recorded late, moon crashes into planet at the end):
Click to Play
Offline dime26

JGO Wizard


Medals: 90
Projects: 7
Exp: 12 years


Should traffic wardens be armed?


« Reply #5294 - 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

JGO Wizard


Medals: 116
Projects: 2
Exp: 8 years


The cake is probably a lie.


« Reply #5295 - 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.

The cake is probably a lie... but it's a delicious lie!
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #5296 - 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 ...
Offline SkyAphid
« Reply #5297 - 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 #5298 - 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 #5299 - 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

Senior Devvie


Medals: 16
Exp: 7 years


Just press buttons until it works.


« Reply #5300 - 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: 1369
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5301 - 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

Senior Devvie


Medals: 16
Exp: 7 years


Just press buttons until it works.


« Reply #5302 - 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: 1369
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5303 - 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!
Offline NegativeZero

JGO Kernel


Medals: 341
Exp: 1 month or less


Zero but not.


« Reply #5304 - 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: 1369
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5305 - 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

Senior Devvie


Medals: 16
Exp: 7 years


Just press buttons until it works.


« Reply #5306 - 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 Longor1996

JGO Wizard


Medals: 116
Projects: 2
Exp: 8 years


The cake is probably a lie.


« Reply #5307 - 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.

The cake is probably a lie... but it's a delicious lie!
Offline ags1

JGO Kernel


Medals: 367
Projects: 7


Make code not war!


« Reply #5308 - 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 #5309 - 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
Pages: 1 ... 175 176 [177] 178 179 ... 214
  ignore  |  Print  
 
 

 
Riven (81 views)
2019-09-04 15:33:17

hadezbladez (4336 views)
2018-11-16 13:46:03

hadezbladez (1547 views)
2018-11-16 13:41:33

hadezbladez (4462 views)
2018-11-16 13:35:35

hadezbladez (871 views)
2018-11-16 13:32:03

EgonOlsen (4152 views)
2018-06-10 19:43:48

EgonOlsen (4855 views)
2018-06-10 19:43:44

EgonOlsen (2803 views)
2018-06-10 19:43:20

DesertCoockie (3707 views)
2018-05-13 18:23:11

nelsongames (3998 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
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!