View unanswered posts | View active topics It is currently Fri Jan 10, 2025 3:20 pm



Reply to topic  [ 13 posts ] 
 Cellular automaton weapons 
Author Message
User avatar

Joined: Sat Nov 14, 2009 5:09 pm
Posts: 70
Reply with quote
Post Cellular automaton weapons
(otherwise known as conways game of life)
Ok so im sure someone else has thought of this.

But with lua would it be possible to rig a dropship with a weapon a little like this
Image

Now my understanding of CC lua is really low, but CellularAutomatons require a grid to run in,
and ive seen Lua creating Cellular-A before (just search the Love engine forums to find a couple of examples)
It would be very possible to fake this cellular automata (which is what i thought about doing) but would it be possible to create this, since it would make a very cool dropship gun.

Cellular-A could also create some cool unpredictable napalm or virus/swarm effects,
another idea i thought of would be to fake that gospers slider gun, but have the rounds Gib into real Cellular-A

Im just asking out of interest, im not asking anyone to try cause i can see that it would probably be alot of work to hack this into CC


Last edited by StoneCrow on Mon May 10, 2010 4:20 pm, edited 1 time in total.



Mon May 10, 2010 11:44 am
Profile YIM
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Reply with quote
Post Re: Cellular Automaton weapons
...What is it? I can't even try to figure out what that's a picture of, maybe put that in the OP?


Mon May 10, 2010 11:50 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Cellular Automaton weapons
Actually that's better known as Conway's Game of Life, not CellularAutomatons. CellularAutomatons is a version of Conway's Game of Life.
Anyway, any game running on a computer needs a grid, it just depends on how big the grid squares are. In CC's case, the grid squares are one pixel each.


Mon May 10, 2010 12:25 pm
Profile WWW

Joined: Tue May 04, 2010 11:43 pm
Posts: 6
Reply with quote
Post Re: Cellular Automaton weapons
Not to be contrarian (teehee) but there's a difference between a grid system and a Cartesian plot. :/ It's like squares and rectangles.


Mon May 10, 2010 1:00 pm
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Cellular Automaton weapons
...
What?
Are you saying that the array of square pixels known as a screen isn't a grid?


Mon May 10, 2010 1:08 pm
Profile WWW

Joined: Tue May 04, 2010 11:43 pm
Posts: 6
Reply with quote
Post Re: Cellular Automaton weapons
Damnit, I wish I could remember the mathematical definition of both, but yes there is a difference. I'm going to try to wing it.

A Cartesian plane is a system of points. A grid system is a series of units (typically square) created by a Cartesian plane. Simply: A grid is when you connect the dots of a Cartesian plane.

Seriously, I'm not trolling here. This is basic finite math. I'll update this when I find some dox to support my statement.


Mon May 10, 2010 2:19 pm
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Cellular Automaton weapons
Let's say that we have a cartesian plane with a regular array of discrete points. Say we connected all these points in lines of x=a and y=a for each value of a. Say we could make those lines really small and colour in the enclosed regions. You have a screen. Whilst CC may work on a cartesian plane, the dimensions are not continuous - they are rounded to integers, so you end up with what is essentially a grid of squares one pixel in width.
I get what you mean though, the grid is the spaces between lines with set space between them whilst the cartesian plane can be anywhere between - a grid with no space between the possible lines.
I think projector means you're referring to a plot rather than a grid.


Mon May 10, 2010 2:25 pm
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Cellular Automaton weapons
holy christ shut up both of you

CC's screen still counts as a grid because it does subpixel math but displays as 1px squares, but it is also a cartesian plot

conway's game of life is easy enough to do you just need to come up with a good way to check for neighbors to a pixel/arbitrarily sized grid square (both are just as easy to implement)


Mon May 10, 2010 3:02 pm
Profile
User avatar

Joined: Sat Nov 14, 2009 5:09 pm
Posts: 70
Reply with quote
Post Re: Cellular automaton weapons
@benpasko,
cellular automatons , or conways game of life is an early attempt at simulating the life of really simple organisms
you get a grid (or whatever they said)
and when you fill it with dots, they follow a simple set of rules that dictates wether they multiply die or live on.

the rules are (wiki)
1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
2. Any live cell with more than three live neighbours dies, as if by overcrowding.
3. Any live cell with two or three live neighbours lives on to the next generation.
4. Any dead cell with exactly three live neighbours becomes a live cell.

soon people discovered that certain shapes move across the screen, such as the one on the main post or these
Image
Image
my question was if it was possible to create this and use them as weapons,


Mon May 10, 2010 4:38 pm
Profile YIM
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Cellular automaton weapons
As Grif said, it's fairly easy as long as you make a good algorithm for it to check neighbours.


Tue May 11, 2010 7:26 am
Profile WWW
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Cellular automaton weapons
Personally, if I were to take this up, I would increase the grid size to something like 3x3 px per cell, so as to make it more visible to the end user. Could you not then use something like
Code:
local upCell = (raycast up, ending at 3 px)
local downCell = (raycast down, ending at 3px)
local leftCell = (raycast left etc)
etc

with the cells being 3x3 MOSParticles or somesuch?


Tue May 11, 2010 3:30 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Cellular automaton weapons
http://trac.cafu.de/browser/vendor/lua/ ... order=size

oh hi guys

now just add a display function to spit out pixels


Wed May 12, 2010 3:11 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Cellular automaton weapons
Quick aside before someone actually makes this:
Cellular automata != Conway's Game of Life. Life is a specific cellular automata, not a name for all of them, and they can't just be used interchangeably.


Wed May 12, 2010 5:37 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.037s | 14 Queries | GZIP : Off ]