-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|633|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
steve_ancell
Created : 04 May 2007
 

My first XNA programming attempt.



First off this is my first ever Blog, so please forgive me for it being crap.

Here's my first ever successful attempt at programming with C#, and the XNA framework. So far it consists of a picture of The Mousey Of Power (Kent), which can be moved around the screen with the cursor keys.

My next step is to find out how to handle collisions, as there are no in-built methods for collision detection.

Here is the linky... homepage.ntlworld.com/stephen.ancell/downloads/files/MyFirstXNA.zip

Wish me luck, I'm going to need it at this rate.

 

Comments


Friday, 04 May 2007, 18:31
JL235
Your code looks very similar, but a little cleaner, to Managed DirectX.

I might try XNA soon. Does it have in-built methods for pixel-perfect collision between images?
Friday, 04 May 2007, 18:58
steve_ancell
There are no in-built methods for PP Collision, but I have seen a library call XNA-Extras mentioned a few times on a few forums and Blogs.

I was told by somebody on one forum, something about extracting the data bits from the images and using an Alpha RGB mask.

Here's a good place to search.
creators.xna.com/
Saturday, 05 May 2007, 01:00
power mousey
well its not KPL.

more like GPL.

Grownup Programming Lannguage.
And involves a lot of downloading, installing
and verfying a lot of Microshaft certificates.

um...no thank you.
Saturday, 05 May 2007, 07:43
steve_ancell
Microshaft


ROFL.
Saturday, 05 May 2007, 17:07
power mousey
I'm glad you found it funny.

I was more in a state of annoyance
and anger at them for having me download
all that crap to try out the KPL.
Which didn't work that well anyway.

So I got shafted. hahaaaa
I see you rolling over more. ahhhhhhh True
thanks steve for the laugh. True!!
Saturday, 05 May 2007, 19:00
steve_ancell
Ere Kent !... What internet connection do you have ?. If it's Broadband, the download should only take about half an hour.

|edit| [BTW]... Where you stated KPL, are you referring to Kids Programming Language ?. |edit|
Sunday, 06 May 2007, 08:28
power mousey
I have the slug n snails slimey
AOL connection.

My brother Mark has I think either DSL
or Broadband....no not a band of Broads
Seriously, when I visit and hang out with him in
Walnut Creek for a few days I'm bring a load of cd disks.
So I can download galore of many things. Not only
that KPL but also C# and also the XNA express stuff.
Also tons and tons of youtube videos and 3d models
and animations as well.
He also has a paid subscription internet movie and video
service...so I'll bring some blank DVD RW+- as well.

and yeah, KPL-->the Kids Programming Language....but now
I'm more interested in Cobra 3d, Nuclear Basic and especially the XGS 2. Which I told you and a few others
about.
I can't wait for the XGS 2!!! :rabid mousey squeaks!!:
Sunday, 06 May 2007, 09:26
steve_ancell
Yeah, I've been having a look every now and then to see when the XGS 2 comes out. If enough people have there attention drawn to the idea, it would create a market for a high end games console that indie developers can make games for.

|edit| That's why I've started learning C#/XNA, because the more that people use it, the other console manufacturers will do the same. I reckon that eventually, it will generate a lot of revenue for the market and indie developer alike. |edit|

|edit| Double editey... I think that there could be a market for tutorial book writers too. |edit|
Sunday, 06 May 2007, 09:50
power mousey
how true.
a market for tutorial book writers.
maybe you,Shroom, and I can collaborate
on a few...perhaps??


and exactamento!! dude about the XGS 2

ahhhhhhhh, now that is true!!

steve, the XGS 2 believe me will sell.
Sell like hot cakes. With the proper marketing and advertising...and give it a few months. Whoa!,
places such as Best Buy, Frys, Circuit City, GameStop, EBoutique, Target, perhaps Borders too...and other stores
will be willing and even be begging at Andres feet for units
to market and sell.
And they will also need books, games, applications, strategy and other game guides as well.
This where you, me, perhaps even Shroomie, hobo too
maybe and others will be needed or want to fill a niche.

I am serious!! This thing will be unlike anything.
The Cobra and Hydra killer, The Blender of Blitz, the toxic
cleaner of Nuclear basic(perhaps??), and what the original
XGS should've been in the first place.
This thing is going to blow a lot of things away!!
Mark my words!! Serious, honest and true!!
Sunday, 06 May 2007, 10:16
power mousey
and steve and also others....

I'm going to buy at least two of them.
Maybe three of these Hypercubes

at least one of the XGS 2.
and the other one will be the XGS 6502

if I buy a third one...it will be another XGS 2.

also, if any accessories are available...

then the PC tool chain development kit.
Wiht a C-Based compiler and assembler for more
advanced and powerful programs to develop and test
on the PC and then to upload to an SD or MMC card or directly into the primary flash drive of the Cubic XGS console itself.

OH MAN!!. I cannot wait!! True
Sunday, 06 May 2007, 12:42
f4ktor
XNA is weird. Microsoft started up with a real cool idea here but ended up with a crappy C# marketing campaign. There are still people out there that don't want to be forced to object oriented programming. Like me. I can do if I must, but I don't like it at all.
Sunday, 06 May 2007, 13:03
JL235
Although it's designed for C#, Managed DirectX can be used with any .NET language. It could be a nice alternative.
Sunday, 06 May 2007, 16:52
steve_ancell
@ f4ctor... The main reason that I'm learning XNA is because the more people use it, the more it paves the way for indie-console programming. But I do agree with you, XNA and C# are weird.
Tuesday, 08 May 2007, 09:30
power mousey
but hey, steve

they can't be anything else but weird, bro.
thats why your baldness is a sign of intelligent
madness. ahhhhhhhh!!!

seriouslly, yes I agree with you it will open the door
to more indie-console programming. True.
Tuesday, 08 May 2007, 11:36
JL235
I think C# is brilliant, it's like Java but with one of it's distant uncles being Ruby.
Tuesday, 08 May 2007, 12:06
power mousey
um...steve

of course I was just joking.

you're not intelligently mad but rather
madly intelligent.

good luck with this XNA and C#.
enjoy and have fun with it. True!
Tuesday, 08 May 2007, 14:07
steve_ancell
Ere ! Kent... I reckon, by the time I finish learning C#, I will probabbly be completely bald. LOL
Tuesday, 08 May 2007, 16:23
power mousey
hey, don't worry about it.

Its cool.
My hair line is starting to recede a little.
Yet, bAldness is a sign of captainess...especially of
leading a crew aboard the Starship Enterprise.

Too much XNA in my DNA.