A
A
Aler2012-10-15 15:51:32
OpenGL
Aler, 2012-10-15 15:51:32

Pixel graphics

To implement the idea of ​​the game, you need to implement the ability to draw pixels on the screen. It sounds strange in 2012, but I'm from the generation of modern shitcoders that they can't write anything without frameworks.

Advise me what to learn for direct access to graphics output based on some knowledge in python and C#.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
G
GavriKos, 2012-10-15
@GavriKos

For direct - learn openGL. In general, specify the platform at least.

A
Alexander Shpak, 2012-10-16
@shpaker

For python, there is an excellent PyGame ,
and on Sharp, of course, XNA

B
bagyr, 2012-10-15
@bagyr

Python - pygame, Pyglet.
C# - XNA.

A
AxisPod, 2012-10-16
@AxisPod

If the support of only antediluvian DirectX 9 does not scare, then XNA. If you want fresh, you can take SharpDX (but it’s completely low-level, in fact the same API for DX, only under C #).
Sprite graphics are fairly easy to implement, even on SharpDX. There isn't much to do.
In general, everything is quite simple, although I didn’t do this in C #, 1 pixel will work rather slowly, you must first make a bitmap, directly modify its memory, and then throw it on the screen.

A
Alexey Akulovich, 2012-10-16
@AterCattus

under python.
You can take the popular PyGame, although under linux it is not so obvious to start it with hardware acceleration (by default it will sit on x11 with software rendering). Under win I did not try it.
Alternatively, you can take SDL (which is used by PyGame) on its own, or as a wrapper over OpenGL. But with OGL, pixel-by-pixel operations are no longer so obvious if you don’t want to drive textures into video memory for every sneeze.
Under C#.
Xna is recommended everywhere. But there is also an alternative in the form of SlimDX , which in some ways is better than Xna. But win-only.
In general, it depends on the target platforms, the expected functionality and which PL you are more familiar with.

W
wladimir90, 2012-10-22
@wladimir90

I'm in XNA and output the first game pixel by pixel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question