Author Topic: Vectroid (game development)  (Read 6013 times)

not the MOST AMAZING flash i've ever seen, but definitely not the worst.
if this game is as good as it's looking so far, i have some high expectations and will check frequently for updates. c:

what's this
NETWORKING YOU SAY?


oh boy Internet parties

you should make something that's purely console based and we can all join like an irc or something lol

looks cool. As long as you keep updating it and actually make progress then this could actually be pretty nice.

Finished basic running, jumping, gravity, air control and friction.

Here's a demo of the old values: http://www.youtube.com/watch?v=caBOOZ9jT1w
Here's a demo of the new values: http://www.youtube.com/watch?v=euTTwwiWV34

The new values are faster/more controllable/arcade-style/etc.
« Last Edit: May 04, 2012, 12:38:47 AM by Port »

i contributed the arcade-style movement C:

i contributed the arcade-style movement C:

only the value for gravity, aaa

anyway, holy hell why are there this many player states/sprites

  • stand
  • jump0
  • jump1
  • jump2
  • run01
  • run02
  • run11
  • run12
  • run21
  • run22



COME HERE AND TEST THE BASIC PHYSICS
http://lh.rs/9yGpP7d97lYw

Requires Python 2.7 and pyglet 1.1.
Also, I highly recommend installing Python in 32-bit even if you have 64-bit hardware.
« Last Edit: May 04, 2012, 01:18:14 AM by Port »

IT'S NECESSARY PORT

but like

is there any way to negative scale sprites to make them turned around/flip-flopped?

IT'S NECESSARY PORT

but like

is there any way to negative scale sprites to make them turned around/flip-flopped?

definitely with pyglet.gl

but I don't see any in the high-level pyglet.sprite.Sprite interface

Every game development coming out of blockland community:
http://www.youtube.com/watch?v=tH2w6Oxx0kQ&ob=av3e

^
 :panda: Give them a chance.

networking
why must you be so huaaarrghh

Quote
Game started.
 +- Ready.
Unhandled Error
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\base.py", line 413, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\defer.py", line 301, in addCallback
    callbackKeywords=kw)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\base.py", line 426, in _continueFiring
    callable(*args, **kwargs)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\base.py", line 1164, in _reallyStartRunning
    self._handleSignals()
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\posixbase.py", line 292, in _handleSignals
    _SignalReactorMixin._handleSi gnals(self)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\base.py", line 1129, in _handleSignals
    signal.signal(signal.SIGINT, self.sigInt)
exceptions.ValueError: signal only works in main thread
 +- net name: 965
Identified with server.
(MESSAGE) 965 connected.
Unhandled Error
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\python\log.py", line 84, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\python\log.py", line 69, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\python\context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\python\context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\selectreactor.py", line 150, in _doReadOrWrite
    why = getattr(selectable, method)()
  File "C:\Python27\lib\site-packages\twisted-12.0.0-py2.7-win32.egg\twisted\internet\tcp.py", line 199, in doRead
    rval = self.protocol.dataReceived(data)
  File "C:\DEVL\Vectroid\client\net.py", line 50, in dataReceived
    self.handlers[byte](self.buf[:PacketSizes[byte]]) # Handle packet
  File "C:\DEVL\Vectroid\client\net.py", line 91, in add_object
    self.clients[packet[1]].append(Player(self.factory.game, self))
  File "C:\DEVL\Vectroid\client\player.py", line 55, in __init__
    self.indv_init()
  File "C:\DEVL\Vectroid\client\player.py", line 157, in indv_init
    self.sprite_run11 = Sprite(image('images/droid/run11.png'))
  File "C:\Python27\lib\site-packages\pyglet\sprite.py", line 229, in __init__
    self._create_vertex_list()
  File "C:\Python27\lib\site-packages\pyglet\sprite.py", line 369, in _create_vertex_list
    'c4B', ('t3f', self._texture.tex_coords))
  File "C:\Python27\lib\site-packages\pyglet\graphics\__init__.py", line 283, in vertex_list
    return _get_default_batch().add(count, 0, None, *data)
  File "C:\Python27\lib\site-packages\pyglet\graphics\__init__.py", line 351, in add
    vlist = domain.create(count)
  File "C:\Python27\lib\site-packages\pyglet\graphics\vertexdomain.py", line 249, in create
    start = self._safe_alloc(count)
  File "C:\Python27\lib\site-packages\pyglet\graphics\vertexdomain.py", line 224, in _safe_alloc
    buffer.resize(capacity * buffer.element_size)
  File "C:\Python27\lib\site-packages\pyglet\graphics\vertexbuffer.py", line 432, in resize
    glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT)
  File "C:\Python27\lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: invalid operation

anyway, did anybody try the physics test


Alright, so I've determined the structure for how the singleplayer side will work.

When you start up the game, it displays some menu stuff. There you can do stuff and other stuff.
When you press the menu entry to play the game, it increments the 'state' value of the game and initializes some loading stuff.
This includes creating a World instance, passing a Level parameter.

This'll be the base structure:
VectroidGame
{
   State
   
   VectroidWindow
   {
      MenuInterface
      {
         PrimaryMenuInterface
         OptionsMenuInterface
         
         .. etc ..
      }
      
      GameInterface
      {
         GameOverlayInterface
         StatisticsInterface
         EscapeMenuInterface
         
         .. etc ..
      }
   }
   
   World
   {
      IndexedContainer (LEVEL)
      {
         Spawn
         MapSprite
         
         .. etc ..
      }
      
      IndexedContainer (TEMPR)
      {
         Player
         SimpleEnemy
         SimpleEnemy
         CrackedPropDebris
         DroppedItem
         
         .. etc ..
      }
   }
}




« Last Edit: May 04, 2012, 05:33:48 AM by Port »

As with all your projects, good luck but you'll never finish it.