Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 188 189 [190] 191 192 ... 206
  ignore  |  Print  
  What I did today  (Read 2909352 times)
0 Members and 2 Guests are viewing this topic.
Offline philfrei
« Reply #5670 - Posted 2017-09-14 19:10:54 »

So easy for projects to get derailed, for me. My last post was about the Theremin. It's so far out of mind that I can't recall why it got back-burnered again. Ah--probably the "macro recording" feature proved too tricky to just kick out and I put it aside for that reason. I really need to get better at follow-through!!

Mostly am focused on JavaScript/VR for startup: downloaded 95 sets of 6 jpgs that form boxes that can be used as 360-degree photos, of a US WWII Navy battleship interior and deck. These could be really cool for a game, but permissions issues. Also, the photographers didn't have navigation through the space in mind. So maybe only a third have clear connections to each other. Lots of knowledge holes to fill: finished w3schools section on HTML and am progressing through CSS. Also working through book on JavaScript after finishing the basic w3schools section.

Had to take a break to work on a bit of music! (I was a music major, after all.) I think the recent remix on this tune (was posted a couple years ago?) has helped a lot. Had avoided using limiters before this for no good reason, but it turns out Audacity's limiter was great at squashing the 'gong' and allowing the overall volume to be boosted to something reasonable. Needs a title. It is a quiet piece, possibly works as background music for coding. Maybe it is strong enough to put up for sale for $1? Have been kind of scared to take that step.

music and music apps: http://adonax.com
Offline Icecore
« Reply #5671 - Posted 2017-09-14 22:30:24 »

Ah--probably the "macro recording" feature proved too tricky to just kick out and I put it aside for that reason.
Capturing Events and reproduce them can be tricky
here some raw example
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
long Start_Time;
Start_Recording(){
   Start_Time = cur_Time_Ms
}

ArrayList Events
java_Mouse_event(){//etc evn
   long time_Trig = cur_Time_Ms - Start_Time
   Events.add(event, time_Trig)
   
   java_Mouse_event_Proc(ev)
}

java_Mouse_event_Proc()
///
Thread_Load_Events{
   Events_Load
   int proc_List_Pos = 0;
   int size = Events_Load.size;
   while(proc_List_Pos < size){
      long cur_Time_Ms_Macro = cur_Time_Ms - Start_Time_Macro
      int i = proc_List_Pos
      for(; i < size; i++){
         if(ev.time_Trig <= cur_Time_Ms_Macro){
            java_Mouse_event_Proc(ev);
         }else{
            break; //for loop
         }
      }
      proc_List_Pos = i;
      Sleap(15)
   }
}

all be fine and smooth if application don't have Lags =)
if you have after some event let say 100ms lag
-additional event align needed - to compensate multithreading desync ^^
(or don't care if events don't need perfect time accuracy)

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Offline Slyth2727
« Reply #5672 - Posted 2017-09-15 05:40:22 »

So I got a little side tracked from the original project and wrote some code to move the mouse with my hand. In the first portion of the video I demonstrate that and in the second bit I show how the model can discriminate between three different hand postures. That parts a WIP but it's getting there. It can only get accurate when my hand is in the center of the image. Hope you like my 20+ hour sleep deprived face in the background.

Mouse movement uses a very simple algorithm of getting the average position of all those white pixels. Which is why I have to have my sleeve up. But it works decently.

edit: trained it a bit better, now it's much better at detecting posture no matter the position and angle. Now I can click by putting a finger up! I also coded it to 'press' space so I could play that little chrome dinosaur game. Jumping when I put one finger up.

<a href="http://www.youtube.com/v/JnQu0nlchKM?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/JnQu0nlchKM?version=3&amp;hl=en_US&amp;start=</a>
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline J0
« Reply #5673 - Posted 2017-09-15 17:21:33 »


Been designing this character, for a short-ish story I have in mind. I quite like the way that turned out, so I might make it into either a game or webcomic Smiley Let me hear your thoughts on the design!

Offline Icecore
« Reply #5674 - Posted 2017-09-18 11:32:06 »

