Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
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   
Pages: 1 ... 54 55 [56] 57 58 ... 200
  ignore  |  Print  
  What I did today  (Read 2597589 times)
0 Members and 3 Guests are viewing this topic.
Offline lcass
« Reply #1650 - Posted 2015-02-08 13:14:33 »

Basically about to smash my head against a wall over this bloody algortihm , but still here is an example of when it works as it should (somewhat)
Click to Play

Rotation doesnt work, sometimes random tiles will be destroyed , sometimes the tiles will slide straight through each other , sometimes for a magical reason tiles wont be rendered and its all been caused by this I dont even...
If anyone would like to help out a poor and stressed lcass please take a gander at his collision detection.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
if (check_collision(a, coreship)) {
               Ship attacking = coreship;
               for(int ax =0;ax< a.collision.length;ax++){
                  Vertex2d corner = a.collision[ax].whole();
                  corner.add2(core.G.revert_coordinates(a.absolute_position.xy()));
                  corner.sub(new Vertex2d(32,0,0,0));
                  for(int at = 0;at < attacking.collision.length;at++){
                     Vertex2d attacker = attacking.collision[at].whole();
                     attacker.add2(core.G.revert_coordinates(attacking.absolute_position));
                     attacker = com.lcass.util.Util.rotate(attacker, attacking.rotpoint, attacking.rotation);
                     attacker = com.lcass.util.Util.rotate(attacker, a.rotpoint, -a.rotation);
                     
                     if(((attacker.x >= corner.x) && (attacker.x <= corner.u))|| ((attacker.u >= corner.x) && (attacker.u <= corner.u))){
                       
                        if(((attacker.y >= corner.y) && (attacker.y <= corner.v))|| ((attacker.v >= corner.y) && (attacker.v <= corner.v))){
                           a.damage(a.collision[ax].div(32), 100);
                           coreship.damage(attacking.collision[at].div(32), 100);
                           
                        }
                     }
                  }
               }
            }
Offline Olo

JGO Coder


Medals: 15
Projects: 3
Exp: 5 years


Metaphysical solipsism AFFIRMS your existence


« Reply #1651 - Posted 2015-02-08 15:48:11 »

Been trying to fix my old iMac Intel iSight the whole day. Yesterday, i shut it down, unplugged it and placed it on the floor because i wanted to clean my desk. After reconnecting it wouldn't even boot. No chime no fans no lights, nothing. Checked the psu-fine , nothing fried. Blew the dust away and reassembled it. Tried again. Still no boot.

-Can you fix it?
-No, I can't. But I can bypass it with one of these.
Offline Gibbo3771

JGO Kernel


Medals: 128
Projects: 5
Exp: 1 year


Currently inactive on forums :(


« Reply #1652 - Posted 2015-02-08 17:32:37 »

@Icass

Considered using some sort of physics engine like Box2D? If you are making a spaceship based game, it makes life much easier and you can do some pretty impressive stuff with very little code (physics simulated particles ftw).

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline lcass
« Reply #1653 - Posted 2015-02-08 17:43:47 »

I like the challenge , plus it is more dynamic , I think.
Offline lcass
« Reply #1654 - Posted 2015-02-08 21:34:59 »

You know when you have a horrendously annoying bug and it turns out to just be a trivial mistake , in this case I failed to re ad the rotation coordinate to my variables ...
IT WORKS! AFTER MANY HOURS OF PAIN IT WORKS!
Click to Play

Click to Play

There is still some random tile deletion but ill handle that later.
Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1655 - Posted 2015-02-08 22:51:09 »

This 3:

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

Cheers,

Kev

Online Riven
Administrator

« JGO Overlord »


Medals: 1340
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1656 - Posted 2015-02-09 13:35:28 »

Fighting suddenly incredibly unstable mysql service - I repaired 3 tables already Cranky

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline lcass
« Reply #1657 - Posted 2015-02-09 23:23:03 »

I have a joch.

Why did the programmer die of exhaustion? He went to have a shower and the shower gel said rinse dry repeat.
Offline theagentd
« Reply #1658 - Posted 2015-02-10 03:15:56 »

Rewrote my texture streaming to accommodate a few new things based on my findings in this thread: http://www.java-gaming.org/topics/files-on-your-harddrive-can-be-mapped-and-passed-directly-into-textures-buffers/35504/msg/336278/view.html#msg336278. I ended up not using mapped files, but I did rewrite it to use FileChannels instead of InputStreams, which should give a decent performance boost anyway. The biggest change lies in how textures can be sourced now. Before the streamer simply looked in a directory you specified, which got awfully messy once you had 50 textures or so. Now it's possible to put the textures multiple folders and also to pack together textures into a single massive file, and feed the streamer a TextureSource object for that folder/file, and tadaa, the streamer can magically find them!

Myomyomyo.
Offline Slyth2727
« Reply #1659 - Posted 2015-02-10 04:33:21 »

Started on a new one. Didn't have much time; Only about an hour due to school and work but it's a start. Programming related, I started really working in a new game development job with Egghead Games. It's a great experience!

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

JGO Coder


Medals: 11
Projects: 1
Exp: 10-12 months


Aww... So cute...


« Reply #1660 - Posted 2015-02-10 10:09:42 »

I've been setting up LeJOS to trial at school tomorrow but I don't know the first thing about it....

This is what the SD card should look like???


Also, by the looks of it... I just put it into the EV3, download the LeJOS development thingy, install eclipse with the LeJOS plugin??? I don't have an EV3 at home and I'm setting this up for a mac... so it makes it kinda hard...

(I thought this would just be a small question, so I didn't put it into it's own thread)

Is it sad that I still get a fright when the computer beeps at me...
Offline MrPizzaCake

Senior Devvie


Medals: 8
Exp: 3 years


Hello, another wonderful human being :)


