Posts Tagged ‘ruby’
I want to create a timelapse video with screenshots showing what I’m doing during. I’m on OS X and made this script to help me do that: screencapture.rb
You pass a directory as argument, that directory is created and every 5 seconds a screenshot is saved there. The script can be killed and when running it again with the same directory, it will continue saving screenshots, in another “session” folder.
A Fuzzy Associative Memory (FAM for short) is a Fuzzy Logic tool for decision making. Fuzzy logic FAMs are highly applicable in Game AI.
A Fuzzy Associative Memory uses Fuzzy Sets to establish a set of linguistic rules , e.g.:
- “If the orc’s hit points are a little low, retreat from the enemy”
- “If the enemy is distant and my rocket ammo is low, the rocket launcher is a poor choice”
- “If the enemy is near and my shotgun ammo is okay, the shotgun is a very desirable choice”
- “If the ship is off course by a little bit, correct just a little to the right”
- “If the bird is much slower than the flock, speed it up a lot”
The linguistic rules, and the fuzzy sets they contain, are defined by a human “expert” (presumably, you). That is to say, the rules codify intelligence and map this knowledge from the human domain to the digital.
After the rules are defined, a FAM is consulted to help your AI make a descision:
- The orc retreats, attacks, strafes.
- The ship launches long range missiles or fires short range guns.
- The control rods are lowered into the reactor or raised out of it.
As you can see, the fuzzy rules are deliberately vague and use qualifiers like “a little” and “a lot”. Furthermore, the lines between fuzzy sets are intentionally blurry. This is the nature of fuzzy sets; they capture such human fuzziness in a way that extracts highly natural behavior from the fuzzy rules. When defining these rules, it helps to imagine interviewing a bona fide expert in the domain and writing down the skills necessary to be successful in the domain.
Learn more, and get the Ruby Gem for your own game:
I’ve really enjoyed adding to Seed Life.
I’ve already received great feedback from friends and LD comments. I’ve implemented some of them:
- Display currently selected seed
- Reworked how drag planting works (with shift-dragging for straight lines)
- Better performance on longer runs
- Can now harvest any type of seed with right-click(watch out, they’ll grow back)
- Clouds (disperse them with mouse motion)
- more to come..
- New types of seeds (I’d love some ideas from everyone)
- Critters that only come out based on your garden
- feedback wanted
Thanks for a great LD! Keep playing those games.
I’ve known of Ludum Dare but this is the first time I’m participating in the event. I’m really looking forward to it.
I’m planning on writing the game in Ruby using the Gosu library. I have a small personal library called Okami that encapsulates Gosu in a ruby-ish fashion, but doesn’t differ all too much from Gosu. It’s available on https://github.com/Aerotune/Okami and https://rubygems.org/gems/okami
I will probably also make use of some of the awesome gems for gosu like chipmunk, ashton, texplay for visuals and releasy for releasing the game.
Like my last two games, this one will also be HTML5. I’m not yet sure whether it’ll be canvas2d or WebGL, but I’m leaning towards the simplicity of canvas2d.
- SCSS is compiled into CSS, using Compass for its CSS3 mixins (which automatically add vendor prefixes like -webkit- and -moz-).
- Inkscape SVG files are exported to PNG files.
This makes for the quickest development cycle: just save the file, and refresh the page.
I have three rough game concepts. Here’s to hoping one of them can be bent to fit the theme.
Good luck everyone!
My first event after seeing a friend suffer through a few on his own.
- Language: Ruby
- Framework: Metro
- IDE: Textmate 2
- Graphics: Photoshop, Pixen, Tiled and TPEditor
- Audio: Ableton, Figure (iOS) and Bfxr
I am using this last week to learn and build a few more things before everything gets started:
- Generating animation with my own art assets using TPEditor
- Developing and exporting animations with Pixen
- Metro needs to be able to import Tiled exports
- Metro needs the concept of a viewport
Better late then never. Because I do not have much time left I’m likely to participate only in the jam. I will use Ruby and Gosu and I will test out an entity-framework I wrote last week, following the great tutorial of Richard Lord. You can download it here, just to abide by the rules. I do not recommend anyone to use it, because it is kind of the first piece of software I wrote in Ruby, lacking testing and proper error handling.
Have fun, everyone!
http://dl.dropbox.com/u/5227720/HTML5/grid.html as basecode.
I may give up half-way through and make it with Ruby instead. If so, I’ll be using Ruby(duh) and Chingu/Gosu.
He’s used the game engine better then then me, making some winding, fun, hard to beat, acid-filled caves.
Check it out:
Maybe I’ll make a sequel too since the original game was so tiny. Actually I already started hacking on it. Some ideas/goals:
- The collision detection wasn’t perfect (for example you couldn’t jump while running into an obstacle)
- I’m thinking level-building from One big image instead of several small, but there’s quite some things to work out before that’s possible.
- More interaction with the world, could be levels to pull, buttons to push, doors, modification of terrain or living enemies, not just acid pools/drops. Preferable additions that don’t complicate the level building to much, now it’s basically drawing a new image and creating one class — liberating easy.
All right, so, I’ve managed to work out how to participate without a) unboxing and setting up my computer just for the compo, in the middle of a move, or b) leaving little software dev turds all over someone else’s computer, the solution being, use entirely portable (as in USB-stick portable) software for development. In this case, allinoneruby.exe, notepad++, mercurial (the command-line part only), pidgin (for irc), and whatever graphics software is already on this computer (such as MS paint, probably). This is made even more delightfully awkward by the fact that I normally do my work on a Mac desktop, and now I’m on a PC laptop. Should be awesome.
I should also add, in addition to my previously announced use of Ruby and Gosu, I may make use of chipmunk for physics, and I may steal some code out of an earlier project of mine, Operation Lambda. I anticipate using application-level code like menus, user preferences and resource management, not any gameplay code.
All that being said, this is still a busy weekend; nothing like 48 hours will be spent on this project.
Finished my entry for the LD#15. It’s a pity I didn’t have enough time to include all the features (enemies, power-up’s, lots of blood, stalactites…) I thought at the design stage, but at least it is playable. I think I might continue the development, though.
I’ve had lots of fun! This was my first LD and I’m really satisfied. See you in the next one!
In my game I had some problems with gosu’s rendering of tiled graphics. jlnr was so kind as to quickly fix some bugs, so here is my updated LD14 entry:
Download: Evacuation v1.01 (Windows binary + Ruby source code)
- background and road tiling
- bunkers no longer getting placed under houses so villagers can’t enter
- sound glitch when game is won
Bummer, too late for the binaries torrent
Finished my game now. There could be some more polishing but I think it’s fun to play and turned out much better than I expected yesterday.
(It seems the gaps between some tiles are an issue with my GPU, please report back!)
I hope all of you had a great time, I definitely had. Now, finally some sleep!
UPDATE: Windows binary added.
Well I was counting on working down to the last minute, but I have to quit for the day so this is going to be the final version, 5 hours before the deadline. The game is “done” in the sense that you can win and lose, but I wouldn’t really call it complete, there’s a list as long of my arm of things that need to be fixed up and added. All the art is placeholder, which especially hurts. Spent waaaaay too much time on the tech.
So overall, success! I made a game in 48 hours. This was my first LD and I had a blast, I’m definitely doing this again. And I’m definitely going with a simpler game next time. I think Solar Lift has some good ideas, but 48 hours wasn’t near enough time for me to experiment and pull those ideas out into a polished, enjoyable game experience.
The game is written in Gosu with Ruby. Intro is lacking, so here’s instructions: the goal is to rescue stranded people off the plummeting planets before they are consumed by the Advancing Wall of Doom. WSAD moves, left mouse shoots, spacebar fires your super laser blast. Rescuing people charges your laser, bullets are unlimited.
>> OS X Download <<
>> Windows Download <<
Say hi to my desk, which I hope to see only when I do Photoshop work:
Other than that, coffee shops and the university will probably be where I am most of the time, meeting up with pythong and mathias. Wee!
- Ruby (1.8, sadly)
- the Gosu library—<plug>just released version 0.7.13!</plug>
- Photoshop + Wacom
- I’ll make this list
- a bit longer to make it look
- like I am well-prepared
So be very afraid! … *runs to the mall to buy some pizza*
Only 7 more hours until my first compo. My home office is always at the ready:
Though I’ll probably spend a lot of time in coffee shops instead, no way am I sitting in one place for two days straight.
The contest starts at 9PM local time, so I may start doing a bit of work tonight if I feel confident that I can force myself to go to bed at a decent hour.
Everybody vote for layers! I’ve got some good ideas there.
Tools: Macbook, Wacom tablet, Ruby, Gosu, cfxr. Possibly chipmunk for physics but I’d rather avoid it to keep things simple. I’m gonna try and avoid 3d too, or keep it to a minimum.
Lots of coffee and green tea. I’ve stashed up on miso soup, dried fruit, and burrito fixings. I’ll try to avoid hitting the homebrew beer but I make no promises.
After having participated in LD5 some years ago I’ve finally found the time and motivation to enter again. Once again, I’ll be using jlnr‘s Gosu gamedev library for Ruby. As my coding skills are a bit rusty at the moment, I hope to regain some programming and time management practice (apart from enjoying a fun contest!)
Here’s my pretty basic workspace:
The compo will start at 5am German time so i think I’ll go to bed early and sleep til 8am. Also hope to resist any persuasions by my friends to go out Saturday night
Will be posting updates here, maybe some on my twitter. Good luck to everyone!
Hey folks- finished my game:
- Windows build
- Mac build
- Source (linux build instructions in readme, requires Gosu available from RubyGems)
You’ve received 4 scrambled images of possible cryptids:
Use your Crypto-Computer ™ to unscramble them!
You have 1 minute to complete your task before the
evidence is lost forever. You will receive a
30 second bonus for each cryptid you discover.
Each cryptid image is made up of 4 individual pieces.
Unscramble each cryptid by clicking on the numbered boxes
to rotate a distinct piece of the puzzle image.
* Left mouse button for clockwise rotation.
* Right mouse button for counter-clockwise rotation.
Here is a current screenshot from my simple cryptozoology puzzle game. It is coming along fairly well schedule wise. I have 3 of 4 crpytid puzzles completed and just need to draw one more so that is good. I still need sounds and maybe score a little game soundtrack for it too later. Need a menu, perhaps highscores just for practice coding that and still searching for a title I like.
I’m glad that I finally picked a game scope that allowed me to have something playable early on and really gave me time for polish, tuning, and asset creation. As this is my 4th LD (2 full, 2 mini) maybe I’m FINALLY learning something about scope. ;) If anything, I probably went too far on the side of simple but we shall see.