Look what i found)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
   static public void main(String[] args){
      B b = (B) new B().Call();
      B b_E = new B().Call_E();
      C c = new C().Call_E();
     
      //Runtime Error
      //But Because its Class exception - its trigger on every call = easy to find and fix
      C c_Er = new A().Call_E();
   }
   
   static public class A{
      public A Call(){
         return this;
      }
      public <E extends A> E Call_E(){
         return (E) this;
      }
   }
   
   static public class B extends A{}  
   static public class C extends B{}

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5675 - Posted 2017-09-18 12:26:53 »

What sort of sick puppy says "static public"!?
<edit>Aha, the same sort of sick puppy that names method calls with capital letters!

Cas Smiley

Offline Icecore
« Reply #5676 - Posted 2017-09-18 14:54:46 »

What sort of sick puppy says "static public"!?
Cas Smiley
static is more important for me then public / protected ^^
I also have
1  
2  
3  
Object ar[] 
Object ar[][]
Object[] ar[]

(when many ppl use
Object[][] ar
)
=)

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5677 - Posted 2017-09-18 15:03:06 »

You need therapy, at once!

Cas Smiley

Offline Icecore
« Reply #5678 - Posted 2017-09-18 15:19:20 »

You need therapy, at once!
Maybe)  
(or use Auto Formatter before post code somewhere XD)
ED:I use lower Case only for function arguments, in function variable and RAW code
1  
2  
3  
4  
5  
int W;
public Win(int w){
   W = w;
   int x = 10;
}

I don't like this type of style:
1  
2  
3  
4  
int w;
public Win(int w){
   this.w = w;
}

For static and final – I have different Font style(color) in IDE so I don’t care )

up: ps.
this preference only for my own projects
- if i write for 3rd party project I use their formatting style Wink

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Offline Roquen

JGO Kernel


Medals: 518



« Reply #5679 - Posted 2017-09-21 19:42:01 »

I downloaded java 9.  Go me.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5680 - Posted 2017-09-21 20:35:59 »

Likewise. Intrigued by this release.

Cas Smiley

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #5681 - Posted 2017-09-22 09:09:46 »

The JAR is dead! Long live modules!

Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5682 - Posted 2017-09-22 09:21:22 »

Of all the things in Java 9, the modules thing is probably the least useful to the most people.

Cas Smiley

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 123
Projects: 15


★★★★★


« Reply #5683 - Posted 2017-09-22 09:28:33 »

Rather annoying that module files no longer open with zip software, jar's had this advantage in that you could easily open them and have a look inside (and even modify them) using any program that supports zip files.
Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5684 - Posted 2017-09-22 09:34:27 »

A bit of a shame yes, but then again zip is a pretty poor format for speedy access... are modules any better in that regard?

Cas Smiley

Offline CoDi^R
« Reply #5685 - Posted 2017-09-22 12:10:44 »

It's still ZIP files. I can rename them to *.zip, then use the 'unzip' cli to unpack. It warns about "4 extra bytes at..." though, so they probably just customized (obfuscated) the header a little. Just enough to irritate the OS X Archive Utility...  Roll Eyes

Robotality - steamworks4j - @code_disaster - codi^r @ #java-gaming
Offline abcdef
« Reply #5686 - Posted 2017-09-23 05:31:24 »

Of all the things in Java 9, the modules thing is probably the least useful to the most people.

Cas Smiley

What do you think is the most useful?

I can't see modules catching on any time soon because so much is invested in jars.its also interesting that oracle is handing a lot of java back to the community (openjdk is now the standard and j2ee moving to eclipse I think)
Offline J0
« Reply #5687 - Posted 2017-09-23 10:54:02 »

I'm so happy
Highlight of my day: Herjan here on JGO sent me the nicest private message about my first webcomic! Well, actually it was sent like 20 days ago but only now did I see it. Anyway, if just to receive that kind of positiveness every once in a while, I want to keep drawing and keep telling stories through webcomics!
Herjan: I privately replied but thank you so much again. If it's okay with you, could you share your initial message either here or directly in the comments section of my website? I love you Smiley

Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5688 - Posted 2017-09-26 08:43:01 »

What do you think is the most useful?

Actually now you actually ask me... this does seem to be a bit of a lame duck of a release features-wise. The module system solved a problem we didn't exactly have as such though especially as OpenJDK can be chopped down as much as we like.

