You know me, I’m impulsive.
Clementine
Recent Updates RSS Toggle Comment Threads | Keyboard Shortcuts
-
ozipi
-
ozipi
Paper Invaders!!!
I dreamed the other night about how will it be to have the space invaders inside a normal sheet of paper and this is what was brought to life:
This movie requires Flash Player 9How to play:
C for insert coin
1 for player 1
2 for player 2
R Resets the game
Backspace Tilts the emulator (game over if someone kicks the machine
)Tech stuff to create the skin:
- Created a SimpleSkin implementing the ISkin interface that uses the graphics of a sprite to paint only the active pixels (and not the background) ( SimpleSkin.as )
- Extended the SimpleSkin and added a paper background the sprite and voila! ( PaperSkin.as )Everything is updated on the github repository:
http://github.com/ozipi/As3_SpaceInvaders_Emulator
The whole paper invaders is dedicated to Mike Chambers (@mesh), i bet that he would love to have Paper Invaders when he was a child : )
-
Mataii
A little bit difficult to me at this time =/, yeah.. I used to play this game with my brother and sister, over 20 years ago (Atari I think) fun times indeed.. : )
Looks nice your “paper invaders” version
, so what’s next? -
Mataii
Yes, I had one console Atari… the wonder years
-
alfo
tiene mundos secretos ? jala el arriba arrib abajo abajo ?? jajajajaja
nice skin…. muy chido muy chido…. escucho el “plac plac” de pacman por ahi ?? -
mikeroguez
Hey ozipi!!! simply amazing, when I´ll grow up… wanna be just like you!
-
Suss
yujuuu es mas rapido que la pasada version =D chido chido… aun asi pierdo u_u
-
-
ozipi
-
alfo
more more !!!… show me more….
-
mikeroguez
I’ll be there on may… I hope
-
-
ozipi
As3 Space Invaders Emulator For Dummies (Source code)
“You have to wanna make something, so if there is not something wanna make then there is not much you can do to make somebody else to make something.”
Chaosradio international 2007 podcast
Bre prettisHow to play:
C for insert coin
1 for player 1
2 for player 2
R Resets the game
Backspace Tilts the emulator (game over if someone kicks the machine
)This movie requires Flash Player 9Code Features:
- Logic separated on the intel 8080 from the actual implementation of the Space invaders emulator, this was intented to have a separated class that only has intel 8080 logic and could be used/extended/improved and anyone want to use it for another project/emulation/cool shit (doug mccune magic word!)
- Added a Skin interface in order to have the ability to implement any kind of video screen and not just only a bitmap for the classic one (examples of this will come later in future posts)
- Added plenty of comments (not to all functions you will see why
)
- Created statically the opcode table function dictionary instead of dinamycallyLong boring story:
A few months ago i saw that tibo (Thibault Imbert http://www.bytearray.org/ ) released a space invaders arcade emulator, i remember that i told my coworkers “holy shit this guy is awesome”, we took a peek inside the code and as soon we touch the intel 8080 we were like O_o what the….., we thought that it was very complicated (but we never try to play with it),a few days ago i tried to reproduce and see how difficult it would be to code it from the beggining (it took me 5 days) to have the projected recoded following the tibo code logic guidelines (i had to use some hex comparing sentences because of a ugly bug) and the blitz tutorial giving birth to the my own space invaders emulator n_n.Source code:
The code is released under the MIT license and is alocated in github where you can download/fork/see ithttp://github.com/ozipi/As3_SpaceInvaders_Emulator
References:
Tibo AS3 Space Invaders Arcade emulator ( http://www.bytearray.org/?p=622 )
Blitz Max tutorial by Remi Veilleux ( http://sites.google.com/site/rveilleux/arcadechapter1 )
Intel 8080 Instruction set ( http://www.comsci.us/cpu/8080/matrix.html | http://www.comsci.us/cpu/8080/isindex.html )
Intel 8080 General explanation ( http://www.cpu-world.com/Arch/8080.html | http://en.wikipedia.org/wiki/Intel_8080)On future posts i’ll try to explain it in a easy way for the people that has never touch any binary code with the byte arrays or has some trouble trying to imagine how to code an emulator (like a was a week before), so as3 experts please be patient :p
Thanks to Thibault Imbert (same guy from the wiiflash project), Remi Veilleux, and the guys that posted the specifcations, i have learned a lot on how to use the bytearrays and the bitwise operators and how the interpreted emulation works in general.
Get some fun!
-
Suss
I always get the GAME OVER hahaha
cool =)
ozipi
git/svn info on your bash prompt (oziputils)
History
yesterday i came across this bash script (http://hocuspokus.net/2009/07/add-git-and-svn-branch-to-bash-prompt) then while eating a couple scramble eggs at 4 am i thought that i would be a little bit nicer if i could include the SVN revision number to the script, i took me a couple hours to get it done (sed/awk biatches!) but i did it on the end
How does it work
just enter to any checkout of SVN or a clone of any GIT project, and your prompt will indicate the type of version control and the current branch and also the current revision number (revision will be only on the SVN info)
Git
![]()
SVN
![]()
Download/Source
download the file from the oziputils github project
http://github.com/ozipi/oziputils
or just grab whatever the functions and the PS1 export from the source and put it on your .profile file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 #Colors definition
BLACK="\[\033[0;30m\]"
DARK_GRAY="\[\033[1;30m\]"
LIGHT_GRAY="\[\033[0;37m\]"
BLUE="\[\033[0;34m\]"
LIGHT_BLUE="\[\033[1;34m\]"
GREEN="\[\033[0;32m\]"
LIGHT_GREEN="\[\033[1;32m\]"
CYAN="\[\033[0;36m\]"
LIGHT_CYAN="\[\033[1;36m\]"
RED="\[\033[0;31m\]"
LIGHT_RED="\[\033[1;31m\]"
PURPLE="\[\033[0;35m\]"
LIGHT_PURPLE="\[\033[1;35m\]"
BROWN="\[\033[0;33m\]"
YELLOW="\[\033[1;33m\]"
WHITE="\[\033[1;37m\]"
DEFAULT_COLOR="\[\033[00m\]"
RED_BOLD="\[\033[01;31m\]"
GREEN="\[\033[0;32m\]"
#Get git information
parse_git_branch () {
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (git::\1)#'
}
#Get svn information
##Get svn url
parse_svn_url() {
svn info 2>/dev/null | sed -ne 's#^URL: ##p'
}
##Get svn repository root
parse_svn_repository_root() {
svn info 2>/dev/null | sed -ne 's#^Repository Root: ##p'
}
##Get svn revision
parse_svn_current_revision() {
svn info 2>/dev/null | sed -ne 's#^Revision: ##p'
}
##Parse everything and return the svn general info
parse_svn_branch_revision() {
parse_svn_url | sed -e 's#^'"$(parse_svn_repository_root)"'##g' | awk -F / '{print $1 "/" $2 }' | awk '{print " (svn::_@" $1 ")" } ' | sed -e 's#_@#'"$(parse_svn_current_revision)"':#g'
}
export PS1="$DEFAULT_COLOR[$LIGHT_CYAN\u@\h$BLUE $YELLOW\w$LIGHT_PURPLE\$(parse_git_branch)\$(parse_svn_branch_revision)$DEFAULT_COLOR ] "
Thanks to @dazoakley for the script and let’s hope somebody found this useful
-
Adrian Castillo
Thanks ozipi, i had saw this in others coworkers terminals but i never knew how i can do that, you have save me a lot of “git branch” and pay tacos.
Thanks.
ozipi
Flash panel snippets collection
After taking a look to the flash snippets panel from lee brimelow i thought that it would be nice to have a snippet common-share-place, then i just created an svn repo on google code, so everybody can take a look on it and upload/modify any of the scripts uploaded
For the time being i only created AS3 snippets for simple tasks like adding sections to a class, getter and setters, the most used overrides (for me :p), creating private functions and that kind of stuff
Flash snippets repository info:
http://code.google.com/p/flash-panel-snippets/
zip file for the lazy ones:
snippets.zip
Installing the snippets:
- Download the svn files or the zip file
- Go to your current flash builder/eclipse workspace directory and you will find your current snippets inside the currentworkspacedirectory/.metadata/.plugins/Flash_Snippets/snippets
- Copy any snippet you like to the current directory
Next steps:
- Create spark mxml snippets
- Add a cool logo : )
Want to Add/Fix any snippet? please feel free to do it directly to the svn or to drop a comment (or just send a /slap
)
-
Ana
Nada que ver mi comment con tu post, pero es que me da gusto encontrarte, espero estés bien, se te extraña
)
ozipi
This is all insane
its time to take control…
… … … .to look at the sun…
… … .. to break in the mirror…

ozipi
-
Karla
Me declaro fan de tus tomas… y quisiera ser el alma del perro (muajaja) y tener la vida del avecita que esta abajo. Just awesome pics!
-
frago
la onda con ese perrito…y eso que aun no lo conozco jajaja xD
-
kyoria
Me encanta ese perro! me quede enamorada desde que lo vi en tu avatar n_n
Yo lo quierooooo!!
-
Raul
Que bonito perro, se parece a su papa, pues espero lo cuides y lo trates bien , al menos mejor que a ti mismo =P
Cuidese y estamos en contacto
-
alma
….y sus ojos me comen…. me pierdo ….
me gusta … !!!!
-
Alan
Esse perro me tumbo xD
corre a MDRS
T CHNGNSSMO
-
Em
so cute!
ozipi
eee?

y esto llego…..
el raven regreso del desierto…..
oruguita me hace feliz……….
el king of the bongo bailo……….
y el desierto aparecio ante mi…….
-Ozipi
-
Mex
Nunca he podido fotografiar un ave-base (base de beisbol), o sea, de esas que se te “aparecen” cuando “tocas base”. No se dejan, la cámara falla o el ave se esconde. Tú me entiendes, ozo.

frago 3:49 am on April 18, 2010 Permalink
el mundo es de los que se atreven (via @Rinox_x)