Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 06 Dec 2007
Offline Last Active May 17 2012 06:18 AM

Topics I've Started

So I have an IronPython SlimDX sample...

05 May 2010 - 02:21 AM

Yeah, almost a year ago, this happened: http://www.gamedev.net/community/forums/topic.asp?topic_id=542639 Then today, this happened:
import clr
from System.Drawing import *
import SlimDX
from SlimDX.Windows import *
from SlimDX.Direct3D9 import *
Form = RenderForm()
Device = Device(Direct3D(), 0, DeviceType.Hardware, Form.Handle, CreateFlags.HardwareVertexProcessing, PresentParameters())
def Main():
    Device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.Black.ToArgb(), 1.0, 0)
SlimDX.Windows.MessagePump.Run(Form, Main)

I don't know much if anything about how DirectX does things, nor .NET, so there could be some things that need optimizing, but it runs fine for me. Since it's been quite a while, what more esoteric languages do you think could have an example written up in?

pygame: sprite blitting woes

28 October 2008 - 05:47 PM

Hi. I'm having a few issues with my code, and I'm hoping I might get a fresh set of eyes, or a swift kick in the arse, to point me in the right direction. The idea of the "game" is simply to get a ball rolling along with a scrolling background, and all that you can do is go left or right, or stay still, or quit. The Source: http://gamedev.pastebin.com/m496dd379 EDIT: The ball spritesheet: http://tinypic.com/view.php?pic=1paq7o&s=4 The background: http://tinypic.com/view.php?pic=wc0ns4&s=4 (Note, these are obviously not finished products.) (Also, they're to be under the "Data" directory which resides with the source.) The first issue I'm having is that I can't seem to be able to do any clipping on the ball spritesheet, if I'm using the group's draw method. I've looked at the documentation and I can't figure it out. Am I missing something? The second issue I'm having is an odd sort of slowdown in the background's (and possibly the ball's) velocity, in certain situations. It's consistent at least. I would most likely be able to figure this one out, so feel free to only spend time on it if it's due to a glaring mistake you see. The third issue I'm having is about how to go about tiling the background as it scrolls. Of course the first issue will have to be solved prior to attempting to solve this one, but I'm rather inexperienced with doing this, so perhaps a light overview of the thought behind the process would suffice for when the time comes. In any case, if you spot anything else in my code that needs attention, I welcome the sharing of thoughts upon it. Furthermore, thank you for taking the time to read my post! [Edited by - OminousZounds on October 29, 2008 12:36:46 AM]