A few of the new static Collections methods will cut out a bit of irritating boilerplate and it paves the way for actual lexical syntax to support them in a future release which would be nice (in the same way as, say, "" quotes and the + are specially handled to cope with the String class, we could get syntax for lists, sets and maps eh?)

I wonder if the new renderer for JavaFX is any faster. API improvements creep onwards but it's still sort of in the early days yet.

Cas Smiley

Offline J0
« Reply #5689 - Posted 2017-09-26 10:10:59 »

in the same way as, say, "" quotes and the + are specially handled to cope with the String class, we could get syntax for lists, sets and maps eh?
I really think one of the things Java lacks most is operator overloading. Because it's so fancy.

Offline CoDi^R
« Reply #5690 - Posted 2017-09-26 10:26:15 »

I really think one of the things Java lacks most is operator overloading. Because it's so fancy.


Robotality - steamworks4j - @code_disaster - codi^r @ #java-gaming
Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #5691 - Posted 2017-09-26 10:28:35 »

Interestingly most of the things Java really lacks are present in Ceylon. Which is looking veeeeeeeery interesting.

Cas Smiley

Offline h.pernpeintner

JGO Ninja


Medals: 100



« Reply #5692 - Posted 2017-09-26 10:38:54 »

Interestingly most of the things Java really lacks are present in Ceylon. Which is looking veeeeeeeery interesting.

Cas Smiley

Yey, union and intersection types! Although I heard that this concept is one of those that worsen your codebase because modeling types is neglected piece for piece.
Offline Oskuro

JGO Ninja


Medals: 77
Exp: 10 years


Coding in Style


« Reply #5693 - Posted 2017-09-26 11:02:52 »

@CoDi^R: You say it like the Dark Side is a bad thing  Grin

Offline CoDi^R
« Reply #5694 - Posted 2017-09-26 11:18:04 »

@CoDi^R: You say it like the Dark Side is a bad thing  Grin

Not at all! But as every Sith lord knows: it's a fine line between ruling the galaxy and going nuts.  Wink

Robotality - steamworks4j - @code_disaster - codi^r @ #java-gaming
Offline Opiop
« Reply #5695 - Posted 2017-09-27 19:38:47 »

I'm starting a new job at a popular software development bootcamp! I'll be helping to teach Java and C# to people all over the US Smiley I really like teaching so this is an exciting change.

Crazy to go back to my first posts and see how far I've come... I've been on this forum for so long now!
Offline SHC
« Reply #5696 - Posted 2017-09-30 19:33:38 »

I experimented with creating a UWP app with Java, and it seems with GWT it is possible, although I had to use a hack.

https://github.com/sriharshachilakapati/JavaUWPExperiment

More details coming soon. I'm very sleepy now.

Offline Slyth2727
« Reply #5697 - Posted 2017-10-11 07:26:59 »

Implemented a navier stokes solver based on this paper: http://www.intpowertechcorp.com/GDC03.pdf
Still have to add the project step but it looks ok now. Can draw velocity map and stuff too.
Coded it in processing for simplicity, gonna switch over to Java and LibGDX to render and compute it on the GPU for performance because I don't feel like digging into shaders with processing. Maybe I'll release a fluid sim library for LibGDX once this is done.

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

Edit: Implemented the project function. It's pretty much done in terms of getting it up and running. Now for shaders ie actually good performance.

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

JGO Ninja


Medals: 100



« Reply #5698 - Posted 2017-10-12 12:16:22 »

VERY NICE!
Offline 65K
« Reply #5699 - Posted 2017-10-15 07:51:15 »

Our pixel master Richard shows how to create a big machine for Lethal Running.

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

Lethal Running - a RPG about a deadly game show held in a futuristic dystopian society.
Pages: 1 ... 188 189 [190] 191 192 ... 206
  ignore  |  Print  
 
 

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

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

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

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

nelsongames (1189 views)
2018-04-24 18:15:36

nelsongames (1717 views)
2018-04-24 18:14:32

ivj94 (2542 views)
2018-03-24 14:47:39

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

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

Solater (973 views)
2018-03-17 05:04:08
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

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!