Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Link

Pages: 1 ... 5 6 [7] 8 9 ... 12
91
Humour and Jokes / Re: Anagram of "programmer"
« on: September 09, 2012, 05:51:58 pm »
Or pencil and paper :D
Maybe, but there are 3628800 permutations for the word programmer alone, so it's impractical

92
General Calculator Help / Re: I have a problem
« on: September 09, 2012, 05:22:20 pm »
Hmm, the obvious, but do you have enough space, did you try reattaching the wire? How about restarting the computer? Kind of obvious, but it may help.

93
General Calculator Help / Re: I have a problem
« on: September 09, 2012, 05:15:59 pm »
What software are you using, and what program are you talking about?

94
Humour and Jokes / Re: Anagram of "programmer"
« on: September 09, 2012, 05:13:57 pm »
That is rather cool, I love indie games :D

Anyways if anyone needs some code to find ALL anagrams of a word, here you go!: http://pastebin.com/EtnBMXeG

And the code is also this (C++):
Code: [Select]
#include <string>
#include <iostream>
#include <algorithm>

using namespace std;

int main(int argc, char *argv[]){
string input;
// get input
cout << "Please enter a word: ";
cin >> input;
cout << endl;
sort(input.begin(), input.end());
do
cout << input << endl;
while(next_permutation(input.begin(), input.end()));
return 0;
}

95
News / Re: OmniURL virus
« on: September 08, 2012, 08:33:02 pm »
Ooh, you're a Canadian too? Isn't it awesome?

96
Thanks, that made it work, much smoother and visible too.

97
Hmm, well I tried this according to what yeong said: but it isn't working? Whats wrong >.>

Code: [Select]
:.A
:AsmComp(SPEEDKEY)
:[7E81BD817E18183C]→Pic1
:[7EFFC3FF7E18183C]→Pic2
:ClrDraw{^r}{^r}
:0→X→Y
:While 1
:Zoom Out→A
:Pt-Off(X/256,Y/256,Pic1)
:Pt-Off(X/256,Y/256,Pic2){^r}
:DispGraphClrDraw{^r}{^r}
:If A=1
:Y--
:End
:If A=2
:X--
:End
:If A=3
:X++
:End
:If A=4
:Y++
:End
:EndIf getKey(15)

98
No, when you display it, you do /256, which means that you have to add 512 to the value in order to move 2 pixels. It's kind of hard to explain it in a condensed form, I'd try looking at some of the many physics tutorials. :)
K, and this is used in pretty much all physics right?

99
Yes, *256 inflation is used for physics, which allows the player to move at 1/256 of a pixel at a time.
How does that work, say you have to move 2, then *256, it becomes 512, doesn't that go over the limit of 96 px?

100
simple.

Repeat getKey(15) //make sure the program quits when you press {Clear}
ClrDrawrr
your greyscale sprite goes here
DispGraphrr
your sprite movement control goes here
End

I know that it's not optimized, but it'll do. :D
Okay, thanks, and one more question, why is most sprite movement multiplied by 256? it it for some specific reason?

101
News / Re: Coding Battles Results
« on: September 07, 2012, 09:43:01 pm »
They are IRC bots, i'm pretty sure you can interact/play with the on the omnimaga irc on some channel.

102
Introduce Yourself! / Re: Hello!
« on: September 07, 2012, 09:30:23 pm »
Welcome, and here some more peanuts!


103
The Axe Parser Project / How to move a sprite while updating greyscale???
« on: September 07, 2012, 09:29:14 pm »
So, I understand grey-scale, and physics and so on, So I decided to make some sort of simple game. Except I don't get how to make a sprite move around using getkey or whatever, and still not pause the actual gray-scale updating? Can someone tell me how, to say make a small gray-scale box move around the screen? Just need an idea for the loop structure, that's all.

104
ASM / Re: How prolific are you?
« on: September 07, 2012, 07:56:09 pm »
Hmm, currently at 38798 lines, including all projects (c/c++/ruby and so on)

105
The Axe Parser Project / Re: Axiom Requests
« on: September 06, 2012, 09:45:03 pm »
When Axioms are released, do they automatically get included by default with newer Axe releases?
I don't think so, it's possible they might get included in the future, but I had to download mine separately.
Perhaps they could do something like #include <stdio.h> like in C? but instead for axioms?

Pages: 1 ... 5 6 [7] 8 9 ... 12