Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Black Sun

Member Since 24 Aug 2011
Offline Last Active Dec 05 2011 03:43 PM

Posts I've Made

In Topic: Generating downhill ski slopes for a 2d game

23 November 2011 - 04:45 PM

I would help you if i had more points in "Science" and "Repair" ;)

In Topic: Help With A Game Re-development Problem? (java)

26 October 2011 - 04:55 AM

So you're saying that once power has been applied to a wire (and propagated to all nearby wires, since it seems wires check their power by polling all immediate neighbors), if you remove the power source your wires continue to think they're powered since they keep noticing their neighbor thinks it is powered? Sounds like you need to change the way you're checking for power flow. As alternate possibilities, you could track the number of power sources (like reference counting) that reach a particular wire tile, or change the way your wires respond to a power source being turned off, like:

when source is powered off
-check all wires that connect to this power source
-if this is their only power source
-- turn them off
-else
-- reduce their source count by 1



Thanks! :)

The bit about the neighbour wires was about someone else who posted an answer.

In Topic: Help With A Game Re-development Problem? (java)

25 October 2011 - 03:38 PM

boolean powered = false;
if (top.powered)
	powered = true;
else if (bottom.powered)
	powered = true;
else if (left.powered)
	powered = true;
else if (right.powered)
	powered = true;

Alternatively:

boolean powered = (top.powered || bottom.powered || left.powered || right.powered);

The second uses a Boolean Or to see if the wire should have power or not; if any of the four connected pieces are powered, it will be true, otherwise it will be false.


But when a wire above is powered and the power source is turned off then the wire will still be powered if there are 2 or more wires connected to it :/

In Topic: EXTRON 2.0: 3D(in theory) electronic logic component simulator.

11 October 2011 - 02:52 PM



You should make the grid less visible so it would look nicer.

Also a led component might be nice, it would make a transparent circle of light about 2 cells wide :D


aha good idea :) im goind to put componets of 3*3 size.
I'll see how the game looks without the grid or with it less visible and if it looks good ill do it ;)


I think the grid is needed if you want to place the components in a specific way, though if you make it a lot less visible, you could add a horizontal and a vertical line crossing at where the cursor is, to help place components to the right places. It would be annoying tho if you dont need it so it could be an option or appear when you press a key...


hmm yeah. Ive dont a lot of updating today so i probably wont do that till thursday or something.
Ive made it so you can use 3*3 blocks, made saving ,loading and ive put a binary adder in also. I'll probably get round to uploading it tonight.

In Topic: EXTRON 2.0: 3D(in theory) electronic logic component simulator.

11 October 2011 - 09:32 AM

You should make the grid less visible so it would look nicer.

Also a led component might be nice, it would make a transparent circle of light about 2 cells wide :D


aha good idea :) im goind to put componets of 3*3 size.
I'll see how the game looks without the grid or with it less visible and if it looks good ill do it ;)

PARTNERS