Minigame in C#

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Jabari
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 1
Joined: Sun Nov 15, 2009 8:16 am
Current Project: minigame
Favorite Gaming Platforms: PC / PS2
Programming Language of Choice: C# (C++ later on)
Location: Germany
Contact:

Minigame in C#

Post by Jabari »

Hello everybody,
I am kinda new to programming and thanks to GyroVorbis and his youtube videos also new to this forum.
My first - and so far only programming language is C# and i hope i will be able to make a few little games with even when i am still in the progress of learning C#.

I already played around with microsoft tutorials, using Visual Basic C# 2005 Window applications (first GUI steps) and now i want to try a project which includes moving objects for the first time :roll:
So the thing is, i just want to make a little charakter, even if its just a colored pixel, which is moving around (without lagging) and "shooting" random appearing objects - so to say a kind of space invaders without complex KI or anything :d (for now..)
Now i already got my little Charakter moving (and it ineed is a colored pixel moving around) but its lagging like hell! so i think i already started totally wrong.

What i did is following:
I created a "simpleOpenGLcontrol" and made it move by clicking "w a s d" and by "w+a, w+d,d+s,s+a," (8 -direction movement) and thats it so far :(
So my question is:
-is the use of OpenGl necessary for such a kind of "game" ?
-do i have to work with coordinates (x,y) to make it move flawless? (currently its not used)

Well thats it for now since there is not enought code to discuss anything else yet.
//Excuse my english grammar but i am german and i gave it my best shot (!)
Learning by doing..?
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: Minigame in C#

Post by XianForce »

From my understanding, OpenGL is mostly used for 3D. I'd say that it's not necessary, you could easily use something such as XNA. But the lagging may not be your code at all, could be your comp's specs.
Post Reply