The Gang Garrison 2 Forum
May 21, 2013, 10:26:23 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 »
  Print  
Author Topic: General stuff you've made  (Read 5577 times)
BassieEnAdriaan
Moderator
*****
Offline Offline

Posts: 1454



WWW
« Reply #15 on: March 18, 2012, 04:14:33 pm »

I looked at the rules, there's no specific thing saying that we can't have a thread like this, nor a rule saying that brainstorming has to be in the Ideas Thread.
You are correct, there isn't written anywhere that brainstorming has to be in the ideas thread. However so far all the little brainstorming ideas have been merged into that thread. On the subject of the board rules not mentioning a thread like this doesn't mean it is acceptable, its is for new projects. The board rules also doesn't forbid people from posting a strategy guide in here or a gameplay video, however that does not mean that that is what this board is made for.
Logged

If you find any offensive posts in strategy and tactics or the new projects section, don't use the report post button, but PM me instead. That way I can respond faster since I don't frequently check my email.
Orpheon
2011 Haxxy Award Winner
*
Offline Offline

Posts: 5830


Developer


« Reply #16 on: March 18, 2012, 04:21:32 pm »

Interesting. What's the algorithm?
uhhhh...
you mean this?
f(Z)=Z^2+c
f(Z)=(x1+y1i)^2+x2+y2i
f(Z)=x1^2+2*x1*y1i-y^2+x2+y2i
=> x=x1^2-y1^2+x2
=> yi=2*x1*y1i+y2i

And then it uses x and yi as x1 and y1i in the next loop. When z0 = (0,0) you will keep getting the same output after looping a few times (the attractor list). Then the script checks every z from (-2,-2) to (2,2). if it has the same output as z0, if it has it will get a color, if not it will be gray.

Oooook, I'll have to read that when I'm awake.

