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.


Topics - Eeems

Pages: 1 ... 6 7 [8] 9 10 ... 12
106
Computer Usage and Setup Help / New Laptop
« on: May 25, 2010, 04:04:40 pm »
ok, so I'm getting my laptop sometime next week, and window's seven will be on one partition, and on the other I will install Arch. when I get it anybody want to help walk me through installing Arch?

107
Web Programming and Design / jBasic
« on: April 30, 2010, 06:33:00 pm »
http://future_history.freehostia.com/jBasic/jBasic.html
I am working on making a JavaScript library to help people transition from TI-Basic to JavaScript. I have only made a text() command and a dispScrn() command. dispScrn() is used to create the screen area so all other commands work.
I'll work on a tutorial soon, well after I make a few more commands.

108
Web Programming and Design / Javascript Catch the Dot Game
« on: April 27, 2010, 08:42:13 pm »
made it for class, tell me what you think, feel free to use the code :)
http://future_history.freehostia.com/dot.html

109
Humour and Jokes / Interesting new URL Shortener
« on: April 22, 2010, 12:01:25 am »
http://f3ar.me
got to say, love the name :p
here is An example:
http://f3ar.me//m

111
Miscellaneous / Darkmod theme
« on: April 17, 2010, 04:31:17 pm »
I am currently working on a Darkmod of the current omnimaga theme for all of you who like black coloured themes :P
here is how it looks currently, I'm trying to figure out why the titlebar's turned grey...but I haven't been able to figure out yet.

112
Other / opera mini for iphone
« on: April 12, 2010, 10:08:18 pm »
So, opera mini has been aproved in the appstore, and currently i am browsing with it :p
Unfortunatly there are some problems, like no autocorrect, and its not quite as smooth an expirience as safari, but it is much faster and large parts of it are way better. I still have to get use to the one tap to zoom thing though x.x
Anybody else trying it out?

113
Axe / [tutorial] Program Flow - Platformer
« on: March 20, 2010, 02:29:56 am »
Code is outdated, but the ideas behind it is not
Index
Preface
Program flow can sometimes be one of thetoughest challenges when programming. In Axe it can still be a problem,especially with the buffers.
This is a short guide on how to setup your program so that it is easyto handle and relativly quick.
*Note - this is for AXE programs only, butyou can take some of what you learn and apply it to xLib/Celtic IIIprograms.
Structure
the basic structure I find  Issometimes the hardest to come up with, but a good one for platformergames is as follows:
Initialize sprites and variables
store 'map' or screen to back buffer
repeat getkey(15) and (other checks
all drawing things here, like animations
draw sprites that are constant
dispGraph
recallpic
X axis collision check
X axis movement code
Y axis collision check
Jump check
gravity/jump action
End
return
routines
I will go more in depth tomorrow on each section.
Initializesprites and variables
Sprites and variables are a no brainer.Everybody will have to initialize them at some time, so why not do itright at the start? The easiest way to do it is to store all thecharacter sprites to one location, and all the enemy sprites toanother, and then all the other sprites to yet, another.
[sprite data->Pic1
[sprite data->Pic2
[sprite data->Pic3
This is the usual setup for sprites, and it works quite well. Pic1 willstore all the standard sprite data for the character and can be calledby:
A*8+Pic1
where A is the sprite you want to call starting at 0.
You can also just change the sprite calling to exact numbers, so:
Pic1        sprite 0
Pic1+8       sprite 1
Pic1+16      sprite 2
Pic1+24      sprite 3
    ...etc...

You will then want to initialize the other variables. So there are"real" variables and then pointers. "Real" variables will be easy youjust store the value to it.
0->X
0->Y
10->Z
Storing to pointers is kind of hard compared to that. You can store itin a few different ways. You can just do the standard:
10->{L1
Then there is the harder to use:
[data->GDB1
conj(GDB1,L1,size)
This is a lot harder to use due to how it is stored.
Store 'map' or screen to back buffer
This can be kind of hard, you can eitherdraw it manually or you can just use a map type engine to draw usingsprites.

Map data format:

The data uses run length encoding for compression.  Lets say we had a simple map:
11111000001111
00000222220000
Pretty simple, each number representing a different tile.  With normal storage this would takea single byte per tile.  Or we could represent the data in a different way:
150514052504
Seems much smaller, but what does it mean?  lets insert some imaginary commas and dashes to makeit easier:
1-5,0-5,1-4,0-5,2-5,0-4
Now you may or may not be able to see how the data is represented.  The first segment is 1-5, or 5 '1's ina row, followed by 0-5, or five '0's in a row, and so on.  This is how the data in run length encoding isrepresented.  And to further the compression (or confusion), each #-# segment is packed into a single byte.Instead of two hex digits to represent a number from 0-255, we will have 2 hex digits, each from 0-15,representing the two numbers of each #-# element.
The first Hex digit 0 to 15 is the tile number.  The second hex digit is the number of tiles to add to thetilemap.  The digit goes from 0-15, but 0 doesnt make much sense, since that would mean this element doesntdo anything , so we will add one to this after we decompress it so that it has a range of 1 to 16.  
There is a small disadvantage that if you have empty spaces of 17 or more in a row, it will take more than1 byte to represent in the code.

Decompressing the Map:

[Data]->GDB1 //map data to GDB1
[tileData]->Pic1 //tile data for tilemap

0->N //element index for map data
0->I //map index for storing tile data

While I>=96 //until we have stored all tiles
{GBD+N}->A //Take the first element of the map data
N+1->N //Increment the map index
A^16->B //spit the map element into it
A/16->A two separate elements

For(F,0,B //fill the map from current position I to I+B
A->{L1+I} //could be optimized with Fill but i couldn't get it 
I+1->I //working :/
End

End //End while
After this code is run, the tile data will be decompressed into L1, as follows
0  1  2  3  4  5  6 7  8  9  10 11 12 13...
ect, it will be in a straigt line, but you will have to access it using your own routine.  Something like this
{Y*W+X+L1}
where W is the width in tiles of your map.  X and Y would be the tile coordinates starting at the top left at0,0.

Displaying the map:

here is a rudimentary program that should be run right after the previous decompressing program:
For(X,0,11 //loop through the entire screen coordinates with tiles of 8x8
For(Y,0,7
{Y*12+X+L1}->A //retrieve the correct tile from the data in L1
Pt-On(X*8,Y*8,A*8+Pic1 //draw the sprite to the screen
End
End
Also attached is a PEDIT program to create and compress maps into a Hex String into Str1, as well as an Axe program to decompress and display them.  Just put the string data into GDB1
Repeatgetkey(15) and (other checks
This is the core of the program, the<body> tag if you will. All your checks to see if thegame has ended go here in this format:
getkey(15) and (check 0 and (check 1 and(check 2
The easiest way is to make a variable your game end flag, I usually useF, and do all your checks in the loop.
Animations/Sprites
All animation code should be put before thescreen is updated as well as all the sprite code. The most basic onewould be to just display theenemy and the character.
pt-change(X,Y,Pic1
pt-change({L1},{L1+1},Pic2
Updatingthe Screen
Next You want to update the screen and thenprepare if for collision detection.
DispGraph
RecallPic
If you store the map to the back-buffer then you will want to recall itso that you can use pixel-based collision detection.
CollisionCheck
The easiest way to do collision check in apixel-based way is to check one pixel off of the side:
0->Z
0->V
0->S
0->T
For(A,0,7
Z+pxl-test(X-1+A,Y)->Z
V+pxl-test(X+8+A,Y)->V
S+pxl-test(X,Y-1+A)->S
T+pxl-test(X,Y+8+A)->T
End
Zwill return the amount of pixels on on the left of the character, Vreturns on the right, S above, and T below. the way to return where the pixels are would be:
0->Z
0->V
0->S
0->T
For(A,0,7
Z+(8-A*(pxl-test(X-1+A,Y)))->Z
V+(8-A*(pxl-test(X+8+A,Y)))->V
S+(8-A*(pxl-test(X,Y-1+A)))->S
T+(8-A*(pxl-test(X,Y+8+A)))->T
End
This will return 1 if the first pixel tested is on, 2 if the second, 3if the third, etc. This can be good for detecting slopes.
Gravityand Jumping
Now there are many different way's to dogravity, but the easiest way is to apply a constant force in onedirection.
Y+(!collision)->Y
yourcharacter will fall until you a collision is detected, creating theeffect of gravity. Jumping is harder, you have to have a jump variablewhich changes as your jump progresses.
!If J
10*(getkey(4) and (collision))-J
Else
J-1->J
End
Y+(2*(!collision and (J)))->Y
Ifthe ground beneath you is solid, and J is 0 and you are pressing the upkey then 10 will be stored to J. If  J !=0 then it willdecrement.If J !=0 then your character will move up two pixels.  twopixelscompensates for the gravity so in reality you move down one pixel and uptwo, which balaces out to 1 pixel up.
End/Returnand Routines
Thelast part of your code will include and End statement to end the loopand then whatever closing code you want. then you will place all yourroutines due to the fact that it is the logical place to place them :)
Conclusion
In this tutorial I have taught you how toset up your program flow easily for platformer games in AXE. Soremember anything involving animation or sprites should go before thedispGraph command and everything involving movement should be after it.

114
TI Z80 / ADE C++ Releases
« on: March 16, 2010, 04:43:27 pm »
ok, I'm going to post all releases here.
Here is my UI so far.
*note -  this does require windows so far, and I'm not sure about the compatability with 64bit systems. It also seems to require .NET 2.0 or higher

115
Miscellaneous / Why My Activity Has Dropped
« on: March 15, 2010, 12:48:55 am »
Ok, I've decided to kind of update you all on why I haven't been on IRC and I dont post as much. First of all, I don't have as much time anymore. Then comes the part where I'm trying to rebuild my social life, which I kind of ruined last year by regressing into programming and online communities (namely TI forums). I also have a girlfriend (well You know what I mean if you were on IRC a few months ago) and because she lives an hour away I sometimes go months without seeing her (4 has been the most so far). Because of that I focus more on her then the community (especially after just seeing her, which I did yesterday).
I do not I tend to leave, or give up programming at all (I intend to program for a living) but my activity is and will be less then it was when I first started.
I decided that I should let you know though so that you can understand why my activity has slowly dropped.
I do try to check the forum every day, but I don't always end up posting or reading everything I would like to. Rest assured though, I will not leave the community.

116
Miscellaneous / Propaganda Video
« on: March 11, 2010, 09:21:13 pm »
I made this for school and it's going to be entered into a contest on CBC, so tell me what you think.

117
Humour and Jokes / My Complaint about the Blue Lobster
« on: March 02, 2010, 11:55:48 pm »
I've reached a point where I feel the need to express my disappointment with Blue Lobster. To start, I'd peg the odds at about six to one that Lobster will bring charlatanism to this country in the name of anti-charlatanism in the blink of an eye. If I'm wrong, I promise that I'll gladly have to fight with one hand tied behind my back. With laudable scholarship and meticulous research, a highly regarded professor at a nearby university determined that Lobster's belief is that he should be free to bring about a wonderland of alcoholism. Hey, Lobster! Satan just called; he wants his worldview back.

Other than that, if Lobster can't stand the heat, he should get out of the kitchen. All I'm trying to do here is indicate in a rough and approximate way the unsophisticated tendencies that make him want to infiltrate and then dominate and control the mass media. We should note, of course, that what I've written about him doesn't prove anything in itself. It's only suggestive but it does make a good point that irreligionism is a plague upon us all, a pox that will likely not be erased in the lifetime of any reader of this letter. To Lobster, however, it's merely a convenient mechanism for giving rise to mutinous miscreants. Did it ever occur to him that his opuscula would be less maladroit if they were less eccentric? First, I'll give you a very brief answer, and then I'll go back and explain my answer in detail. As for the brief answer, I have never read anything he has written that I would consider wise, logical, pertinent, reasonable, or scientific. Lobster's statement that blackguardism can quell the hatred and disorder in our society is no exception. What's more, whenever he's presented with the statement that his circulars are just another signpost marking our long, steep cultural descent, he spews out the hackneyed excuse that the health effects of secondhand smoke are negligible. Ironically, such screwball logic is likely to convince even more people that Lobster should not create a Lobster-centric society in which diabolic, malodorous potlickers dictate the populace's values and myths, its traditions and archetypes. Not now, not ever.

One of Lobster's former protégés, shortly after having escaped from Lobster's iron veil of monolithic thought, stated, "Lobster relies on stichomancy to 'prove', inter alia, that the ideas of 'freedom' and 'Jacobinism' are Siamese twins." This comment is typical of those who have finally realized that in order to solve the big problems with him we must first understand these problems, and to understand them, we must arraign him at the tribunal of public opinion and encourage others to do the same. I've heard him say that it's okay to leave the educational and emotional needs of our children in the intolerant hands of the most unrestrained ochlocrats you'll ever see. Was that just a slip of the lip, or is Lobster secretly trying to cause riots in the streets? The complete answer to that question is a long, sad story. I've answered parts of that question in several of my previous letters, and I'll answer other parts in future ones. For now, I'll just say that his grand plan is to pander to our worst fears. I'm sure Mao Tse Tung would approve. In any case, there are three fairly obvious problems with Lobster's opinions, each of which needs to be addressed by any letter that attempts to shine a light on Lobster's efforts to dispense outright misinformation and flashlight-under-the-chin ghost stories. First, when I first realized that I am not interested in furthering arguments that are baseless and completely unsupported by the facts, a cold shudder ran down my back. Second, when the war against reason is backed by a large cadre of what I call jaded, self-serving present-day robber barons, the results are even more prudish. And third, I cannot compromise with Lobster; he is without principles. I cannot reason with him; he is without reason. But I can warn him and with a warning he must really take to heart: I never used to be particularly concerned about Lobster's convictions. Any damned fool, or so I thought, could see that many people have witnessed Lobster put our liberties at risk by an intemperate and brutish rush to purge the land of every non-choleric person, gene, idea, and influence. Lobster generally insists that his witnesses are mistaken and blames his self-righteous views on nettlesome apostates. It's like he has no-fault insurance against personal responsibility. What's more, Lobster insists that people are pawns to be used and manipulated. Sorry, Lobster, but, with apologies to Gershwin, "it ain't necessarily so."

Come on, Lobster; I know you're capable of thoughtful social behavior. If he hadn't been leading to the destruction of the human race, it simply would not have occurred to me to write the letter you now are reading. Why, I might have taken the day off altogether. Or maybe I would have been out arguing about Lobster's double standards. In any case, Lobster argues that laws are meant to be broken. I wish I could suggest some incontrovertible chain of apodictic reasoning that would overcome this argument, but the best I can do is the following: His den of thieves appears to be growing in number. I pray that this is analogous to the flare-up of a candle just before extinction, yet I keep reminding myself that if we don't evaluate the tactics he has used against me, our children will curse us in our graves. Speaking of our children, we need to teach them diligently that if I withheld my feelings on this matter, I'd be no less anal-retentive than Lobster.

Lobster serves up his nugatory form of vigilantism as intellectual fast food for his voluble chums. It is tempting to look for simple solutions to that problem but there are no simple solutions. Maybe he is being manipulated by froward, gutless scroungers, but even so, I, having repeatedly witnessed him use terms of opprobrium such as "lethargic, humorless scamps" and "crafty talebearers" to castigate whomever he opposes, allege that I have every right to refer to him as a self-indulgent renegade. That's probably obvious to a blind man on a galloping horse. Nevertheless, I suspect that few people reading this letter are aware that Lobster is not interested in what is true and what is false or in what is good and what is evil. In fact, those distinctions have no meaning to him whatsoever. The only thing that has any meaning to Lobster is exhibitionism. Why? That's not a rhetorical question. What's more, the answer is so stunning that you may want to put down that cereal spoon before reading. You see, Lobster likes to imply that children should get into cars with strangers who wave lots of yummy candy at them. This is what his reports amount to although, of course, they're daubed over with the viscid slobber of impudent drivel devised by his janissaries and mindlessly multiplied by what I call gormless rapscallions.

If history follows its course, it should be evident that by comparing today to even ten years ago and projecting the course we're on, I'd say we're in for an even more unenlightened, snappish, and slimy society, all thanks to Lobster's viewpoints. Technically, Lobster sells the supposed merits of Bonapartism on the basis of rhetoric, not evidence. The evidence, however belated, is now in, and the evidence says that libertinism is not merely an attack on our moral fiber. It is also a politically motivated attack on knowledge.

We must remove our chains and move towards the light. (In case you didn't understand that analogy, the chains symbolize Lobster's subversive bait-and-switch tactics and the light represents the goal of getting all of us to encourage opportunity, responsibility, and community.) Lobster's plan is to alter laws, language, and customs in the service of regulating social relations. Lobster's bootlickers are moving at a frightening pace toward the total implementation of that agenda, which includes turning the trickle of sectarianism into a tidal wave. If it were true, as Lobster claims, that he defends the real needs of the working class, then I wouldn't be saying that Lobster's apothegms are a logical absurdity, a series of deductions from a premise that has been denied. Speaking of absurdities, Lobster considers it fair game to envelop us in a nameless, unreasoning, unjustified terror. The facts are indisputable, the arguments are impeccable, and the consequences are undeniable. So why does he contend that this is the best of all possible worlds and that he is the best of all possible people? Whatever the answer, in his quest to impose a narrow theological agenda on secular society he has left no destructive scheme unutilized.

I'm sure you get my point here. I act based on what I think is right, not who I think is right. That's why I try always to establish clear, justifiable definitions of hedonism and gangsterism so that one can defend a decision to take action when Lobster's forces appropriate sacred symbols for misinformed, vile purposes. It's also why I say that it is mathematically provable that he is the ultimate source of alienation and repression around here. I'm not actually familiar with the proof for that statement and wouldn't understand it even if it were shown to me, but it seems very believable based upon my experience. What's also quite believable is that Lobster is a psychologically defective person. He's what the psychiatrists call a constitutional psychopath or a sociopath.

No one can deny that we should use our words to create understanding and progress, not hatred and division, yet Lobster's imprudent monographs are chockablock with absenteeism. (Actually, Lobster should stop and savor life, not consign our traditional values to the rubbish heap of terrorism, but that's not important now.) Considering that within a short period of time, he will pull out all stops in his harebrained drive to set the hoops through which we all must jump, I find it almost laughable how Lobster remains oblivious to the fact that if he bites me I will indeed bite back.

The primary point of disagreement between myself and Lobster is whether or not his perspective is that mediocrity and normalcy are ideal virtues. My perspective, in contrast, is that you shouldn't let Lobster intimidate you. You shouldn't let him push you around. We're the ones who are right, not Lobster. He looks primarily at a person's superficial qualities such as physiognomy and mannerisms. I, in contrast, consider how likely a person is to encourage the ethos of exchange value over use value. That's what's important to me. Either way, he wants to generate an epidemic of corruption and social unrest. Faugh. Let me leave you with one last thought: Blue Lobster's cajoleries are as screwed up as Hogan's goat.

118
Miscellaneous / Omnimaga Texting room created with textPlus
« on: February 22, 2010, 08:52:34 pm »
I have created a texting room for Omnimaga with the TextPlus app which allows for free texting for any iPod touch/iPhone user in Canada or the united states (only two providers are not supported in the US). If you have the app it's all free but if you don't, you will only be charged what texts normally cost.
If you would like to join please email or PM me your cell number/textPlus username and I will add you to the conversation.
So far only my iPod and my families spare cell is in it, so I kind of can't talk to anyone but myself D:

in order to join you must post here saying if you are ok with letting people share your number or not, and also put in writing (no editing) that you will abide by the wishes of all others in the chat and only share their number with their permission.

Edit: to get textPlus on your iTouch/iPhone just search 'textplus' in the AppStore and then get one of the three that come up: textplus, textplus add free (costs money) or grouptext (no individual texting :/)

119
TI Z80 / ADE Dev Screenshots
« on: February 19, 2010, 08:12:11 pm »
I'll post some screenshots I take while I develop here
here is me trying to get tabs to work, and I got the toolbar to have images.

120
Axe / Routines
« on: February 18, 2010, 11:12:16 pm »
Share your cool little axe parser routines here! Or big too.
I currently don't have any, but I was wondering if anybody could come up with a good line drawing one (from point a to b).
I'll put up some that I come up with later too I guess.

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