![]() ![]() MyPlay.LoadSpriteSequence("GarStandingLeftFight",LoadBitmap(File.DirAssets, "garleftstillfight.png"),2, 1, 250) MyPlay.LoadSpriteSequence("GarWalkingRight",LoadBitmap(File.DirAssets, "garright.png"),8, 1, 1000) MyPlay.LoadSpriteSequence("GarWalkingLeft",LoadBitmap(File.DirAssets, "garleft.png"),8, 1, 1000) MyPlay.LoadSpriteSequence("GarStandingRight",LoadBitmap(File.DirAssets, "garrightstill.png"),6, 1, 1000) MyPlay.LoadSpriteSequence("GarStandingLeft",LoadBitmap(File.DirAssets, "garleftstill.png"),6, 1, 1000) Sub Activity_Create(FirstTime As Boolean)Īctivity.AddView(myPanel, 0,0,100%x,100%y) ' some variables to hold the current state of the hero ' some colors to show the multi touch points in the demoĭim m圜olors() As Int = Array As Int(Colors.Red, Colors.Green, Colors.Blue, Colors.Cyan, Colors.Yellow, Colors.Gray, Colors.White, Colors.Magenta, Colors.LightGray, Colors.DarkGray) 'SupportedOrientations possible values: unspecified, landscape or portrait. The graphics and handling is very smooth.Ībove all, it’s still very easy to program. I’m actually very pleased with the result. (You can control Garfield AND press the Action button X AND do a swipe anywhere at the same time)īut let’s have a look (beware this is running on the Emulator. ![]() In the demo I cannot demonstrate it with a mouse, but it is completely multi touch (the 'direction' pad as an alternative to the joystick, not shown in this video)Ħ. It's a sequence of lines, bezier curves, wait periods etc. (A walk can be build like you would build a path. A sprite can have different predefined 'Walks' ![]() (like one for standing, one for walking, one for fighting, etc)Ĥ. (Layer 2) the black foreground layer with a weird dancing creature that passes now and thenĢ. (Layer 1) the moving background with the Odies as animated sprites ![]() Here is a small demo video of what I got so far. Some weekends and evenings later ABPlay was born! And with a lot of goodies! I decided to restart from scratch a couple of weeks ago. But it was also very old code and not written very well. I looked at ABgameEngine again, as it had some great ideas like layers, animated sprites, gamepads etc. Registered users of B4A can download the GameView lib from here.īut still, I wanted something more. I definitely would like to urge starting game developers to take a look at this. This is an excellent View that will cover the needs of a lot of beginning programmers. Until recently Erel came up with the GameView. However, the other engines were not further developed either. It seemed a little bit pointless to continue. Development on ABGameEngine was stopped early for several reasons: time was one of them, but also because several other developers were working on an engine themselves. I have written the ABPhysics engine in the past and recently Informatix pointed out I had started another engine (ABGameEngine) before that. One of the things I wanted to do was writing an easy to use Game Engine for B4A. It has been a while since I’ve written a new article on this blog because it have been busy months both at work and in my personal life. Also check out his other books in the series on topics like SQLite, XML, PostgreSQL, Office etc… So head over to Eugene’s Personal Website and get your copy. This 400 page volume covers a lot of interesting chapters and includes a lot of useful examples with source code:Īnd there are two games with step-by-step code explanations to help you build your own. Step by step you learn more and more when you move through the more advanced topics. Alwaysbusy’s Corner did some humble contributions to the more advanced topics.įor the novice Xojo user, you quickly can get started and learn about the basics of graphics. In his well known swift (no pun intended) style, Eugene has written the reference manual for you. If you ever wondered how stuff is done with the canvas control in Xojo, this is the book you need to have on your virtual shelf. I Wish I Knew How To… Program the Canvas Control with Xojo Desktop is the latest book of Eugene Dakin in his excellent I Wish I Knew How To… series. Program the Canvas Control with Xojo Desktop ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |