<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>flash on Kathleen&#39;s Blog</title>
        <link>https://blog.superfiretruck.com/tags/flash/</link>
        <description>Recent content in flash on Kathleen&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Tue, 30 Nov 2010 08:18:00 +0000</lastBuildDate><atom:link href="https://blog.superfiretruck.com/tags/flash/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>ONE MILLION 3D points in Flash</title>
        <link>https://blog.superfiretruck.com/2010/11/one-million-3d-points-in-flash/</link>
        <pubDate>Tue, 30 Nov 2010 08:18:00 +0000</pubDate>
        
        <guid>https://blog.superfiretruck.com/2010/11/one-million-3d-points-in-flash/</guid>
        <description>&lt;img src="https://blog.superfiretruck.com/2010/11/one-million-3d-points-in-flash/Screen-shot-2010-11-29-at-11.47.47-PM.png" alt="Featured image of post ONE MILLION 3D points in Flash" /&gt;&lt;p&gt;I&amp;rsquo;ve been playing around with Flash lately and thinking how to take PhotoCity models to the next level.&lt;/p&gt;
&lt;p&gt;I wanted to make a flash-based online model-cleaner-upper, where a user could erase errant points from a dense point cloud. Here&amp;rsquo;s a dense point cloud loaded into flash with the same interaction capabilities as the PhotoCity &amp;lsquo;swisher&amp;rsquo;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://blog.superfiretruck.com/2010/11/one-million-3d-points-in-flash/Screen-shot-2010-11-29-at-11.47.47-PM.png&#34;
	width=&#34;831&#34;
	height=&#34;616&#34;
	srcset=&#34;https://blog.superfiretruck.com/2010/11/one-million-3d-points-in-flash/Screen-shot-2010-11-29-at-11.47.47-PM_hu28ed068e84daf0f88c79b2aa2b199d8a_165921_480x0_resize_box_3.png 480w, https://blog.superfiretruck.com/2010/11/one-million-3d-points-in-flash/Screen-shot-2010-11-29-at-11.47.47-PM_hu28ed068e84daf0f88c79b2aa2b199d8a_165921_1024x0_resize_box_3.png 1024w&#34;
	loading=&#34;lazy&#34;
	
	
		class=&#34;gallery-image&#34; 
		data-flex-grow=&#34;134&#34;
		data-flex-basis=&#34;323px&#34;
	
&gt;&lt;/p&gt;
&lt;p&gt;Amazingly, there are ONE MILLION 3D POINTS floating in space in that little Flash applet. Unfortunately, there are 6M points in that particular model, and just the 1M points made my computer pretty angry.&lt;/p&gt;
&lt;p&gt;I decided to write a blog post instead of implementing the point-erasing, because (I&amp;rsquo;m sleepy and) I&amp;rsquo;m not sure I should be going down the Flash route for dense point cloud editing. Maybe/YES for sparse point cloud/bundle editing, though!&lt;/p&gt;
&lt;p&gt;Tech specs: I&amp;rsquo;m using the &lt;a class=&#34;link&#34; href=&#34;http://www.flashsandy.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Sandy 3D engine&lt;/a&gt; (a custom StarField, specifically) to draw the points.&lt;/p&gt;
</description>
        </item>
        <item>
        <title>TIGjam Day 1 and learning Flash and Flixel</title>
        <link>https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/</link>
        <pubDate>Fri, 29 Oct 2010 09:11:00 +0000</pubDate>
        
        <guid>https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/</guid>
        <description>&lt;img src="https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game1.png" alt="Featured image of post TIGjam Day 1 and learning Flash and Flixel" /&gt;&lt;p&gt;So, I went to the first day of tigjam 3 today! It continues tomorrow and all through the weekend. Pictures and stuff later; for now, I just want to talk about what I&amp;rsquo;ve learned so far.&lt;/p&gt;
