Page 1 of 3
					
				Pacman!
				Posted: 30 May 2009, 22:49
				by zwzsg
				For those bored specs.
Instruction:
- Dump 
pacman.lua into \LuaUI\Widgets\
- Make sure LuaUI is on, press F11 and activate pacman widget
- You are the yellow ball, your goal is to eat all the dots.
- Blue ghost are edible, purple ones are deadly.
- Use arrow keys to move
- Use + - to adjust speed
Note: Totally unoptimised, could be done way more efficiently. It's just a lua translation of a pacman I wrote last year in another language.

 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 22:53
				by Gota
				Lol will u make random level generator?multiplayer?
made  a game inside your game so you can play while you play?
			 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 22:59
				by zwzsg
				Gota wrote:Lol will u make random level generator?
Random, probably not, but yeah, it could use some level and that would be easy to add.
Also, works best on Comet Catcher because of width/height ratio:

 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 23:01
				by Gota
				Bomberman multiplayer while we spec?
			 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 23:06
				by CarRepairer
				This is the most simultaneously retarded and awesome widget I've seen here yet. Well done, and you're insane.
			 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 23:08
				by zwzsg
				Gota: Look, I just wanted to write a full game as a widget to prove my point about how the whole engine can be ditched and replaced by a Lua interpreter, as nowaday any modders requesting new engine is answered to Lua it. I just picked pacman because it's simple and I had already coded it. Writing a multiplayer bomberman Spring widget is certainly doable, but I'm not going to code it myself now.
I fact after pacman I had planned to port my TA javascript port to a Spring widget.
			 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 23:08
				by imbaczek
				/me wants asteroids and nibbles with shared ingame highscore
			 
			
					
				Re: Pacman!
				Posted: 30 May 2009, 23:52
				by Gota
				zwz i was just kidding not actually asking u to make it.
			 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 00:01
				by zwzsg
				But it could totally be made.
Pacman, Bomberman, Nibbles, Asteroids, Breakout, Tetris, are simple enough game that a single person can code them in a day to half a week. From what I've read in other widget's thread, widgets can communicate to other players same widgets, so multiplayer is also totally possible.
			 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 01:21
				by aegis
				starcraft minigame
			 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 08:23
				by CarRepairer
				aegis wrote:starcraft minigame
TA minigame.
edit: in before yo dawg.
 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 08:31
				by trepan
				
			 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 09:30
				by lurker
				zwzsg wrote:I fact after pacman I had planned to port my TA javascript port to a Spring widget.
CarRepairer wrote:TA minigame.
Poor CarRepairer, I think the stress has finally gotten to him.
 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 10:37
				by KDR_11k
				I was thinking about a Tetris widget (inspired by the Tetris plugin for UT '99) but considered the mechanics too complicated to implement. I think it'd be better if your Pac Man ran in a window in the GUI instead of overlaid on the terrain.
			 
			
					
				Re: Pacman!
				Posted: 31 May 2009, 13:06
				by Tribulexrenamed
				KDR_11k wrote:I was thinking about a Tetris widget (inspired by the Tetris plugin for UT '99) but considered the mechanics too complicated to implement. I think it'd be better if your Pac Man ran in a window in the GUI instead of overlaid on the terrain.
Overlaid on the terrain produces more lulz. I run a modified version of this widget whenever i play spring now, only my com is the pacman. Usually, I have to go air to keep up with the ghosts.
 
			
					
				Re: Pacman!
				Posted: 01 Jun 2009, 00:32
				by zwzsg
				KDR_11k wrote:I think it'd be better if your Pac Man ran in a window in the GUI instead of overlaid on the terrain.
My aim wasn't to provide the best pacman experience ever, but to demonstrate how Spring's lua is extensive enough to write a full game completly disregarding the hard coded engine logic. Being overlaid on terrain gives a better feeling of "this is done within Spring" than a little window on the Gui, which would feel too artificial, too detached from the rest of Spring.
 
			
					
				Re: Pacman!
				Posted: 01 Jun 2009, 01:08
				by Argh
				That is definitely a nice stunt.  
Very nice 

 
			
					
				Re: Pacman!
				Posted: 01 Jun 2009, 01:32
				by kburts
				can other people see this or just the person playing?
			 
			
					
				Re: Pacman!
				Posted: 01 Jun 2009, 02:16
				by zwzsg
				Just the person playing. It's a widget. A Lua UI.
			 
			
					
				Re: Pacman!
				Posted: 02 Jun 2009, 10:06
				by manolo_
				bomberman for specs would be awesome :D, could you bind the widget to a key?