Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 31 — Coming December 5th-8th 2014! — Join the Mailing List!
  • October Ends: in 31 days, 0 hours, 12 minutes, 40 seconds
  • Ludum Dare 31 begins: in 66 days, 1 hour, 0 minutes, 40 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!) | October Challenge 2014!


    Posts Tagged ‘code’

    Base code update

    Posted by
    Friday, December 13th, 2013 4:04 pm

    I’ve written a little base code project I’m going to start with.

    It’s fairly simple and is available here.

    To recap, it uses libgdx. If I fancy some postprocessing shader stuff, I’ll use the PostProcessor class from here, and if I need to do some pathfinding, I have my own simple A* implementation I wrote which is available right here.

    Adios!

    what programming language should I learn to code 2D or 3D games? (experienced programmer)

    Posted by
    Saturday, August 24th, 2013 7:08 pm

    Hi everyone

    ****I posted new questions about compilers and editors in the comments please read them :) ****

    I am an experienced programmer and know a few languages.

    I want to start making games with a windows 7 computer for any operating system (linux, Mac and Windows).

    I do not know which is the best coding language to use for that that is free But has a good compiler and runs well. I also do not want to use software like gamemaker or construct. Something like c++ or java or love2D so please take that into consideration!

    Also what libraries would I need for 2D games for now to make it with.

    Thanks so much for your help in advance! I really want to become some kind of game devloper so this is key.

    Hope you all are having fun in the ludum dare! Expect me to be ready for the next one!

    Hope my questions make sense!

    Please comment!

    Thanks

    Swipefaststudios

    44 people just watched me wake up. Also Capture the Massively Multiplayer Online Flag

    Posted by (twitter: @http://twitter.com/davidscolgan)
    Saturday, August 24th, 2013 7:50 am

    Yesterday my stream peaked at 126 people watching me program! In order to make it a true 53 hour marathon, I just left the stream going overnight and pointed the camera at my bed. When I woke up, there were still 44 people in the stream who greeted me as I got back on! Aha, ha ah!

    More coding action today at twitch.tv/dvcolgan! I’m making a massively multiplayer online capture the flag turn based real time game using Django and Coffeescript.  I’m hoping to have a playable game today.  Stay tuned! #ld48

    Capture

    Huldo LD

    Posted by
    Thursday, April 25th, 2013 1:23 pm

    Signing up for the competition seems to be in order. It’s my first one, so hopefully it goes swimmingly.

    I’m going to use my old XNA framework engine, but I’ll utilize ANX to get rid of the framework dependency. I tested it a few times and it seems to work mostly fine, except for Rendertargets which leak memory bad and crash the whole thing! Apparently fullscreen support is missing as well which is a bit of a bummer.

    I might just ship two versions then eh, when/if I get something done of course.

    Here is the codebase for those interested.

    Have a nice day.

    Chevy Ray’s Codebase

    Posted by (twitter: @xMrPhil)
    Friday, August 24th, 2012 7:36 am

    I took Chevy Ray‘s code that he released as part of his keynote for LD23 and put it up on github.  It is written for his FlashPunk engine.   I used it to make my LD23 entry Seeds of Destruction and it worked out really well for me.

    PS Chevy if you happen to see this, I’ll happily transfer the repository to you.

    Code on GitHub

    Posted by (twitter: @attrition0)
    Tuesday, April 24th, 2012 9:14 pm

    While more for myself than anything else, I’ve placed my Unity project on GitHub. Maybe somone can make it.

    Game: Earth Is Dying!

    GitHub: TinyWorld

    Till next time!

    Lunch #1 and Serious Bug

    Posted by (twitter: @xMrPhil)
    Saturday, April 21st, 2012 12:04 pm

    Lunch 1
    It’s almost 3 pm here in Arlington, VA and I’m having my first lunch for LD23. Kind of late but I wait until I’m hungry.

    Chicken and Vegetable stir-fry.
    Lunch 1

    Progress
    Screenshot 3
    It’s coming a long, but I’m feeling the pressure. My task list seems too long. Worst part is I’ve hit a bug! Maybe you can help? My FlashPunk Entity is not calling the Update method! I’ve triple checked and the World Update is being called and calling the supper.Update()!

    package SeedsOfDestruction
    {
    import com.greensock.easing.Cubic;
    import com.greensock.easing.Quad;
    import com.greensock.TweenMax;
    import flash.display.BitmapData;
    import net.flashpunk.Entity;
    import net.flashpunk.FP;
    import net.flashpunk.graphics.Image;

    public class SeedBullet extends Entity
    {
    [Embed(source = "/assets/Seed Bullet.png")] public static const SEED_BULLET:Class;

    public static const SPEED:Number = 200;

    public var image:Image;

    public function SeedBullet(player:Player)
    {
    // Make the Pink transparent
    var bitmapData:BitmapData = Global.MakeTransparent(SEED_BULLET);
    image = new Image(bitmapData);

    super(x, y, image);

    FP.angleXY(this, player.stem.angle, 40, player.x, player.y);
    image.angle = player.stem.angle;
    image.centerOrigin();
    image.smooth = true;
    active = false;
    layer = 2;

    setHitbox(40, 40);
    type = “seedbullet”;

    trace(“created”);
    }

    override public function update():void
    {
    trace(“update”);
    super.update();

    trace(“update2″);
    if (collide(“BadPlant”, x, y))
    {
    explode();
    }
    }

    override public function added():void
    {
    super.added();

    var time:Number = FP.distance(x, y, world.mouseX, world.mouseY) / SPEED;
    TweenMax.to(this, time, { x:world.mouseX, y:world.mouseY, ease:Quad.easeOut, onComplete:explode } );
    }

    public function explode():void
    {
    world.add(new Explode(this));
    world.remove(this);
    }
    }
    }

    Desk Shot + Code

    Posted by (twitter: @xMrPhil)
    Friday, April 20th, 2012 4:51 pm

    Here’s the command center, that’s right I code in a storage closet and that’s my cat Jack.  His hobby is to keep me from using the keyboard or mouse.

    Mr. Phil Games Earth Headquarters

    Mr. Phil Games Earth Headquarters

    I also wanted to share this snippet of AS3 code that lets you choose a color and then convert pixels of that color to transparent pixels:

    public static function MakeTransparent(source:*, color:uint = 0x00FF00FF) : BitmapData
    {
    // Get the bitmap data so we can fix it
    var bitmapData:BitmapData
    if (source is Class)
    bitmapData = FP.getBitmap(source);
    else if (source is BitmapData)
    bitmapData = source;

    // We aren’t use the transparent feature, hence the color
    var bitmapDataNew:BitmapData = new BitmapData(bitmapData.width,
    bitmapData.height, true, 0x00000000);
    var pt:Point = new Point(0, 0);
    var rect:Rectangle = new Rectangle(0, 0, bitmapData.width,
    bitmapData.height);
    var transparent:uint = 0x00000000;
    var maskColor:uint = 0x00FFFFFF;
    bitmapDataNew.threshold(bitmapData, rect, pt, “==”, color, transparent, maskColor, true);

    return bitmapDataNew;
    }

     

    Ancient Rover

    Posted by
    Monday, December 19th, 2011 7:28 pm

    I finished my game in time for the jam. http://www.ludumdare.com/compo/ludum-dare-22/?action=preview&uid=1044
    If you thought that my last compo typing game was bad, this is a morse code game.
    I’m an evil game designer… and loving it.

    The only button that works is the spacebar.

    Progress Update

    Posted by
    Sunday, December 18th, 2011 12:14 pm

    Ok, so I’ve been busy this weekend, but I managed to get a little bit done.

    I have a moon rover and it can be commanded with only the space bar (through dots and dashes a la morse code).

    My collisions are still busted.

    HELP! (Slick2D)

    Posted by (twitter: @caranha)
    Sunday, December 18th, 2011 5:44 am

    So I´m trying to pretty up my game, but I can´t get Slick2D to render fronts using the UnicodeFont class. (So I can´t use some of the fancier functions from that class)

    using the Graphics Class, I manage to:

    g.Drawstring(¨foo¨,x,y);

    But when I do:

    UnicodeFont font = new Unicodefont(new Font(fontname, Font.Plain,20);
    font.draw(x,y,¨foo);

    Nothing happens.

    I have tried to add a font effect to UnicodeFont, but it is still not displaying :-(

    Halp, please?

    EDIT: Thanks for all the help! It turns out that I have to font.loadGlyphs() at every render cycle to get my font to display.

    I’m in!1!

    Posted by
    Tuesday, December 13th, 2011 2:04 am

    I’m in. LD22 will be my first ludum dare. Looking forward to it :D
    My tools of destruction:

    Code: C++
    API: SFML 2.0
    Graphics: GIMP
    Sound: LMMS, Audacity
    IDE: Code::Blocks

    I will probably be streaming during the competition. I just need to find a way to stream from ubuntu first…

    yesh i done wit code :s

    Posted by
    Saturday, June 12th, 2010 3:58 pm

    ||||||||||
    im done with all the code and now im just gonna make the sprites good! im so happy i finished with code :D:D:D:D:D:D:D:D

    so ya ill see you when im done spriting

    -pants12

    go to sleep

    Posted by
    Friday, April 23rd, 2010 9:01 pm

    gotosleep


    All posts, images, and comments are owned by their creators.

    [cache: storing page]