« Reply #1661 - Posted 2015-02-10 11:39:48 »

*awesome image*

A start? I spend 2 hours on a drawing, and it has almost no detail!
Also, I'd move the mouth slightly to the left, so the proportions are slightly more correct, but other than that, it's effing amazing!

How am I? Tough question, since emotions are confusing as heck Tongue
Offline Ecumene

JGO Kernel


Medals: 197
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #1662 - Posted 2015-02-10 17:59:32 »

I've been polishing my OBJ loader to have support for texture definitions in the .mtl file. I also have support for varying materials in the OBJ file by having each face that is defined after a usemtl call will be packed into it's own VBO. So each material has a VBO, and each VBO is made up of the vertices parsed from the OBJ file. This fixes both my multiple material file problem and my 'unique' vertices problem.


Offline Slyth2727
« Reply #1663 - Posted 2015-02-10 21:17:35 »

A start? I spend 2 hours on a drawing, and it has almost no detail!
Also, I'd move the mouth slightly to the left, so the proportions are slightly more correct, but other than that, it's effing amazing!

Lots of practice Smiley I've taught myself like I taught myself programming, just lots of internet searches and time. I'm not really even good yet sadly; Drawing is a difficult thing. But thanks for the suggestion, I'll do that!
Offline ags1

JGO Kernel


Medals: 367
Projects: 7


Make code not war!


« Reply #1664 - Posted 2015-02-10 21:34:47 »

Got WebGL and OBJ loading working on my website. Nothing to demo yet - I just got some googled code working.

Offline princec

« JGO Spiffy Duke »


Medals: 1030
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #1665 - Posted 2015-02-10 22:29:02 »

Wrote a bit more on industry insight.

Cas Smiley

Offline BurntPizza

« JGO Bitwise Duke »


Medals: 485
Exp: 7 years



« Reply #1666 - Posted 2015-02-11 03:24:41 »

Working on a PSO mini-lib for my utilities.

Sample:

Optimize the following function within the 2D unit rectangle:
Function<Vector, Double> costFunction = v -> Math.cos(v.get(0) * 2 * Math.PI) + Math.cos(v.get(1) * 2 * Math.PI);
Hyperrectangle searchSpace = Hyperrectangle.UNIT(2); // 2D interval [0, 1]^2




