Author |
Message |
StoneCrow
Joined: Sat Nov 14, 2009 5:09 pm Posts: 70
|
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 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 |
|
|
Benpasko
Joined: Sun Aug 09, 2009 9:26 am Posts: 1633
|
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 |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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 |
|
|
Projector
Joined: Tue May 04, 2010 11:43 pm Posts: 6
|
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 |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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 |
|
|
Projector
Joined: Tue May 04, 2010 11:43 pm Posts: 6
|
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 |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
StoneCrow
Joined: Sat Nov 14, 2009 5:09 pm Posts: 70
|
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 my question was if it was possible to create this and use them as weapons,
|
Mon May 10, 2010 4:38 pm |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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 |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Cellular automaton weapons
http://trac.cafu.de/browser/vendor/lua/ ... order=sizeoh hi guys now just add a display function to spit out pixels
|
Wed May 12, 2010 3:11 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
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 |
|
|
|