&lt;p&gt;I started learning flash just a few days ago. That may seem like not very much time, and while I haven&amp;rsquo;t made that many games in my lifetime, I have used a brand new technology for just about every game, so I should be pretty good at learning this stuff. (Some games I&amp;rsquo;ve made organized by tech: &lt;a class=&#34;link&#34; href=&#34;http://www.soe.ucsc.edu/classes/cmps161/Winter06/projects/ktuite/index.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;c++&lt;/a&gt;/&lt;a class=&#34;link&#34; href=&#34;http://www.flickr.com/photos/rndmcnlly/113604953/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;opengl&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;http://www.soe.ucsc.edu/classes/cmps161/Winter06/projects/ktuite/original.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;assembly&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;http://www.cs.washington.edu/homes/ktuite/alligators/html/prog1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;python/pygame&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;http://www.soe.ucsc.edu/classes/cmps164/Spring07/projects/ktuite/webpage/index.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;java/home brew game engine&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;http://photocitygame.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;python/twisted/mysql/shell scripts/php/an entire cluster of machines&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The setup for today:&lt;/em&gt;&lt;br&gt;
Language in: actionscript3&lt;br&gt;
IDE: flash builder 4&lt;br&gt;
Extra libraries: flixel (&amp;lt;http://flixel.org/&amp;gt;)&lt;br&gt;
Flavor of computer: mac&lt;/p&gt;
&lt;p&gt;As it turns out, Flixel has a lot of the elements I saw before in &lt;a class=&#34;link&#34; href=&#34;http://www.pygame.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;PyGame&lt;/a&gt; and even &lt;a class=&#34;link&#34; href=&#34;http://www.ode.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;ODE&lt;/a&gt;. There is a main event loop, and some combination of &amp;lsquo;move objects&amp;rsquo;, &amp;lsquo;detect collisions&amp;rsquo;, &amp;lsquo;get user input&amp;rsquo;, &amp;lsquo;draw stuff to the screen&amp;rsquo; happens each timestep.&lt;/p&gt;
&lt;p&gt;As I acquired more and more skills throughout the day, I made two not-really-games which are not even worthy of posting online, but which I&amp;rsquo;ll show you pictures of. The first game was Pong, because I knew undergrads at my school in a games capstone class started out with Pong. I got on screen text, moving paddles, a particle emitter, &amp;ldquo;scores&amp;rdquo; (score a point for hitting the ball with the paddle)&amp;hellip; and then I got bored and moved on to other things.&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;http://superfiretruck.com/flash/pong/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;img src=&#34;https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game1.png&#34;
	width=&#34;640&#34;
	height=&#34;479&#34;
	srcset=&#34;https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game1_hue1790c53112987ad87de8387d8a7e148_16530_480x0_resize_box_3.png 480w, https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game1_hue1790c53112987ad87de8387d8a7e148_16530_1024x0_resize_box_3.png 1024w&#34;
	loading=&#34;lazy&#34;
	
	
		class=&#34;gallery-image&#34; 
		data-flex-grow=&#34;133&#34;
		data-flex-basis=&#34;320px&#34;
	
&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The second non-game involved an animated sprite (and sprite sheet), keyboard controls again, and drawing a trail behind the player as it moved. You could basically get this little guy that wiggled his arms to skate around the screen an occasionally drift off and be lost forever.&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;http://superfiretruck.com/flash/skating/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;img src=&#34;https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game2.png&#34;
	width=&#34;640&#34;
	height=&#34;479&#34;
	srcset=&#34;https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game2_hue1790c53112987ad87de8387d8a7e148_24049_480x0_resize_box_3.png 480w, https://blog.superfiretruck.com/2010/10/tigjam-day-1-and-learning-flash-and/game2_hue1790c53112987ad87de8387d8a7e148_24049_1024x0_resize_box_3.png 1024w&#34;
	loading=&#34;lazy&#34;
	
	
		class=&#34;gallery-image&#34; 
		data-flex-grow=&#34;133&#34;
		data-flex-basis=&#34;320px&#34;
	
&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Lessons learned:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Oh my god don&amp;rsquo;t forget to add &amp;ldquo;super.update()&amp;rdquo; in the appropriate places. Why doesn&amp;rsquo;t collision work? Why isn&amp;rsquo;t my sprite at the right place? Why do I have to update each sprite manually? All questions that are answered with a well-placed super duper super.update().&lt;/li&gt;
&lt;li&gt;Animated sprites are pretty easy.&lt;/li&gt;
&lt;li&gt;Particle effects are really easy.&lt;/li&gt;
&lt;li&gt;IF you used loadGraphic to get an image into your sprite and set the reverse argument to true, THEN you can say &amp;ldquo;facing = FlxSprite.LEFT&amp;rdquo; to change the direction of your sprite at your discretion.&lt;/li&gt;
&lt;li&gt;You can draw things (sprites, shapes) or a trail of things to the screen by making a big, transparent sprite the size of your game and then saying hugeSprite.draw(testSprite,x,y),  permanently rubber-stamping the smaller sprite into the huge sprite.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sleeping now&amp;hellip; more games tomorrow!&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
