Yes, I'd like to know that too. Your game runs very smooth ~D4T45H4T~. I've tried different approaches to getting a good frameerate in AS3. On my current project I'm setting the framerate-parameter and then use a enter_frame-event to render lots of bitmaps using bitmapdata.copypixels. Seems to get pretty good performance, but as3 is very new territory for me so I would like to know if there are any good techniques for speeding it up more to get a reasonably consistent frame rate.failrate wrote:@~D4T45H4T~: Very silky-smooth. I've been having trouble with my AS3 games being quite choppy (Ex., http://failrate.com/b/ShmupGameClient.html). Did you do your movement system all in code, or are you using Builder or CS3?
Show us yer programming projects!
- _TinOmen_
- Baaaa!

- Posts: 745
- Joined: Wed Feb 12, 2003 10:52 pm 0
- Location: Stockholm, Sweden
- Contact:
Re: Show us yer programming projects!
- sack
- Baaaaaaa!

- Posts: 7077
- Joined: Fri May 10, 2002 4:13 pm 0
- XBL Gamertag: evilgopher
- PSN: sixFiveOhTwo
- Location: Rijswijk, The Netherlands
- Contact:
Re: Show us yer programming projects!
reminds me actually... someone did ask about where that way of phrasing pickups came from. I nicked it from SG.teamonkey wrote:RING GET!sack wrote:I reckon it hits the (admittedly very vague) requirements for the course.
so... where did it come from?
- evilpaul
- Baaaa!

- Posts: 811
- Joined: Wed Sep 29, 2004 2:01 pm 0
- Location: #ukscene, helsinki branch
- Contact:
Re: Show us yer programming projects!
I believe..


Re: Show us yer programming projects!

Been polishing this up, and squashing lots of niggly bugs. Spent quite alot of time working on workable path finding algorithm. Even though its a hex grid, the pathing is actually quite complex, so finding the shortest routine to some place was not readly obvious. Basically, the pathing is not predefined as it is in say a maze, but free following so a destination can be as close as 1 step or as many as 20 - 50 steps from an original position. My solution was to basically:
Code: Select all
linkedlist path;
int maxRoadLen = 10;
for (maxDepth = 1 < maxRoadLen; maxDepth++)
{
if (recursivePathFind (srcPoint, destPoint, path, maxDepth ) != false)
break;
}
// ---------------------------------------------------------------------------------
boolean recursivePathFind (srcPoint, destPoint, path, maxDepth )
{
if (srcPoint == destPoint)
return true;
if (maxDepth <= 0)
return false;
foreach (newpath in srcPoint)
{
if (newpath is blocked)
continue;
if (newpath in linkedlist path) // don't want to go round in circles
continue;
path.add (newpath)
success = recursivePathFind (newpath, destPoint, path, maxDepth-1);
if (success == false)
path.remove (newpath);
else
return true;
}
return false;
}
The computer play is a little mental in places (Not doing things when it should etc) so I have a little work there, nothing major.
Still need to implment player to player based trading, and clean a few things up, but looking forward towards the end of this project.
S.
- ~D4T45H4T~
- Baaaaaa!

- Posts: 4695
- Joined: Sat Aug 30, 2003 4:56 pm 0
- Location: UK
Re: Show us yer programming projects!
Cheers._TinOmen_ wrote:Yes, I'd like to know that too. Your game runs very smooth ~D4T45H4T~. I've tried different approaches to getting a good frameerate in AS3. On my current project I'm setting the framerate-parameter and then use a enter_frame-event to render lots of bitmaps using bitmapdata.copypixels. Seems to get pretty good performance, but as3 is very new territory for me so I would like to know if there are any good techniques for speeding it up more to get a reasonably consistent frame rate.failrate wrote:@~D4T45H4T~: Very silky-smooth. I've been having trouble with my AS3 games being quite choppy (Ex., http://failrate.com/b/ShmupGameClient.html). Did you do your movement system all in code, or are you using Builder or CS3?
It was made with the standalone Flash CS3. (What's Builder?)
The quality is set to 'low' in that example which helps quite a bit, all the blurs on the parallax layers are precalculated and written to bitmaps, the level itself is predrawn to a bitmap, and all display coords for MCs are rounded to integers.
All the logic is executed using setInterval at ~60fps, and all the graphics updates happen separately on enterFrame. With the framerate set to about ~70 this seems to result in something near the ideal 60fps in most browsers.
Another thing that helps is using linked lists instead of popping things in and out of large arrays of 'active actors', especially if you're doing things with particles.
Doing ALL graphics via bitmaps is probably a good idea, haven't tried it yet myself.
I was very impressed with the performance of this game:
http://babarageo.com/flash/uchuforce2/index-e.html
- sack
- Baaaaaaa!

- Posts: 7077
- Joined: Fri May 10, 2002 4:13 pm 0
- XBL Gamertag: evilgopher
- PSN: sixFiveOhTwo
- Location: Rijswijk, The Netherlands
- Contact:
Re: Show us yer programming projects!
well I just did the demo... despite my slightly paranoid best efforts (like keeping the laptop offline to make sure windows update didn't kick in, booting up and closing everything i could to make sure it was absolutely stable and turning all the power saving settings to full CPU speed and then hibernate it so it boots back into a known good, working and tested state) I got there, plugged it all in, started to demo it and power saving decided that the best thing for 'high performance mode' whilst plugged into the mains would be to turn the frigging CPU speed down and decimate my framerate!failrate wrote:@sack: Yeah, I think you had better be getting an A for that.
Cheers Acer you bastards....
Tutor wasn't giving much away and I didn't see anything of anyone elses demos so I don't know how I stand compared to everyone else yet
- _TinOmen_
- Baaaa!

- Posts: 745
- Joined: Wed Feb 12, 2003 10:52 pm 0
- Location: Stockholm, Sweden
- Contact:
Re: Show us yer programming projects!
~D4T45H4T~: Thanks for the advice. I didn't know that the quality setting could be set as an html-parameter, it certainly bumped up the framerate in my project. Linked lists seems like a good idea too so I will try that.
Builder is Flex Builder. The environment for writing as3-based applications. It is a Eclipse-plugin so it is much more code-centered than CS3. It also features a very good swf-profiler where you can examine performance bottlenecks and memory allocations in your code.
Builder is Flex Builder. The environment for writing as3-based applications. It is a Eclipse-plugin so it is much more code-centered than CS3. It also features a very good swf-profiler where you can examine performance bottlenecks and memory allocations in your code.
Re: Show us yer programming projects!
The tone mapping project made a major leap yesterday - it now has a front end, albeit an arcane and unfriendly one.
Here is one of my latest results:

Here is one of my latest results:

Re: Show us yer programming projects!
So, after much hard work, I've finished it. It requires JRE 1.5 or above, however if you have JRE 1.6, it run this really really slow, and I don't know why. Also, its only been tested under Windows, so if your a Mac or Linux guy, please let me know if it works.
As for the game play, hopefully its not too easy to beat and gives a little challenge to those expert players?
You can now download it from SourceForge http://sourceforge.net/project/showfile ... _id=225769
Steve.
Re: Show us yer programming projects!
That looks great, Sack.sack wrote:
However, I have a question: Which tune is that a remix of, and where can I get an mp3 of that remix? I'm almost certain I last heard it on an Amiga.
Edit: NM, found it :-) How could I have forgotten the music to Sanxion, eh?
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
- sack
- Baaaaaaa!

- Posts: 7077
- Joined: Fri May 10, 2002 4:13 pm 0
- XBL Gamertag: evilgopher
- PSN: sixFiveOhTwo
- Location: Rijswijk, The Netherlands
- Contact:
Re: Show us yer programming projects!
Cheers - although for anyone else reading it's XORs Sanxion remix which you can find here.Barney wrote: That looks great, Sack.
However, I have a question: Which tune is that a remix of, and where can I get an mp3 of that remix? I'm almost certain I last heard it on an Amiga.
Edit: NM, found it :-) How could I have forgotten the music to Sanxion, eh?
I really should tidy the thing up and do something with it in a couple of weeks when the sheer chaos of uni has died down. I've had some comments on it which could mean the post-uni job situation could be sorted soon, but I'll see what happens with that.
Who knows? hopefully I'll see folks in the indie-to-pro thread in a few months?
Re: Show us yer programming projects!
I've worked on Smiley's Shooty Adventure for a year. It's done now.
I've got a thread going in the Playing the games board, but I figured I should write something here about the development of the game.
It was an interesting project to work on. Started its life as a DS game, so the switch to PC was interesting. Basically, I wrote a software layer over some of the DS hardware stuff. Sprites were the main things that needed to be handled. All the render and input code was initially done like this, and over the course of a couple of months, I started taking them out and replacing them with "proper" PC code. There are still remnants of DS code, like using >> instead of divide.
Then of course I decided to go OSX as well. I talked about that for a bit in the "playing the games" thread ... like I sad, it was mostly painless due to SDL. And of course, you guys helped answer some of my OSX questions too.
The other issue is ... well, it's incredible how long polish takes. I think I spent ~4 months just polishing. And holy crap, fully customizable controls was such a pain to get working. But alas, I guess it's just a part of making PC games.
Screenshots and demo are on the official page, and the thread on "Playing the games" is here.
SiN
It was an interesting project to work on. Started its life as a DS game, so the switch to PC was interesting. Basically, I wrote a software layer over some of the DS hardware stuff. Sprites were the main things that needed to be handled. All the render and input code was initially done like this, and over the course of a couple of months, I started taking them out and replacing them with "proper" PC code. There are still remnants of DS code, like using >> instead of divide.
Then of course I decided to go OSX as well. I talked about that for a bit in the "playing the games" thread ... like I sad, it was mostly painless due to SDL. And of course, you guys helped answer some of my OSX questions too.
The other issue is ... well, it's incredible how long polish takes. I think I spent ~4 months just polishing. And holy crap, fully customizable controls was such a pain to get working. But alas, I guess it's just a part of making PC games.
Screenshots and demo are on the official page, and the thread on "Playing the games" is here.
SiN
- Orangy Tang
- Baaaaa!

- Posts: 1794
- Joined: Sun Apr 25, 2004 5:25 pm 0
- Location: My secret lab
- Contact:
Re: Show us yer programming projects!
I have far too many projects on the go at the moment, but they keep feeding back into each other which is cool. Rescue Squad 2 is in the middle of getting a proper set of landscape (which means writing code for layers in the editor and game, plus drawing a whole bunch of tiles).


[ Triangular Pixels.net - play Snowman Village, Rescue Squad, NiGHTS 4k and more ] [ Development Journal ]
Re: Show us yer programming projects!
Thanks to ~D4T45H4T~'s tip, my latest Flash release runs much better than my previous:
http://failrate.com/b/GunHaiku_Ronin.html
http://failrate.com/b/GunHaiku_Ronin.html
- milesmowbray
- Baa!

- Posts: 68
- Joined: Thu Jul 07, 2005 9:29 am 0
- Location: Gloucestershire
Re: Show us yer programming projects!
Don't know if any of you guys use Windows Mobile based devices but if you do then you might be interested in my latest programming project. It's called youtubeplay and is a free YouTube searching and playing frontend, supporting all feeds, and utilizes the full 320x240 FLV videos (not the horrible small MP4 like you get from 'm.youtube.com'). It can download and save the YouTube FLV files straight onto the device for later offline use as well.
It should run on any Windows Mobile 5> based device. It is written using VB and the .net compact framework v2 with some C bits hacked out of TCPMP (a WM open source media player) and FFMPEG.


More info here: http://forum.xda-developers.com/showthread.php?t=385227
It should run on any Windows Mobile 5> based device. It is written using VB and the .net compact framework v2 with some C bits hacked out of TCPMP (a WM open source media player) and FFMPEG.
More info here: http://forum.xda-developers.com/showthread.php?t=385227