(via http://www.math.uri.edu/~bkaskosz/flashmo/tools/graph3d/)

Lowest point on cos(2πx) + cos(2πy) in the search space is at (0.5, 0.5) so we should get at least pretty close to that.

1  
2  
Vector solution = PSO.optimize(costFunction, searchSpace).until(5, TimeUnit.MILLISECONDS);
System.out.println("Best: " + solution);

Quote
Best: (0.49999064, 0.49999303)

The optimize function returns a builder with options including search params (meta-optimizable!), number of particles, threads, seed, a Consumer<Candidate> observer for 'new best solution' events, and the until method specifies an end condition, either time, iterations, or a cost floor predicate function.

E.g.
PSO.optimize(costFunction, searchSpace).with(8, PSO.THREADS).reportingTo(System.out::println).until(1, TimeUnit.SECONDS);


Runs on 8 threads, pretty-prints progress to stdout 'live,' and returns after 1 second.
The cool part is that is can optimize arbitrary functions in an arbitrary number of dimensions!

Pretty good day so far.
Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #1667 - Posted 2015-02-11 04:35:45 »

Ran 100m in 12.28 seconds, amongst other athletics events.

Am now too exhausted to program.

Offline Slyth2727
« Reply #1668 - Posted 2015-02-11 23:14:31 »

Got 2 new routers today to extend the signal around the house.. We're pushing 60 mbp/s. Wowee..
Edit: I also just solved Rubik's Cube!
Offline HeroesGraveDev

JGO Kernel


Medals: 382
Projects: 11
Exp: 4 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #1669 - Posted 2015-02-12 03:50:09 »

Edit: I also just solved Rubik's Cube!
Level up!

Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1670 - Posted 2015-02-12 06:55:08 »

That was very beautifully written!

Offline SHC
« Reply #1671 - Posted 2015-02-12 07:09:18 »

Wrote some documentation for OpenAL classes in my SilenceEngine.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
/**
 * Uploads the data present in a NIO Buffer of a specific format and frequency
 * into this OpenAL Buffer.
 *
 * @param data      The NIO Buffer containing the data samples
 * @param format    The OpenAL format of the data samples in the buffer
 * @param frequency The frequency of the sound samples (in Hz)
 *
 * @throws ALException.InvalidValue If the data does not match the format specified.
 * @throws ALException.OutOfMemory  If there is no available memory to store the data.
 */

public void uploadData(Buffer data, int format, int frequency)

Any good tips for improvement and to write good documentation?

Online Riven
Administrator

« JGO Overlord »


Medals: 1340
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1672 - Posted 2015-02-12 08:24:13 »

It's very verbose, stating the obvious multiple times, leaving out the only non-obvious thing... what constants should we pass as 'format'?

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline SHC
« Reply #1673 - Posted 2015-02-12 09:08:45 »

It's very verbose, stating the obvious multiple times, leaving out the only non-obvious thing... what constants should we pass as 'format'?

Thanks for the reply @Riven. I have chosen to create an enum called as
ALFormat
. Is it good enough, or should I revert it and change the documentation?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
/**
 * Uploads the data present in a NIO Buffer of a specific format and frequency
 * into this OpenAL Buffer.
 *
 * @param data      The NIO Buffer containing the data samples
 * @param format    The OpenAL format of the data samples in the buffer
 * @param frequency The frequency of the sound samples (in Hz)
 *
 * @throws ALException.InvalidValue If the data does not match the format specified.
 * @throws ALException.OutOfMemory  If there is no available memory to store the data.
 */

public void uploadData(Buffer data, ALFormat format, int frequency)

I think it is okay, or should I write more by taking parts from the OpenAL documentation?

Online Riven
Administrator

« JGO Overlord »


Medals: 1340
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1674 - Posted 2015-02-12 09:14:19 »

enum is ok

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline lcass
« Reply #1675 - Posted 2015-02-12 11:57:57 »

Had to cancel our skiing trip to canada a day before we went...  Cry
Offline SilverTiger

JGO Coder


Medals: 40
Exp: 3 years


がんばってください!


« Reply #1676 - Posted 2015-02-12 12:05:50 »

Why not going for a real challenge? Cheesy

Offline Icecore
« Reply #1677 - Posted 2015-02-12 12:57:36 »

I like it Smiley

most fun quote for me:
Quote
We are legion, generally worthless, expendable, and there’s plenty more where that came from.
Quote
3 man studio in a bedroom.
XD

Imho: Its good, but totally wrong,
I have mind some time ago: that change all my life and rotate it around 360 degrees.

What you will do if you have billion dollars, how they change you'r current life?
-What you will do? except waist you'r time drink all days, watch tv, or something like that?

If you’r like programming you’r be sitting like now - all day and watch in monitor,
Do you really cares if you sit where you are now, or in Beverly hills?

Same with painting, music creation and many else creativity
You already can do 95% things in world simple in place where you are.

You already where rich!!!

p.s you may think that you hire ppl and they start making games for you,
but you’r wrong its terrible idea
– without good team and experience you lose so many mental health
– because this stupid ppl do all totally wrong ^^

The main idea is: for what you need that billions?
For start programming, or do something that you can start doing now?

Its illusion – that receiving big money you start doing something
that you CAN DO BUT DON’T WANT TO DO NOW?

Nothing will change – but with big money
you have even bigger chance that all become even harder to do
– because you will receive even more ridiculous ways to waist you’r time XD

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

« JGO Spiffy Duke »


Medals: 1030
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #1678 - Posted 2015-02-12 13:02:38 »

My ambitions are much more modest... I just need to get our mortgage paid off before multiple sclerosis does so badly for Mrs. Prince that I can no longer work for having to take care of her. That is all. I've given up on any other ambition than to just make sure we make it to old age with a roof over our heads.

Cas Smiley

Offline Icecore
« Reply #1679 - Posted 2015-02-12 13:11:09 »

I just need to get our mortgage paid
I don't say that want making money is bad,
I even fully agree with you that its normal want make money for quiet life.

I want say that if you’r have money for normal living – billions dollars don’t change you’r life in better way)
(I most cases =))

And many ppl waiting this biilions for start making someting that they can start doing right now.

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Pages: 1 ... 54 55 [56] 57 58 ... 200
  ignore  |  Print  
 
 

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

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

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

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

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

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

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

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

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

buddyBro (1065 views)
2018-02-28 16:59:18
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!