BBC BASIC for Windows
« Stick man football »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:45pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Stick man football  (Read 428 times)
Danny
New Member
Image


member is offline

Avatar




PM


Posts: 12
xx Stick man football
« Thread started on: Feb 21st, 2015, 9:16pm »

Hi

I would like to make a sort of game / possibly for tactical training in football set-pieces e.g. corners .

I would like to make it with stick figures but with many moving limbs.

It seemed to me that I could do this with hundreds or possibly thousands
of line draw commands. Is this a doomed approach ? Is there an undo line command?

Or perhaps should it just be done with sprites? Or something else?

I would appreciate any quick and easy to understand advice.

The main issue I think I'm trying to look for is reasonable speed and smoothness of animation.

Thanks
Danny
Cheltenham
User IP Logged

rtr2
Guest
xx Re: Stick man football
« Reply #1 on: Feb 21st, 2015, 10:11pm »

on Feb 21st, 2015, 9:16pm, Danny wrote:
Is this a doomed approach ? Is there an undo line command?

A similar question was asked not so long ago; for your 'undo line' functionality use exclusive-or (XOR) plotting, then to 'undo' anything you just plot it again!

One thing you may need to watch is that, because of the nature of XOR plotting, any overlapping regions will be 'erased'. So if you have a stick figure and his arms 'cross', where they overlap will revert to the background colour. The same will happen if two figures overlap (this effect was often seen in early video games).

That may not matter to you, but if it does you may need to consider an alternative approach. One such is the GFXLIB2 library (if you can cope with the overhead of learning it) which can produce smooth animations:

http://www.jeroengroenendaal.com/repository/bb4w/index-2.html

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls