Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (237)
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 ... 127 128 [129] 130 131 ... 215
  ignore  |  Print  
  What I did today  (Read 3544754 times)
0 Members and 18 Guests are viewing this topic.
Offline SHC
« Reply #3840 - Posted 2016-02-28 09:47:12 »

Learning about JavaScript generator functions, and made a game loop in it (just to have some fun). Small GIF, just 60 KB.



Who said JavaScript cannot do infinite loops??

Offline KaiHH

JGO Kernel


Medals: 764



« Reply #3841 - Posted 2016-02-28 10:06:13 »

If you want to have coroutines/generators/continuations in Java too: https://code.google.com/archive/p/coroutines/
Offline Riven
Administrator

« JGO Overlord »


Medals: 1370
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3842 - Posted 2016-02-28 12:02:37 »

If you want to have coroutines/generators/continuations in Java too: https://code.google.com/archive/p/coroutines/
Try MatthiasM's continuation-library instead.
    http://www.matthiasmann.de/content/view/24/26/
It's actually properly rewriting bytecode. Pointing

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 SHC
« Reply #3843 - Posted 2016-02-28 13:17:13 »

If you want to have coroutines/generators/continuations in Java too: https://code.google.com/archive/p/coroutines/

Thanks, I think I'm going to learn something new today. Do you actually recommend using these coroutines in Java? If so, I'd like to know under what conditions their use is going to benefit me.

Offline KaiHH

JGO Kernel


Medals: 764



« Reply #3844 - Posted 2016-02-28 14:47:30 »

Lazily building and iterating complex and possibly infinite data structures, like a tree, which usually functional programming languages are good for.  Pointing
Offline Grunnt

JGO Kernel


Medals: 143
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #3845 - Posted 2016-02-28 15:06:55 »

Worked on a simple sci-fi name generator (in other words: string concatenator). It generates different styles of names for members of different galactic races, e.g.:

Humanoid:
Quote
Ignacia Tanner
Melany Sabbagh
Romelia Safar
Ingeborg Seif
Luvenia Ramirez
Natacha Valdez
Mariko Mccarty
Cheyenne Rich
Zula Mcpherson
Genna Bass

Rocklike race:
Quote
Hyalite the Cubic
Hydroxylapatite the Opaque
Rock the Minor
Magnesiostaurolite the Powdered
Arsenic the Quartz
Nevada the Soft
Sulphur the Opaque
Jasper the Fracturous
Prase the Blue
Spinel the Apatite

and so on, for 7 different races.

Offline ags1

JGO Kernel


Medals: 367
Projects: 7


Make code not war!


« Reply #3846 - Posted 2016-02-28 15:31:00 »

Continued crawling towards the goal of getting a hunter to stick an arrow in a deer. To make things fair, I upgraded deer today with PanicBehavior, so they will run off in semi-random direction if they spy a human, bear or wolf approaching. Also, I let deer run a bit faster.

PanicBehavior is a standard behavior of all creatures actually. Aside from panicking at the sight of specific types of creatures, it will also have to monitor health and have a panic response when the creature takes a serious injury.

Offline Grunnt

JGO Kernel


Medals: 143
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #3847 - Posted 2016-02-28 20:40:22 »

Also been writing some galactic history:


So far the galaxy is very sparse and boring, but I intend to do something like Dwarf Fortress (only a bit less ambitious) in generating a galactic history in which a game will take place.

Offline Roquen

JGO Kernel


Medals: 518



« Reply #3848 - Posted 2016-02-28 20:52:42 »

I've only skimmed the paper.  I'm going to wait for the reference version...the conference is in a couple of weeks.
Reference source is online..demo isn't yet
Offline boxsmith
« Reply #3849 - Posted 2016-02-28 21:20:43 »

Try MatthiasM's continuation-library instead.
    http://www.matthiasmann.de/content/view/24/26/
It's actually properly rewriting bytecode. Pointing
I actually gave this a shot one week ago, and found that it often behaved bizarrely when used with multiple threads (i.e. suspending in one thread and resuming in another). I haven't found the time to investigate the cause, but offbynull's library was a well-behaved replacement, aside from a bug in the instrumentation task. Can't vouch for the quality of the generated bytecode without spending more time with the library, though.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
Administrator

« JGO Overlord »


Medals: 1370
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3850 - Posted 2016-02-28 21:46:07 »

Try MatthiasM's continuation-library instead.
    http://www.matthiasmann.de/content/view/24/26/
It's actually properly rewriting bytecode. Pointing
I actually gave this a shot one week ago, and found that it often behaved bizarrely when used with multiple threads (i.e. suspending in one thread and resuming in another).
The library is not threadsafe (by design), so if you don't provide your own concurrency mechanisms, it will be non-deterministic.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline boxsmith
« Reply #3851 - Posted 2016-02-28 22:34:26 »

The library is not threadsafe (by design), so if you don't provide your own concurrency mechanisms, it will be non-deterministic.
Ditto the alternative I posted. IIRC with matthiasm's library, I encountered nonsensical changes in state even when I demonstrably had no attempts at concurrent access to the same continuation. Do you have a lot of familiarity with the continuations library? I might want to revisit the code and shoot you a PM if I'm still scratching my head after.
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 #3852 - Posted 2016-02-29 02:57:42 »

Began upgrading my engine's map format to allow for some more features like dynamic loading and unloading of chunks on the fly - it was possible before, but my original implementation had a file for every individual chunk so folders would get very cluttered with potentially thousands of files... that and I wasn't storing tiles that were solid.
The solution is to store regions of many chunks in one file. Just got to figure out what's best in terms of memory usage and minimizing IO.

It's a funny feeling being able to call certain parts of my engine 'legacy'.

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

« JGO Overlord »


Medals: 1370
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3853 - Posted 2016-02-29 06:38:41 »

The library is not threadsafe (by design), so if you don't provide your own concurrency mechanisms, it will be non-deterministic.
Ditto the alternative I posted. IIRC with matthiasm's library, I encountered nonsensical changes in state even when I demonstrably had no attempts at concurrent access to the same continuation.
Just because a piece of code is not concurrently accessed, does not mean you don't have to take measures to ensure the code is thread safe. You'll see that with proper locking/fencing (ensuring happens-before behavior) all these 'nonsensical' changes in state disappear.

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

JGO Kernel


Medals: 518



« Reply #3854 - Posted 2016-02-29 12:52:40 »

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

paper, code and link to shadertoy imp:

https://research.nvidia.com/publication/real-time-rendering-procedural-multiscale-materials
Offline boxsmith
« Reply #3855 - Posted 2016-02-29 19:06:00 »

Just because a piece of code is not concurrently accessed, does not mean you don't have to take measures to ensure the code is thread safe. You'll see that with proper locking/fencing (ensuring happens-before behavior) all these 'nonsensical' changes in state disappear.

Give me some credit. It's not like I just slapped a synchronized block on there without thinking about it. I slapped a phaser on there without thinking about it. Smiley

The nature of the aforementioned nonsense appears to have been that the number of unarrived parties was sometimes incorrect: 0 instead of 16 (the number of registered parties). In other words, there was a bit of code that relied on the assumption that the phaser had already advanced to the next phase, when in fact the phaser would sometimes be found in the process of transitioning instead. All this seemingly because I failed to take note that the documentation for onAdvance() says "upon impending phase advance" and not "after phase advance," which evidently becomes a pretty important distinction once you start using the phaser's non-blocking methods. Really should've waited until I was back at my computer before running my mouth.

tl;dr: Matthias's library works like a dream, and 3 AM is not the correct time to be dicking around with concurrency, which is a lesson that no sensible person needs, but one that I repeatedly fail to learn. Carry on. Clueless
Offline delt0r

JGO Wizard


Medals: 145
Exp: 18 years


Computers can do that?


« Reply #3856 - Posted 2016-02-29 21:23:49 »

I use MatthiasM's continuation-library in a many threads applications all the time. It works fine. As expected. In fact my only question is, does the code weaving need updating with new versions of the JVM? Same with Riven's Structs for java?

As to what i did today. My internet and local network(wifi) has been just too flaky. I finally went all wired network yesterday with a gigabit 8 port switch and a Power line network from upstairs. It is working perfectly despite the fact that i have the power line network stuff plugged into power strips at both ends. Apparently a big no no. But i get my full 20Mbit internet download speed no probs. Was struggling to get 1.5Mbit before so i assume i was getting a lot of interference.

As for code... i am seeing greener grass on the Scala side of the fence :/

I have no special talents. I am only passionately curious.--Albert Einstein
Offline princec

« JGO Spiffy Duke »


Medals: 1126
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #3857 - Posted 2016-02-29 21:27:47 »

Today I "enjoyed" programming a protocol for RS485. It seems that getting Windows to talk to RS485 should be the simplest thing in the world - how hard could it possibly be? - but nothing at all works as expected. The APIs are the usual rubbish as well (buggy, poorly documented, not even nicely formatted source code) because Oracle in their wisdom dropped the javax.comm APIs a long time ago and never picked them up again. It just makes my blood boil.

Cas Smiley

Offline ThePixelPony

Senior Newbie


Medals: 3
Exp: 3 years



« Reply #3858 - Posted 2016-02-29 22:02:20 »

After an entire YEAR, I've recovered my JGO account, which I am really happy about.

I've been working on a voxel engine and managed 500 FPS. I have yet to implement frustum culling and uploading meshes to the GPU on another thread.

#BlameMicrosoft
Offline delt0r

JGO Wizard


Medals: 145
Exp: 18 years


Computers can do that?


« Reply #3859 - Posted 2016-02-29 22:16:29 »

@princec I have to ask. Why RS485?

I have no special talents. I am only passionately curious.--Albert Einstein
Offline princec

« JGO Spiffy Duke »


Medals: 1126
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #3860 - Posted 2016-02-29 23:11:58 »

Need a multipoint bus that can stretch a kilometer without fibre optics, basically. RS485 is still the go-to technology for that. I just wish the UARTs would just simply and accurately transmit bytes when they're told to. How hard can it be? Oh, there are some bytes in my output buffer! I shall stop listening for a moment and send them, and go back to listening as soon as that buffer is empty.

Cas Smiley

Offline delt0r

JGO Wizard


Medals: 145
Exp: 18 years


Computers can do that?


« Reply #3861 - Posted 2016-02-29 23:21:55 »

I would have thought that some of the industrial buses on the market would solve this better. However probably not cheaply. Been a while since i worked with that. Also the last factory my buddy wired up was all Ethernet.

As to how hard can it be... Well i am trying to get my arduinos to talk to each other over zigBee, while one is in a G motor rocket traveling at up to march 1. That is also not working very well even across the room when everything is not moving!

As for on board bus/coms SPI is about all i use these days over fairly short distances.

I do recall getting the parallel port to do my bidding back in the old days. I did in fact get it to work as a card reader and writer!

I have no special talents. I am only passionately curious.--Albert Einstein
Offline Ashedragon

JGO Coder


Medals: 27
Projects: 1
Exp: 4 years


The best person you could possibly be is yourself.


« Reply #3862 - Posted 2016-03-01 18:41:35 »

Wrote up like eight pages of lore, characters and general GDD nonsense. I haven't even begun to get in-depth yet, haha.

boo
Offline avocadojoe
« Reply #3863 - Posted 2016-03-01 19:41:52 »

experimented with defenses, screenshake, and "Particle Systems" Grin

^.^
Offline Grunnt

JGO Kernel


Medals: 143
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #3864 - Posted 2016-03-01 20:29:27 »

Progress on procedurally generating a galaxy:

Click to Play


The number of arms can be configured. Not bad for an evening's work, now I'll try to make it more realistic, perhaps with some color.

Offline Some1epic123

Senior Devvie


Medals: 8
Projects: 1



« Reply #3865 - Posted 2016-03-01 22:35:18 »

Finished up my Mini LD game:

Click to Play


After an entire YEAR, I've recovered my JGO account, which I am really happy about.

I've been working on a voxel engine and managed 500 FPS. I have yet to implement frustum culling and uploading meshes to the GPU on another thread.

Welcome back! Smiley
Offline Slyth2727
« Reply #3866 - Posted 2016-03-03 03:43:14 »

wtf.... forgot to limit my fps on a test project and when I zoomed out (not rendering anything) I heard an increasingly louder and higher pitched whine coming from my 780 ti... erm.

It was funny; I'd zoom in and the whine got lower and quiter. Zoom in, louder and higher. Zoom out. In. Back out again. It cracked me up Tongue
Pretty sure I had my GPU on the video card equivalent of a torture rack.
Offline theagentd
« Reply #3867 - Posted 2016-03-03 04:39:03 »

wtf.... forgot to limit my fps on a test project and when I zoomed out (not rendering anything) I heard an increasingly louder and higher pitched whine coming from my 780 ti... erm.

It was funny; I'd zoom in and the whine got lower and quiter. Zoom in, louder and higher. Zoom out. In. Back out again. It cracked me up Tongue
Pretty sure I had my GPU on the video card equivalent of a torture rack.
Eh, it was more fun before for me. They don't even make a sound for me anymore. >___> Not sure if that's a good or a bad sign...

Myomyomyo.
Offline elect

JGO Knight


Medals: 72



« Reply #3868 - Posted 2016-03-03 07:18:05 »

Eh, it was more fun before for me. They don't even make a sound for me anymore. >___> Not sure if that's a good or a bad sign...

Have you, maybe, updated the drivers?
Offline Riven
Administrator

« JGO Overlord »


Medals: 1370
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3869 - Posted 2016-03-03 08:00:52 »

It used to be the case that it could actually damage the hardware on nVidia cards, so... beware.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Pages: 1 ... 127 128 [129] 130 131 ... 215
  ignore  |  Print  
 
 

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

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

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

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

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

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

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

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

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

nelsongames (4294 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!