Also, I'm seeing this
a+=0.005;
Please don't do that. Not in Python.
Hehe, i'm so used to doing that that i do it without knowing i guess.
You should still try to stop doing it in Python, because nothing from will get accepted in PyGG2 if it has ; Tongue
(no seriously, don't mix languages if you can avoid it)


For making images, pygame is good, but maybe you'd want to use PIL (Python Image Library).
It lets you create an image directly, and write the individual pixel values.
Code:
from PIL import Image

global PICTURE_WIDTH, PICTURE_HEIGHT
PICTURE_WIDTH, PICTURE_HEIGHT = 500, 500

image = Image.new("RGB", (PICTURE_WIDTH, PICTURE_HEIGHT))

for x in range(PICTURE_WIDTH):
for y in range(PICTURE_HEIGHT):
color = (255, 0, 0) # Red
image.putpixel((x, y), color)
image.save("image.png")
Idk if it's better.
does that also draw the image on the screen?
Nope. It immediately outputs it to a png.


And about 4D, it's probably impossible for a human being to visualize 4D stuff, our brains are simply not wired for it. But maths can still describe it.
It's basically a space where you need 4 coordinates to represent a point. Where there are infinite lines that are perpendicular to 2 lines, and even more (lol) that are perpendicular to 1.
okay


PS: One last thing, if you add
Code:
from __future__ import division
this will happen
Code:
1/2 = 0.5
and not this
Code:
1/2 = 1 # integer division-->rounding
what do you mean with this and why do you mention it? Do i need that somewhere? Also what is __future__?
__future__ is a bunch of stuff that isn't mainstream yet but that could/should be. I mention it because integer division is something pretty stupid and can generate some annoying bugs.
You apparently don't need it in your code, but I'd recommend adding this to the very top of your file.



Oh also, Lorgan, tried making a real-time thing where you can zoom in?
my script currently needs about a minute for every image, how could i make this real-time lol
...ok, forget it Tongue

I don't see how this is against the rules.

As the board rules state you can brainstorm for your projects in here (ideas thread) and game development. This thread is just a bin full of little games.
Okay but this seemed the best place to post it...
Leave this, it's a great idea, and it's probably going to contain a lot more code and stuff than many threads here.
Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Orpheon
2011 Haxxy Award Winner
*
Offline Offline

Posts: 5830


Developer


« Reply #17 on: March 20, 2012, 09:56:10 am »




Shaders FTW.
Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Dusty
Hero Member
*****
Offline Offline

Posts: 10651


Dust in a box under a table


« Reply #18 on: March 20, 2012, 12:22:48 pm »

Code:
show_message("Finding compatible cards")

firstFile = file_find_first('Cards\*.png',0)
fileArray[0] = firstFile
fileIndex = 0
noMoreFiles = false

if(firstFile != ""){
    show_message("Found 1 card, looking for more")
    while(noMoreFiles = false){
        nextFile = file_find_next()
        if(nextFile != ""){
            fileIndex += 1
            fileArray[fileIndex] = nextFile
           
        }else{
            noMoreFiles = true
            file_find_close()
        }
    }
}


firstFile = file_find_first('Cards\*.bmp',0)
fileArray[fileIndex+1] = firstFile
noMoreFiles = false

if(firstFile != ""){
    while(noMoreFiles = false){
        nextFile = file_find_next()
        if(nextFile != ""){
            fileIndex += 1
            fileArray[fileIndex] = nextFile
           
        }else{
            noMoreFiles = true
            file_find_close()
        }
    }
}

show_message("No more cards#Found "+string(fileIndex+1)+" files")
maxIndex = fileIndex

show_message("Creating sprites from file strings.#May take a few minutes")

global.spriteList = ds_list_create()
for(i = 0; i <= maxIndex; i += 1){
    if(fileArray[i] != ""){
        show_message("Loading sprite "+string(i)+" from:#"+working_directory+"\Cards\"+fileArray[i])
        newSprName = string_copy(fileArray[i],0,string_length(fileArray[i])-4)
        show_message("Sprite name will be:#"+newSprName)
        variable_global_set(newSprName,sprite_add(working_directory+"\Cards\"+fileArray[i],0,0,0,0,0))
        ds_list_add(global.spriteList,execute_string("return global."+newSprName))
    }
}
Whooo!
Taken me about 45 minutes to get this far. Still need to make it pull data from the card, and allow the player (also not made yet) pickup and use the items.
Logged

AlexTheFirst
Sr. Member
****
Offline Offline

Posts: 319


We are coming for you (bots + me)


« Reply #19 on: March 24, 2012, 05:42:07 am »

Lorgan, how old are you  z8
Logged

My grammar is bad, bcz i can't speak english very well
Orpheon
2011 Haxxy Award Winner
*
Offline Offline

Posts: 5830


Developer


« Reply #20 on: March 24, 2012, 05:58:38 am »

Lorgan, how old are you  z8
Old enough.

What's your point?
Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Madness9001
Hero Member
*****
Offline Offline

Posts: 1628


« Reply #21 on: March 24, 2012, 06:26:59 am »

Lorgan, how old are you  z8
Old enough.
What's your point?
Lorgan,tell me you just changed you name to Orphan.
Logged
Lorgan
Retired Randomizer Mod Developer
2011 Haxxy Award Winner
*
Offline Offline

Posts: 2967


check my new game in new projects k thx bye


WWW
« Reply #22 on: March 24, 2012, 07:13:19 am »

Lorgan, how old are you  z8
probably older that you lol
Never had that satisfying feeling after you made/did something exactly like you planned it to be?
Logged

Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking
notajf
Guest
« Reply #23 on: April 08, 2012, 11:59:26 am »

The most awesome CSS Level 3 3D transform performance test ever!

https://ajf.me/stuff/htmcraft/200blocks/

(Works best in Safari, actually. Chrome is quite slow.)
Logged
Dusty
Hero Member
*****
Offline Offline

Posts: 10651


Dust in a box under a table


« Reply #24 on: April 09, 2012, 08:26:44 am »

Unless it's supposed to be spinning a lot faster it doesn't seem to be slow in chrome. And I see you fixed the tnt blocks that were displaying the wrong textures on the top and bottom.
Logged

notajf
Guest
« Reply #25 on: April 09, 2012, 12:42:14 pm »

Unless it's supposed to be spinning a lot faster it doesn't seem to be slow in chrome. And I see you fixed the tnt blocks that were displaying the wrong textures on the top and bottom.
They weren't broken, I just have a set of blocks with defined top/bottom textures, and then another set where all sides the same, from which I removed the TNT textures.

Also it isn't "slow" as such in Chrome, it just has piss poor FPS compared to Safari. Both have ridiculous GPU usage though.
Logged
notajf
Guest
« Reply #26 on: April 09, 2012, 12:45:03 pm »

(the speed is set using time deltas so it's always the same speed, just varying FPS)
Logged
♫Ozoh
Hero Member
*****
Offline Offline

Posts: 4036



WWW
« Reply #27 on: April 12, 2012, 02:53:57 pm »

http://files.myfrogbag.com/qkikp3/dinogame.png

Random prototype.
I should reconsider my general graphical style.

and btw this will never be a game
« Last Edit: April 12, 2012, 02:57:50 pm by ♫Ozoh » Logged

if they named one winter storm oic you would probably go on a shooting spree at the atlanta headquarters
pfft, skip the kiss and go straight for anal
Orpheon
2011 Haxxy Award Winner
*
Offline Offline

Posts: 5830


Developer


« Reply #28 on: April 12, 2012, 02:56:48 pm »



Random prototype.
I should reconsider my general graphical style.

and btw this will never be a game
Uhh...The links are completely broken.
Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
♫Ozoh
Hero Member
*****
Offline Offline

Posts: 4036



WWW
« Reply #29 on: April 12, 2012, 02:58:36 pm »

Wondering what on earth just happened there. Fix'd anyways.
Logged

if they named one winter storm oic you would probably go on a shooting spree at the atlanta headquarters
pfft, skip the kiss and go straight for anal
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.226 seconds with 20 queries.